pub enum Presented {
Undefined,
Null,
Bool(bool),
Number(f64),
BigInt {
negative: bool,
magnitude: u128,
},
Bytes(Vec<u8>),
String(String),
Array(Vec<Presented>),
Object(Vec<(String, Presented)>),
}Expand description
A value as a host shows it.
Variants§
Undefined
Null
Bool(bool)
Number(f64)
A whole number a double holds exactly.
BigInt
Bytes(Vec<u8>)
String(String)
Array(Vec<Presented>)
Object(Vec<(String, Presented)>)
Fields in declaration order.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Presented
Auto Trait Implementations§
impl Forget for Presented
impl Freeze for Presentedwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Presented>: Freeze,
PhantomData<(String, Presented)>: Freeze,
impl Move for Presented
impl RefUnwindSafe for Presented
impl Send for Presentedwhere
RawVecInner: Send,
impl Sync for Presentedwhere
RawVecInner: Sync,
impl Unpin for Presented
impl UnsafeUnpin for Presentedwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Presented>: UnsafeUnpin,
PhantomData<(String, Presented)>: UnsafeUnpin,
impl UnwindSafe for Presentedwhere
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