pub enum HostValue {
Undefined,
Null,
Bool(bool),
Number(f64),
Str(Rc<str>),
Bytes(Rc<[u8]>),
ForeignNode(u32, u32),
Plain(Plain),
Array(Vec<HostValue>),
Promise(u32),
}Expand description
a value exchanged with the host
Variants§
Undefined
Null
Bool(bool)
Number(f64)
Str(Rc<str>)
Bytes(Rc<[u8]>)
utf-8 bytes (ArrayBuffer, Uint8Array), not copied by the host
ForeignNode(u32, u32)
a view (AstArenaNode) of another arena: the arena handle and the node id
Plain(Plain)
a plain object (PlainAstNode, PlainToken, json data)
Array(Vec<HostValue>)
Promise(u32)
a pending host promise
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Send for HostValue
impl !Sync for HostValue
impl Forget for HostValue
impl Freeze for HostValue
impl Move for HostValue
impl RefUnwindSafe for HostValue
impl Unpin for HostValue
impl UnsafeUnpin for HostValue
impl UnwindSafe for HostValue
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