pub enum JsValue {
}
Variants§
U32(u32)
I32(i32)
U64(u64)
I64(i64)
True
False
Null
Undefined
Vec(Vec<u8>)
String(String)
List(Vec<JsValue>)
Object(HashMap<String, JsValue>)
Json(JsJson)
Implementations§
source§impl JsValue
impl JsValue
pub fn str(value: impl Into<String>) -> JsValue
pub fn from_block(block: MemoryBlock) -> Result<JsValue, String>
pub fn bool(value: bool) -> JsValue
pub fn string_option(value: Option<String>) -> JsValue
pub fn to_snapshot(&self) -> MemoryBlock
pub fn typename(&self) -> &'static str
pub fn convert<T, F: FnOnce(JsValueListDecoder) -> Result<T, String>>( self, convert: F ) -> Result<T, String>
Trait Implementations§
source§impl PartialEq<JsValue> for JsValue
impl PartialEq<JsValue> for JsValue
impl StructuralPartialEq for JsValue
Auto Trait Implementations§
impl RefUnwindSafe for JsValue
impl Send for JsValue
impl Sync for JsValue
impl Unpin for JsValue
impl UnwindSafe for JsValue
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