pub enum TaggedBody {
Record(Vec<Member>),
Tuple(Vec<Argument>),
Array(Vec<Value>),
}Expand description
What follows the name of a constructor in a value.
Variants§
Record(Vec<Member>)
A record, such as the { x: 1 } of Move { x: 1 }.
Tuple(Vec<Argument>)
A tuple, possibly empty as in Ping(). Positional arguments come before any named ones.
Array(Vec<Value>)
An array, possibly empty as in Users[]. It has no names, so every element is an ordinary value.
Trait Implementations§
Source§impl Clone for TaggedBody
impl Clone for TaggedBody
Source§impl Debug for TaggedBody
impl Debug for TaggedBody
impl Eq for TaggedBody
Source§impl PartialEq for TaggedBody
impl PartialEq for TaggedBody
impl StructuralPartialEq for TaggedBody
Auto Trait Implementations§
impl Forget for TaggedBody
impl Freeze for TaggedBodywhere
*const u8 is !null: Freeze,
PhantomData<Member>: Freeze,
PhantomData<Argument>: Freeze,
PhantomData<Value>: Freeze,
impl Move for TaggedBody
impl RefUnwindSafe for TaggedBody
impl Send for TaggedBodywhere
RawVecInner: Send,
impl Sync for TaggedBodywhere
RawVecInner: Sync,
impl Unpin for TaggedBody
impl UnsafeUnpin for TaggedBodywhere
*const u8 is !null: UnsafeUnpin,
PhantomData<Member>: UnsafeUnpin,
PhantomData<Argument>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
impl UnwindSafe for TaggedBodywhere
RawVecInner: 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