pub enum ShapeConstraint {
Fixed(Vec<usize>),
Enumerated(Vec<Vec<usize>>),
Range(Vec<(usize, usize)>),
Unspecified,
}Expand description
Constraint on the shape of a multi-array feature.
Variants§
Fixed(Vec<usize>)
Fixed shape – only one shape is allowed.
Enumerated(Vec<Vec<usize>>)
One of several enumerated shapes.
Range(Vec<(usize, usize)>)
Each dimension has an independent range (min, max).
Unspecified
Unknown or unspecified constraint.
Trait Implementations§
Source§impl Clone for ShapeConstraint
impl Clone for ShapeConstraint
Source§fn clone(&self) -> ShapeConstraint
fn clone(&self) -> ShapeConstraint
Returns a duplicate of the value. Read more
1.0.0 · 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 ShapeConstraint
impl Debug for ShapeConstraint
Source§impl PartialEq for ShapeConstraint
impl PartialEq for ShapeConstraint
impl StructuralPartialEq for ShapeConstraint
Auto Trait Implementations§
impl Freeze for ShapeConstraint
impl RefUnwindSafe for ShapeConstraint
impl Send for ShapeConstraint
impl Sync for ShapeConstraint
impl Unpin for ShapeConstraint
impl UnsafeUnpin for ShapeConstraint
impl UnwindSafe for ShapeConstraint
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