Struct concision_linear::model::layout::Layout
source · pub struct Layout<D = Ix2>where
D: Dimension,{ /* private fields */ }Implementations§
source§impl<D> Layout<D>where
D: Dimension,
impl<D> Layout<D>where
D: Dimension,
pub fn new(dim: D) -> Self
pub fn from_shape<Sh>(shape: Sh) -> Selfwhere
D: RemoveAxis,
Sh: ShapeBuilder<Dim = D>,
pub fn as_slice(&self) -> &[usize]
pub fn as_mut_slice(&mut self) -> &mut [usize]
pub fn features(&self) -> Features
pub fn ndim(&self) -> usize
pub fn pattern(&self) -> D::Patternwhere
D: Copy,
pub fn raw_dim(&self) -> D
Trait Implementations§
source§impl<'de, D> Deserialize<'de> for Layout<D>where
D: Dimension + Deserialize<'de>,
impl<'de, D> Deserialize<'de> for Layout<D>where
D: Dimension + Deserialize<'de>,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<D> Ord for Layout<D>
impl<D> Ord for Layout<D>
source§impl<D> PartialEq for Layout<D>
impl<D> PartialEq for Layout<D>
source§impl<D> PartialOrd for Layout<D>where
D: Dimension + PartialOrd,
impl<D> PartialOrd for Layout<D>where
D: Dimension + PartialOrd,
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl<D> Copy for Layout<D>
impl<D> Eq for Layout<D>
impl<D> StructuralPartialEq for Layout<D>where
D: Dimension,
Auto Trait Implementations§
impl<D> Freeze for Layout<D>where
D: Freeze,
impl<D> RefUnwindSafe for Layout<D>where
D: RefUnwindSafe,
impl<D> Send for Layout<D>
impl<D> Sync for Layout<D>
impl<D> Unpin for Layout<D>where
D: Unpin,
impl<D> UnwindSafe for Layout<D>where
D: 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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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