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 TaggedBody
impl Move for TaggedBody
impl RefUnwindSafe for TaggedBody
impl Send for TaggedBody
impl Sync for TaggedBody
impl Unpin for TaggedBody
impl UnsafeUnpin for TaggedBody
impl UnwindSafe for TaggedBody
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