pub enum Body {
Record(Arc<RecordShape>, Vec<Type>),
Enum(Arc<EnumShape>, Vec<Vec<Type>>),
Newtype(Type),
Host,
NonData,
}Expand description
What a declaration declares.
Variants§
Record(Arc<RecordShape>, Vec<Type>)
A record: its shape, and each field’s type in declaration order.
Enum(Arc<EnumShape>, Vec<Vec<Type>>)
An enum: its shape, and each constructor’s payload types in declaration order.
Newtype(Type)
A newtype: its base, over the declaration’s parameters. A value of
it is its base’s value, encoded, decoded and schemed as the base
(types.md, Erasure).
Host
A host type, whose values are the host’s tokens.
NonData
A declared nondata type, retained by nominal identity only.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Body
impl Freeze for Bodywhere
*const ArcInner<RecordShape> is !null: Freeze,
PhantomData<ArcInner<RecordShape>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<Type>: Freeze,
*const ArcInner<EnumShape> is !null: Freeze,
PhantomData<ArcInner<EnumShape>>: Freeze,
PhantomData<Vec<Type>>: Freeze,
*const Type is !null: Freeze,
impl Move for Body
impl RefUnwindSafe for Body
impl Send for Body
impl Sync for Body
impl Unpin for Body
impl UnsafeUnpin for Bodywhere
*const ArcInner<RecordShape> is !null: UnsafeUnpin,
PhantomData<ArcInner<RecordShape>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<Type>: UnsafeUnpin,
*const ArcInner<EnumShape> is !null: UnsafeUnpin,
PhantomData<ArcInner<EnumShape>>: UnsafeUnpin,
PhantomData<Vec<Type>>: UnsafeUnpin,
*const Type is !null: UnsafeUnpin,
impl UnwindSafe for Bodywhere
Arc<RecordShape>: UnwindSafe,
RawVecInner: UnwindSafe,
BoxRaw<Type>: UnwindSafe,
Arc<EnumShape>: UnwindSafe,
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