pub struct MultiArray<T: Sized, S: Shape> {
pub shape: S,
/* private fields */
}
Fields§
§shape: S
Implementations§
Source§impl<T: Sized, S: Shape> MultiArray<T, S>
impl<T: Sized, S: Shape> MultiArray<T, S>
pub fn new(shape: S) -> Selfwhere
T: Default,
pub fn new_with(shape: S, value: T) -> Selfwhere
T: Clone,
pub fn new_by<G>(shape: S, generator: G) -> Self
pub fn get( &self, vector: S::DummyVectorType, ) -> Result<Vec<&T>, OutOfShapeError>
pub fn iter(&self) -> impl Iterator<Item = &T>
pub fn iter_mut(&mut self) -> impl Iterator<Item = &mut T>
Trait Implementations§
Source§impl<T: Sized, S: Shape> Index<&<S as Shape>::VectorType> for MultiArray<T, S>
impl<T: Sized, S: Shape> Index<&<S as Shape>::VectorType> for MultiArray<T, S>
Source§impl<T: Sized, S: Shape> IndexMut<&<S as Shape>::VectorType> for MultiArray<T, S>
impl<T: Sized, S: Shape> IndexMut<&<S as Shape>::VectorType> for MultiArray<T, S>
Auto Trait Implementations§
impl<T, S> Freeze for MultiArray<T, S>where
S: Freeze,
impl<T, S> RefUnwindSafe for MultiArray<T, S>where
S: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, S> Send for MultiArray<T, S>
impl<T, S> Sync for MultiArray<T, S>
impl<T, S> Unpin for MultiArray<T, S>
impl<T, S> UnwindSafe for MultiArray<T, S>where
S: UnwindSafe,
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more