pub enum ShapeKind<'a> {
Show 16 variants
Scalar(ScalarType),
List {
element: &'static Shape,
},
Array {
element: &'static Shape,
len: usize,
},
Slice {
element: &'static Shape,
},
Option {
inner: &'static Shape,
},
Map {
key: &'static Shape,
value: &'static Shape,
},
Set {
element: &'static Shape,
},
Struct(StructInfo<'a>),
Enum(EnumInfo<'a>),
Tuple {
elements: &'a [TypeParam],
},
TupleStruct {
fields: &'a [Field],
},
Tx {
inner: &'static Shape,
},
Rx {
inner: &'static Shape,
},
Pointer {
pointee: &'static Shape,
},
Result {
ok: &'static Shape,
err: &'static Shape,
},
Opaque,
}Expand description
Classification of a Shape for code generation.
Variants§
Scalar(ScalarType)
List
Array
Slice
Option
Map
Set
Struct(StructInfo<'a>)
Enum(EnumInfo<'a>)
Tuple
TupleStruct
Tx
Rx
Pointer
Result
Opaque
Trait Implementations§
impl<'a> Copy for ShapeKind<'a>
Auto Trait Implementations§
impl<'a> Freeze for ShapeKind<'a>
impl<'a> RefUnwindSafe for ShapeKind<'a>
impl<'a> Send for ShapeKind<'a>
impl<'a> Sync for ShapeKind<'a>
impl<'a> Unpin for ShapeKind<'a>
impl<'a> UnsafeUnpin for ShapeKind<'a>
impl<'a> UnwindSafe for ShapeKind<'a>
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