pub enum JsPrimitive {
Other,
Bool(bool),
Number(f64),
String(String),
Date(f64),
}Expand description
A value of an array or object read in bulk (JsIn::primitives,
JsIn::primitive_entries).
Variants§
Other
Anything else: undefined, null, an object, a function, …
Bool(bool)
true or false.
Number(f64)
A number.
String(String)
A string.
Date(f64)
A Date, as milliseconds since the Unix epoch.
Trait Implementations§
Source§impl Clone for JsPrimitive
impl Clone for JsPrimitive
Source§impl Debug for JsPrimitive
impl Debug for JsPrimitive
Source§impl PartialEq for JsPrimitive
impl PartialEq for JsPrimitive
impl StructuralPartialEq for JsPrimitive
Auto Trait Implementations§
impl Forget for JsPrimitive
impl Freeze for JsPrimitive
impl Move for JsPrimitive
impl RefUnwindSafe for JsPrimitive
impl Send for JsPrimitivewhere
RawVecInner: Send,
impl Sync for JsPrimitivewhere
RawVecInner: Sync,
impl Unpin for JsPrimitive
impl UnsafeUnpin for JsPrimitive
impl UnwindSafe for JsPrimitivewhere
RawVecInner: UnwindSafe,
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