pub enum JsJson {
True,
False,
Null,
String(String),
Number(f64),
List(Vec<JsJson>),
Object(HashMap<String, JsJson>),
}
Expand description
JSON object serialized to travel between JS-WASM boundary.
Variants§
Implementations§
source§impl JsJson
impl JsJson
pub fn get_size(&self) -> u32
pub fn write_to(&self, buff: &mut MemoryBlockWrite)
pub fn typename(&self) -> &'static str
pub fn get_hashmap( self, context: &JsJsonContext ) -> Result<HashMap<String, JsJson>, JsJsonContext>
pub fn get_property<T: JsJsonDeserialize>( &mut self, context: &JsJsonContext, param: &'static str ) -> Result<T, JsJsonContext>
Trait Implementations§
source§impl PartialEq for JsJson
impl PartialEq for JsJson
impl Eq for JsJson
Auto Trait Implementations§
impl Freeze for JsJson
impl RefUnwindSafe for JsJson
impl Send for JsJson
impl Sync for JsJson
impl Unpin for JsJson
impl UnwindSafe for JsJson
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