pub enum Shape {
Any,
Symbol(String),
Shape(Vec<Dimension>),
}
Variants§
Any
Any shape
Symbol(String)
A symbol for the whole shape
Shape(Vec<Dimension>)
A list of dimensions An empty vec is considered a scalar
Trait Implementations§
source§impl<'de> Deserialize<'de> for Shape
impl<'de> Deserialize<'de> for Shape
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
Auto Trait Implementations§
impl RefUnwindSafe for Shape
impl Send for Shape
impl Sync for Shape
impl Unpin for Shape
impl UnwindSafe for Shape
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