pub enum HostDef {
Fn {
id: u32,
name: Rc<str>,
},
Object(Vec<(Rc<str>, HostDef)>),
Array(Vec<HostDef>),
Number(f64),
Str(Rc<str>),
Bool(bool),
Null,
}Expand description
a host definition: the javascript visitor maps and options, with the functions replaced by callback ids
Variants§
Fn
a function: its callback id and its name (Function.prototype.name)
Object(Vec<(Rc<str>, HostDef)>)
Array(Vec<HostDef>)
Number(f64)
Str(Rc<str>)
Bool(bool)
Null
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Send for HostDef
impl !Sync for HostDef
impl Forget for HostDef
impl Freeze for HostDef
impl Move for HostDef
impl RefUnwindSafe for HostDef
impl Unpin for HostDef
impl UnsafeUnpin for HostDef
impl UnwindSafe for HostDef
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