pub enum TypeShape {
}Expand description
The type of a field, payload, or element, as the JSON layer and the
derived operations need to see it. Named covers records, sums, and
opaque types — including recursive references.
Variants§
I64
U64
I32
U32
I16
U16
I8
U8
BigInt
F64
Utf8
Bytes
Unit
List(Box<TypeShape>)
Map(Box<TypeShape>, Box<TypeShape>)
Closure
A function type. Legal in a shape, but poisons derivation:
deriving eq on a type containing an arrow is a type error
(design §3.7).
Named(TypeId)
Trait Implementations§
impl Eq for TypeShape
impl StructuralPartialEq for TypeShape
Auto Trait Implementations§
impl Freeze for TypeShape
impl RefUnwindSafe for TypeShape
impl Send for TypeShape
impl Sync for TypeShape
impl Unpin for TypeShape
impl UnsafeUnpin for TypeShape
impl UnwindSafe for TypeShape
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