pub enum LayoutConstraint {
Contiguous,
Strided {
strides: Vec<StrideConstraint>,
},
Blocked {
block: Vec<u64>,
axis_order: Vec<u32>,
},
}Variants§
Trait Implementations§
Source§impl Clone for LayoutConstraint
impl Clone for LayoutConstraint
Source§fn clone(&self) -> LayoutConstraint
fn clone(&self) -> LayoutConstraint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LayoutConstraint
impl Debug for LayoutConstraint
Source§impl<'de> Deserialize<'de> for LayoutConstraint
impl<'de> Deserialize<'de> for LayoutConstraint
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
impl Eq for LayoutConstraint
Source§impl Hash for LayoutConstraint
impl Hash for LayoutConstraint
Source§impl Ord for LayoutConstraint
impl Ord for LayoutConstraint
Source§fn cmp(&self, other: &LayoutConstraint) -> Ordering
fn cmp(&self, other: &LayoutConstraint) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for LayoutConstraint
impl PartialEq for LayoutConstraint
Source§impl PartialOrd for LayoutConstraint
impl PartialOrd for LayoutConstraint
Source§impl Serialize for LayoutConstraint
impl Serialize for LayoutConstraint
impl StructuralPartialEq for LayoutConstraint
Auto Trait Implementations§
impl Freeze for LayoutConstraint
impl RefUnwindSafe for LayoutConstraint
impl Send for LayoutConstraint
impl Sync for LayoutConstraint
impl Unpin for LayoutConstraint
impl UnsafeUnpin for LayoutConstraint
impl UnwindSafe for LayoutConstraint
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