pub struct Mask<S: Shape> { /* private fields */ }Implementations§
Source§impl<S: Shape> Mask<S>
impl<S: Shape> Mask<S>
pub fn shape(&self) -> &S
pub fn strides(&self) -> &S
pub fn ndim(&self) -> usize
pub fn size(&self) -> usize
pub fn as_dyn(&self) -> Mask<Dyn>
pub fn iter(&self) -> MaskIter<S> ⓘ
pub fn index<I>(&self, i: I) -> boolwhere
I: Indexer<S>,
pub fn is_standard_layout(&self) -> bool
pub fn all(&self) -> bool
pub fn any(&self) -> bool
pub fn none(&self) -> bool
pub fn num_valid(&self) -> Option<usize>
Source§impl<S> Mask<S>where
S: Shape + RemoveAxis,
impl<S> Mask<S>where
S: Shape + RemoveAxis,
pub fn index_axis<I: IndexValue>( &self, axis: Axis, index: I, ) -> Mask<S::Smaller>
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for Mask<S>where
S: Freeze,
impl<S> RefUnwindSafe for Mask<S>where
S: RefUnwindSafe,
impl<S> Send for Mask<S>
impl<S> Sync for Mask<S>
impl<S> Unpin for Mask<S>where
S: Unpin,
impl<S> UnwindSafe for Mask<S>where
S: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more