Enum browser_window::javascript::JsValue
source · pub enum JsValue {
Array(Vec<JsValue>),
Boolean(bool),
Null,
Number(BigFloat),
Object(HashMap<String, JsValue>),
String(String),
Undefined,
Other(String),
}
Expand description
A JavaScript value.
Variants§
Array(Vec<JsValue>)
Boolean(bool)
Null
Number(BigFloat)
Object(HashMap<String, JsValue>)
String(String)
Undefined
Other(String)
When a javascript value is returned that does not fit any of the other
value types in this enum, JsValue::Other
is returned with a string
representation of the value. When using feature cef
, it currently
always returns the javascript value as JsValue::Other
.
Implementations§
Trait Implementations§
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