pub struct Shape {
pub items: Option<usize>,
pub fields: Option<usize>,
}Expand description
Structural shape of a value.
Fields§
§items: Option<usize>Number of array items; Some only when the top-level type is Array.
fields: Option<usize>Number of tuple fields; Some when the top-level type is Tuple or
Array whose item type is a Tuple.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Shape
impl RefUnwindSafe for Shape
impl Send for Shape
impl Sync for Shape
impl Unpin for Shape
impl UnsafeUnpin 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