[][src]Struct zkp::util::Matrix

pub struct Matrix<T> {
    _rows: usize,
    cols: usize,
    entries: Vec<T>,
}

Fields

_rows: usizecols: usizeentries: Vec<T>

Methods

impl<T: Default> Matrix<T>[src]

pub fn new(rows: usize, cols: usize) -> Matrix<T>[src]

impl<T> Matrix<T>[src]

pub fn row_major_entries(&self) -> impl Iterator<Item = &T>[src]

Trait Implementations

impl<T> Index<(usize, usize)> for Matrix<T>[src]

type Output = T

The returned type after indexing.

impl<T> IndexMut<(usize, usize)> for Matrix<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Matrix<T> where
    T: RefUnwindSafe

impl<T> Send for Matrix<T> where
    T: Send

impl<T> Sync for Matrix<T> where
    T: Sync

impl<T> Unpin for Matrix<T> where
    T: Unpin

impl<T> UnwindSafe for Matrix<T> where
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,