pub enum Value {
Undefined,
Null,
Bool(bool),
Number(Number),
Symbol(Symbol),
String(String),
Reference(Reference),
}
Expand description
A type representing a JavaScript value.
This type implements a rich set of conversions from and into standard Rust types, for example:
let v1: Value = "Hello world!".into();
let v2: Value = true.into();
let v3: Value = vec![ 1, 2, 3 ].into();
let v4: Value = Null.into();
let v5: Value = 123_u64.try_into().unwrap();
let v1_r: String = v1.try_into().unwrap();
let v2_r: bool = v2.try_into().unwrap();
let v3_r: Vec< i32 > = v3.try_into().unwrap();
let v4_r: Option< String > = v4.try_into().unwrap(); // Will be `None`.
let v5_r: u64 = v5.try_into().unwrap();
Variants§
Implementations§
Source§impl Value
impl Value
Sourcepub fn is_reference(&self) -> bool
pub fn is_reference(&self) -> bool
Checks whenever the Value is of the Reference variant.
Sourcepub fn as_reference(&self) -> Option<&Reference>
pub fn as_reference(&self) -> Option<&Reference>
Gets a reference to the Reference inside this Value
.
Sourcepub fn into_reference(self) -> Option<Reference>
pub fn into_reference(self) -> Option<Reference>
Returns the Reference inside this Value
.
Sourcepub fn into_object(self) -> Option<Object>
pub fn into_object(self) -> Option<Object>
Returns the Object inside this Value
.
Sourcepub fn into_array(self) -> Option<Array>
pub fn into_array(self) -> Option<Array>
Returns the Array inside this Value
.
Sourcepub unsafe fn into_reference_unchecked<T: ReferenceType>(self) -> Option<T>
pub unsafe fn into_reference_unchecked<T: ReferenceType>(self) -> Option<T>
Converts a Reference inside this Value
into
the given type T
; doesn’t check whenever the reference is really of type T
.
In cases where the value is not a Reference
a None
is returned.
Sourcepub fn into_string(self) -> Option<String>
pub fn into_string(self) -> Option<String>
Returns the String
inside this Value
.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Value
impl<'de> Deserialize<'de> for Value
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'de> Deserializer<'de> for Value
impl<'de> Deserializer<'de> for Value
Source§type Error = ConversionError
type Error = ConversionError
The error type that can be returned if some error occurs during
deserialization.
Source§fn deserialize_any<V: Visitor<'de>>(
self,
visitor: V,
) -> Result<V::Value, Self::Error>
fn deserialize_any<V: Visitor<'de>>( self, visitor: V, ) -> Result<V::Value, Self::Error>
Require the
Deserializer
to figure out how to drive the visitor based
on what data type is in the input. Read moreSource§fn deserialize_i8<V: Visitor<'de>>(
self,
visitor: V,
) -> Result<V::Value, Self::Error>
fn deserialize_i8<V: Visitor<'de>>( self, visitor: V, ) -> Result<V::Value, Self::Error>
Hint that the
Deserialize
type is expecting an i8
value.Source§fn deserialize_i16<V: Visitor<'de>>(
self,
visitor: V,
) -> Result<V::Value, Self::Error>
fn deserialize_i16<V: Visitor<'de>>( self, visitor: V, ) -> Result<V::Value, Self::Error>
Hint that the
Deserialize
type is expecting an i16
value.Source§fn deserialize_i32<V: Visitor<'de>>(
self,
visitor: V,
) -> Result<V::Value, Self::Error>
fn deserialize_i32<V: Visitor<'de>>( self, visitor: V, ) -> Result<V::Value, Self::Error>
Hint that the
Deserialize
type is expecting an i32
value.Source§fn deserialize_i64<V: Visitor<'de>>(
self,
visitor: V,
) -> Result<V::Value, Self::Error>
fn deserialize_i64<V: Visitor<'de>>( self, visitor: V, ) -> Result<V::Value, Self::Error>
Hint that the
Deserialize
type is expecting an i64
value.Source§fn deserialize_u8<V: Visitor<'de>>(
self,
visitor: V,
) -> Result<V::Value, Self::Error>
fn deserialize_u8<V: Visitor<'de>>( self, visitor: V, ) -> Result<V::Value, Self::Error>
Hint that the
Deserialize
type is expecting a u8
value.Source§fn deserialize_u16<V: Visitor<'de>>(
self,
visitor: V,
) -> Result<V::Value, Self::Error>
fn deserialize_u16<V: Visitor<'de>>( self, visitor: V, ) -> Result<V::Value, Self::Error>
Hint that the
Deserialize
type is expecting a u16
value.Source§fn deserialize_u32<V: Visitor<'de>>(
self,
visitor: V,
) -> Result<V::Value, Self::Error>
fn deserialize_u32<V: Visitor<'de>>( self, visitor: V, ) -> Result<V::Value, Self::Error>
Hint that the
Deserialize
type is expecting a u32
value.Source§fn deserialize_u64<V: Visitor<'de>>(
self,
visitor: V,
) -> Result<V::Value, Self::Error>
fn deserialize_u64<V: Visitor<'de>>( self, visitor: V, ) -> Result<V::Value, Self::Error>
Hint that the
Deserialize
type is expecting a u64
value.Source§fn deserialize_f32<V: Visitor<'de>>(
self,
visitor: V,
) -> Result<V::Value, Self::Error>
fn deserialize_f32<V: Visitor<'de>>( self, visitor: V, ) -> Result<V::Value, Self::Error>
Hint that the
Deserialize
type is expecting a f32
value.Source§fn deserialize_f64<V: Visitor<'de>>(
self,
visitor: V,
) -> Result<V::Value, Self::Error>
fn deserialize_f64<V: Visitor<'de>>( self, visitor: V, ) -> Result<V::Value, Self::Error>
Hint that the
Deserialize
type is expecting a f64
value.Source§fn deserialize_option<V: Visitor<'de>>(
self,
visitor: V,
) -> Result<V::Value, Self::Error>
fn deserialize_option<V: Visitor<'de>>( self, visitor: V, ) -> Result<V::Value, Self::Error>
Hint that the
Deserialize
type is expecting an optional value. Read moreSource§fn deserialize_enum<V: Visitor<'de>>(
self,
_name: &str,
_variants: &'static [&'static str],
visitor: V,
) -> Result<V::Value, Self::Error>
fn deserialize_enum<V: Visitor<'de>>( self, _name: &str, _variants: &'static [&'static str], visitor: V, ) -> Result<V::Value, Self::Error>
Hint that the
Deserialize
type is expecting an enum value with a
particular name and possible variants.Source§fn deserialize_newtype_struct<V: Visitor<'de>>(
self,
_name: &'static str,
visitor: V,
) -> Result<V::Value, Self::Error>
fn deserialize_newtype_struct<V: Visitor<'de>>( self, _name: &'static str, visitor: V, ) -> Result<V::Value, Self::Error>
Hint that the
Deserialize
type is expecting a newtype struct with a
particular name.Source§fn deserialize_bool<V>(
self,
visitor: V,
) -> Result<V::Value, <Self as Deserializer<'de>>::Error>where
V: Visitor<'de>,
fn deserialize_bool<V>(
self,
visitor: V,
) -> Result<V::Value, <Self as Deserializer<'de>>::Error>where
V: Visitor<'de>,
Hint that the
Deserialize
type is expecting a bool
value.Source§fn deserialize_char<V>(
self,
visitor: V,
) -> Result<V::Value, <Self as Deserializer<'de>>::Error>where
V: Visitor<'de>,
fn deserialize_char<V>(
self,
visitor: V,
) -> Result<V::Value, <Self as Deserializer<'de>>::Error>where
V: Visitor<'de>,
Hint that the
Deserialize
type is expecting a char
value.Source§fn deserialize_str<V>(
self,
visitor: V,
) -> Result<V::Value, <Self as Deserializer<'de>>::Error>where
V: Visitor<'de>,
fn deserialize_str<V>(
self,
visitor: V,
) -> Result<V::Value, <Self as Deserializer<'de>>::Error>where
V: Visitor<'de>,
Hint that the
Deserialize
type is expecting a string value and does
not benefit from taking ownership of buffered data owned by the
Deserializer
. Read moreSource§fn deserialize_string<V>(
self,
visitor: V,
) -> Result<V::Value, <Self as Deserializer<'de>>::Error>where
V: Visitor<'de>,
fn deserialize_string<V>(
self,
visitor: V,
) -> Result<V::Value, <Self as Deserializer<'de>>::Error>where
V: Visitor<'de>,
Hint that the
Deserialize
type is expecting a string value and would
benefit from taking ownership of buffered data owned by the
Deserializer
. Read moreSource§fn deserialize_unit<V>(
self,
visitor: V,
) -> Result<V::Value, <Self as Deserializer<'de>>::Error>where
V: Visitor<'de>,
fn deserialize_unit<V>(
self,
visitor: V,
) -> Result<V::Value, <Self as Deserializer<'de>>::Error>where
V: Visitor<'de>,
Hint that the
Deserialize
type is expecting a unit value.Source§fn deserialize_seq<V>(
self,
visitor: V,
) -> Result<V::Value, <Self as Deserializer<'de>>::Error>where
V: Visitor<'de>,
fn deserialize_seq<V>(
self,
visitor: V,
) -> Result<V::Value, <Self as Deserializer<'de>>::Error>where
V: Visitor<'de>,
Hint that the
Deserialize
type is expecting a sequence of values.Source§fn deserialize_bytes<V>(
self,
visitor: V,
) -> Result<V::Value, <Self as Deserializer<'de>>::Error>where
V: Visitor<'de>,
fn deserialize_bytes<V>(
self,
visitor: V,
) -> Result<V::Value, <Self as Deserializer<'de>>::Error>where
V: Visitor<'de>,
Hint that the
Deserialize
type is expecting a byte array and does not
benefit from taking ownership of buffered data owned by the
Deserializer
. Read moreSource§fn deserialize_byte_buf<V>(
self,
visitor: V,
) -> Result<V::Value, <Self as Deserializer<'de>>::Error>where
V: Visitor<'de>,
fn deserialize_byte_buf<V>(
self,
visitor: V,
) -> Result<V::Value, <Self as Deserializer<'de>>::Error>where
V: Visitor<'de>,
Hint that the
Deserialize
type is expecting a byte array and would
benefit from taking ownership of buffered data owned by the
Deserializer
. Read moreSource§fn deserialize_map<V>(
self,
visitor: V,
) -> Result<V::Value, <Self as Deserializer<'de>>::Error>where
V: Visitor<'de>,
fn deserialize_map<V>(
self,
visitor: V,
) -> Result<V::Value, <Self as Deserializer<'de>>::Error>where
V: Visitor<'de>,
Hint that the
Deserialize
type is expecting a map of key-value pairs.Source§fn deserialize_unit_struct<V>(
self,
name: &'static str,
visitor: V,
) -> Result<V::Value, <Self as Deserializer<'de>>::Error>where
V: Visitor<'de>,
fn deserialize_unit_struct<V>(
self,
name: &'static str,
visitor: V,
) -> Result<V::Value, <Self as Deserializer<'de>>::Error>where
V: Visitor<'de>,
Hint that the
Deserialize
type is expecting a unit struct with a
particular name.Source§fn deserialize_tuple_struct<V>(
self,
name: &'static str,
len: usize,
visitor: V,
) -> Result<V::Value, <Self as Deserializer<'de>>::Error>where
V: Visitor<'de>,
fn deserialize_tuple_struct<V>(
self,
name: &'static str,
len: usize,
visitor: V,
) -> Result<V::Value, <Self as Deserializer<'de>>::Error>where
V: Visitor<'de>,
Hint that the
Deserialize
type is expecting a tuple struct with a
particular name and number of fields.Source§fn deserialize_struct<V>(
self,
name: &'static str,
fields: &'static [&'static str],
visitor: V,
) -> Result<V::Value, <Self as Deserializer<'de>>::Error>where
V: Visitor<'de>,
fn deserialize_struct<V>(
self,
name: &'static str,
fields: &'static [&'static str],
visitor: V,
) -> Result<V::Value, <Self as Deserializer<'de>>::Error>where
V: Visitor<'de>,
Hint that the
Deserialize
type is expecting a struct with a particular
name and fields.Source§fn deserialize_identifier<V>(
self,
visitor: V,
) -> Result<V::Value, <Self as Deserializer<'de>>::Error>where
V: Visitor<'de>,
fn deserialize_identifier<V>(
self,
visitor: V,
) -> Result<V::Value, <Self as Deserializer<'de>>::Error>where
V: Visitor<'de>,
Hint that the
Deserialize
type is expecting the name of a struct
field or the discriminant of an enum variant.Source§fn deserialize_tuple<V>(
self,
len: usize,
visitor: V,
) -> Result<V::Value, <Self as Deserializer<'de>>::Error>where
V: Visitor<'de>,
fn deserialize_tuple<V>(
self,
len: usize,
visitor: V,
) -> Result<V::Value, <Self as Deserializer<'de>>::Error>where
V: Visitor<'de>,
Hint that the
Deserialize
type is expecting a sequence of values and
knows how many values there are without looking at the serialized data.Source§fn deserialize_ignored_any<V>(
self,
visitor: V,
) -> Result<V::Value, <Self as Deserializer<'de>>::Error>where
V: Visitor<'de>,
fn deserialize_ignored_any<V>(
self,
visitor: V,
) -> Result<V::Value, <Self as Deserializer<'de>>::Error>where
V: Visitor<'de>,
Hint that the
Deserialize
type needs to deserialize a value whose type
doesn’t matter because it is ignored. Read moreSource§fn deserialize_i128<V>(
self,
visitor: V,
) -> Result<<V as Visitor<'de>>::Value, Self::Error>where
V: Visitor<'de>,
fn deserialize_i128<V>(
self,
visitor: V,
) -> Result<<V as Visitor<'de>>::Value, Self::Error>where
V: Visitor<'de>,
Source§fn deserialize_u128<V>(
self,
visitor: V,
) -> Result<<V as Visitor<'de>>::Value, Self::Error>where
V: Visitor<'de>,
fn deserialize_u128<V>(
self,
visitor: V,
) -> Result<<V as Visitor<'de>>::Value, Self::Error>where
V: Visitor<'de>,
Source§fn is_human_readable(&self) -> bool
fn is_human_readable(&self) -> bool
Determine whether
Deserialize
implementations should expect to
deserialize their human-readable form. Read moreSource§impl<'_r> TryFrom<&'_r Value> for AbortError
impl<'_r> TryFrom<&'_r Value> for AbortError
Source§impl<'_r> TryFrom<&'_r Value> for ArrayBuffer
impl<'_r> TryFrom<&'_r Value> for ArrayBuffer
Source§impl<'_r> TryFrom<&'_r Value> for AuxClickEvent
impl<'_r> TryFrom<&'_r Value> for AuxClickEvent
Source§impl<'_r> TryFrom<&'_r Value> for BeforeUnloadEvent
impl<'_r> TryFrom<&'_r Value> for BeforeUnloadEvent
Source§impl<'_r> TryFrom<&'_r Value> for CanvasElement
impl<'_r> TryFrom<&'_r Value> for CanvasElement
Source§impl<'_r> TryFrom<&'_r Value> for CanvasGradient
impl<'_r> TryFrom<&'_r Value> for CanvasGradient
Source§impl<'_r> TryFrom<&'_r Value> for CanvasPattern
impl<'_r> TryFrom<&'_r Value> for CanvasPattern
Source§impl<'_r> TryFrom<&'_r Value> for CanvasRenderingContext2d
impl<'_r> TryFrom<&'_r Value> for CanvasRenderingContext2d
Source§impl<'_r> TryFrom<&'_r Value> for ChangeEvent
impl<'_r> TryFrom<&'_r Value> for ChangeEvent
Source§impl<'_r> TryFrom<&'_r Value> for ClickEvent
impl<'_r> TryFrom<&'_r Value> for ClickEvent
Source§impl<'_r> TryFrom<&'_r Value> for ContextMenuEvent
impl<'_r> TryFrom<&'_r Value> for ContextMenuEvent
Source§impl<'_r> TryFrom<&'_r Value> for DataTransfer
impl<'_r> TryFrom<&'_r Value> for DataTransfer
Source§impl<'_r> TryFrom<&'_r Value> for DataTransferItem
impl<'_r> TryFrom<&'_r Value> for DataTransferItem
Source§impl<'_r> TryFrom<&'_r Value> for DataTransferItemList
impl<'_r> TryFrom<&'_r Value> for DataTransferItemList
Source§impl<'_r> TryFrom<&'_r Value> for DocumentFragment
impl<'_r> TryFrom<&'_r Value> for DocumentFragment
Source§impl<'_r> TryFrom<&'_r Value> for DomException
impl<'_r> TryFrom<&'_r Value> for DomException
Source§impl<'_r> TryFrom<&'_r Value> for DoubleClickEvent
impl<'_r> TryFrom<&'_r Value> for DoubleClickEvent
Source§impl<'_r> TryFrom<&'_r Value> for DragDropEvent
impl<'_r> TryFrom<&'_r Value> for DragDropEvent
Source§impl<'_r> TryFrom<&'_r Value> for DragEndEvent
impl<'_r> TryFrom<&'_r Value> for DragEndEvent
Source§impl<'_r> TryFrom<&'_r Value> for DragEnterEvent
impl<'_r> TryFrom<&'_r Value> for DragEnterEvent
Source§impl<'_r> TryFrom<&'_r Value> for DragExitEvent
impl<'_r> TryFrom<&'_r Value> for DragExitEvent
Source§impl<'_r> TryFrom<&'_r Value> for DragLeaveEvent
impl<'_r> TryFrom<&'_r Value> for DragLeaveEvent
Source§impl<'_r> TryFrom<&'_r Value> for DragOverEvent
impl<'_r> TryFrom<&'_r Value> for DragOverEvent
Source§impl<'_r> TryFrom<&'_r Value> for DragRelatedEvent
impl<'_r> TryFrom<&'_r Value> for DragRelatedEvent
Source§impl<'_r> TryFrom<&'_r Value> for DragStartEvent
impl<'_r> TryFrom<&'_r Value> for DragStartEvent
Source§impl<'_r> TryFrom<&'_r Value> for EventTarget
impl<'_r> TryFrom<&'_r Value> for EventTarget
Source§impl<'_r> TryFrom<&'_r Value> for FileReader
impl<'_r> TryFrom<&'_r Value> for FileReader
Source§impl<'_r> TryFrom<&'_r Value> for FocusEvent
impl<'_r> TryFrom<&'_r Value> for FocusEvent
Source§impl<'_r> TryFrom<&'_r Value> for FullscreenChangeEvent
impl<'_r> TryFrom<&'_r Value> for FullscreenChangeEvent
Source§impl<'_r> TryFrom<&'_r Value> for GamepadButton
impl<'_r> TryFrom<&'_r Value> for GamepadButton
Source§impl<'_r> TryFrom<&'_r Value> for GamepadConnectedEvent
impl<'_r> TryFrom<&'_r Value> for GamepadConnectedEvent
Source§impl<'_r> TryFrom<&'_r Value> for GamepadDisconnectedEvent
impl<'_r> TryFrom<&'_r Value> for GamepadDisconnectedEvent
Source§impl<'_r> TryFrom<&'_r Value> for GotPointerCaptureEvent
impl<'_r> TryFrom<&'_r Value> for GotPointerCaptureEvent
Source§impl<'_r> TryFrom<&'_r Value> for HashChangeEvent
impl<'_r> TryFrom<&'_r Value> for HashChangeEvent
Source§impl<'_r> TryFrom<&'_r Value> for HierarchyRequestError
impl<'_r> TryFrom<&'_r Value> for HierarchyRequestError
Source§impl<'_r> TryFrom<&'_r Value> for HtmlCollection
impl<'_r> TryFrom<&'_r Value> for HtmlCollection
Source§impl<'_r> TryFrom<&'_r Value> for HtmlElement
impl<'_r> TryFrom<&'_r Value> for HtmlElement
Source§impl<'_r> TryFrom<&'_r Value> for ImageElement
impl<'_r> TryFrom<&'_r Value> for ImageElement
Source§impl<'_r> TryFrom<&'_r Value> for IndexSizeError
impl<'_r> TryFrom<&'_r Value> for IndexSizeError
Source§impl<'_r> TryFrom<&'_r Value> for InputElement
impl<'_r> TryFrom<&'_r Value> for InputElement
Source§impl<'_r> TryFrom<&'_r Value> for InputEvent
impl<'_r> TryFrom<&'_r Value> for InputEvent
Source§impl<'_r> TryFrom<&'_r Value> for InvalidAccessError
impl<'_r> TryFrom<&'_r Value> for InvalidAccessError
Source§impl<'_r> TryFrom<&'_r Value> for InvalidCharacterError
impl<'_r> TryFrom<&'_r Value> for InvalidCharacterError
Source§impl<'_r> TryFrom<&'_r Value> for InvalidStateError
impl<'_r> TryFrom<&'_r Value> for InvalidStateError
Source§impl<'_r> TryFrom<&'_r Value> for KeyDownEvent
impl<'_r> TryFrom<&'_r Value> for KeyDownEvent
Source§impl<'_r> TryFrom<&'_r Value> for KeyPressEvent
impl<'_r> TryFrom<&'_r Value> for KeyPressEvent
Source§impl<'_r> TryFrom<&'_r Value> for KeyUpEvent
impl<'_r> TryFrom<&'_r Value> for KeyUpEvent
Source§impl<'_r> TryFrom<&'_r Value> for LoadEndEvent
impl<'_r> TryFrom<&'_r Value> for LoadEndEvent
Source§impl<'_r> TryFrom<&'_r Value> for LoadStartEvent
impl<'_r> TryFrom<&'_r Value> for LoadStartEvent
Source§impl<'_r> TryFrom<&'_r Value> for LostPointerCaptureEvent
impl<'_r> TryFrom<&'_r Value> for LostPointerCaptureEvent
Source§impl<'_r> TryFrom<&'_r Value> for MouseDownEvent
impl<'_r> TryFrom<&'_r Value> for MouseDownEvent
Source§impl<'_r> TryFrom<&'_r Value> for MouseEnterEvent
impl<'_r> TryFrom<&'_r Value> for MouseEnterEvent
Source§impl<'_r> TryFrom<&'_r Value> for MouseLeaveEvent
impl<'_r> TryFrom<&'_r Value> for MouseLeaveEvent
Source§impl<'_r> TryFrom<&'_r Value> for MouseMoveEvent
impl<'_r> TryFrom<&'_r Value> for MouseMoveEvent
Source§impl<'_r> TryFrom<&'_r Value> for MouseOutEvent
impl<'_r> TryFrom<&'_r Value> for MouseOutEvent
Source§impl<'_r> TryFrom<&'_r Value> for MouseOverEvent
impl<'_r> TryFrom<&'_r Value> for MouseOverEvent
Source§impl<'_r> TryFrom<&'_r Value> for MouseUpEvent
impl<'_r> TryFrom<&'_r Value> for MouseUpEvent
Source§impl<'_r> TryFrom<&'_r Value> for MouseWheelEvent
impl<'_r> TryFrom<&'_r Value> for MouseWheelEvent
Source§impl<'_r> TryFrom<&'_r Value> for MutationObserver
impl<'_r> TryFrom<&'_r Value> for MutationObserver
Source§impl<'_r> TryFrom<&'_r Value> for NotFoundError
impl<'_r> TryFrom<&'_r Value> for NotFoundError
Source§impl<'_r> TryFrom<&'_r Value> for NotSupportedError
impl<'_r> TryFrom<&'_r Value> for NotSupportedError
Source§impl<'_r> TryFrom<&'_r Value> for OptionElement
impl<'_r> TryFrom<&'_r Value> for OptionElement
Source§impl<'_r> TryFrom<&'_r Value> for PointerCancelEvent
impl<'_r> TryFrom<&'_r Value> for PointerCancelEvent
Source§impl<'_r> TryFrom<&'_r Value> for PointerDownEvent
impl<'_r> TryFrom<&'_r Value> for PointerDownEvent
Source§impl<'_r> TryFrom<&'_r Value> for PointerEnterEvent
impl<'_r> TryFrom<&'_r Value> for PointerEnterEvent
Source§impl<'_r> TryFrom<&'_r Value> for PointerLeaveEvent
impl<'_r> TryFrom<&'_r Value> for PointerLeaveEvent
Source§impl<'_r> TryFrom<&'_r Value> for PointerLockChangeEvent
impl<'_r> TryFrom<&'_r Value> for PointerLockChangeEvent
Source§impl<'_r> TryFrom<&'_r Value> for PointerLockErrorEvent
impl<'_r> TryFrom<&'_r Value> for PointerLockErrorEvent
Source§impl<'_r> TryFrom<&'_r Value> for PointerMoveEvent
impl<'_r> TryFrom<&'_r Value> for PointerMoveEvent
Source§impl<'_r> TryFrom<&'_r Value> for PointerOutEvent
impl<'_r> TryFrom<&'_r Value> for PointerOutEvent
Source§impl<'_r> TryFrom<&'_r Value> for PointerOverEvent
impl<'_r> TryFrom<&'_r Value> for PointerOverEvent
Source§impl<'_r> TryFrom<&'_r Value> for PointerUpEvent
impl<'_r> TryFrom<&'_r Value> for PointerUpEvent
Source§impl<'_r> TryFrom<&'_r Value> for PopStateEvent
impl<'_r> TryFrom<&'_r Value> for PopStateEvent
Source§impl<'_r> TryFrom<&'_r Value> for ProgressAbortEvent
impl<'_r> TryFrom<&'_r Value> for ProgressAbortEvent
Source§impl<'_r> TryFrom<&'_r Value> for ProgressErrorEvent
impl<'_r> TryFrom<&'_r Value> for ProgressErrorEvent
Source§impl<'_r> TryFrom<&'_r Value> for ProgressEvent
impl<'_r> TryFrom<&'_r Value> for ProgressEvent
Source§impl<'_r> TryFrom<&'_r Value> for ProgressLoadEvent
impl<'_r> TryFrom<&'_r Value> for ProgressLoadEvent
Source§impl<'_r> TryFrom<&'_r Value> for ReadyStateChangeEvent
impl<'_r> TryFrom<&'_r Value> for ReadyStateChangeEvent
Source§impl<'_r> TryFrom<&'_r Value> for ResizeEvent
impl<'_r> TryFrom<&'_r Value> for ResizeEvent
Source§impl<'_r> TryFrom<&'_r Value> for ResourceAbortEvent
impl<'_r> TryFrom<&'_r Value> for ResourceAbortEvent
Source§impl<'_r> TryFrom<&'_r Value> for ResourceErrorEvent
impl<'_r> TryFrom<&'_r Value> for ResourceErrorEvent
Source§impl<'_r> TryFrom<&'_r Value> for ResourceLoadEvent
impl<'_r> TryFrom<&'_r Value> for ResourceLoadEvent
Source§impl<'_r> TryFrom<&'_r Value> for ScrollEvent
impl<'_r> TryFrom<&'_r Value> for ScrollEvent
Source§impl<'_r> TryFrom<&'_r Value> for SecurityError
impl<'_r> TryFrom<&'_r Value> for SecurityError
Source§impl<'_r> TryFrom<&'_r Value> for SelectElement
impl<'_r> TryFrom<&'_r Value> for SelectElement
Source§impl<'_r> TryFrom<&'_r Value> for SelectionChangeEvent
impl<'_r> TryFrom<&'_r Value> for SelectionChangeEvent
Source§impl<'_r> TryFrom<&'_r Value> for ShadowRoot
impl<'_r> TryFrom<&'_r Value> for ShadowRoot
Source§impl<'_r> TryFrom<&'_r Value> for SlotChangeEvent
impl<'_r> TryFrom<&'_r Value> for SlotChangeEvent
Source§impl<'_r> TryFrom<&'_r Value> for SlotElement
impl<'_r> TryFrom<&'_r Value> for SlotElement
Source§impl<'_r> TryFrom<&'_r Value> for SocketCloseEvent
impl<'_r> TryFrom<&'_r Value> for SocketCloseEvent
Source§impl<'_r> TryFrom<&'_r Value> for SocketErrorEvent
impl<'_r> TryFrom<&'_r Value> for SocketErrorEvent
Source§impl<'_r> TryFrom<&'_r Value> for SocketMessageEvent
impl<'_r> TryFrom<&'_r Value> for SocketMessageEvent
Source§impl<'_r> TryFrom<&'_r Value> for SocketOpenEvent
impl<'_r> TryFrom<&'_r Value> for SocketOpenEvent
Source§impl<'_r> TryFrom<&'_r Value> for SubmitEvent
impl<'_r> TryFrom<&'_r Value> for SubmitEvent
Source§impl<'_r> TryFrom<&'_r Value> for SyntaxError
impl<'_r> TryFrom<&'_r Value> for SyntaxError
Source§impl<'_r> TryFrom<&'_r Value> for TemplateElement
impl<'_r> TryFrom<&'_r Value> for TemplateElement
Source§impl<'_r> TryFrom<&'_r Value> for TextAreaElement
impl<'_r> TryFrom<&'_r Value> for TextAreaElement
Source§impl<'_r> TryFrom<&'_r Value> for TextMetrics
impl<'_r> TryFrom<&'_r Value> for TextMetrics
Source§impl<'_r> TryFrom<&'_r Value> for TouchCancel
impl<'_r> TryFrom<&'_r Value> for TouchCancel
Source§impl<'_r> TryFrom<&'_r Value> for TouchEnter
impl<'_r> TryFrom<&'_r Value> for TouchEnter
Source§impl<'_r> TryFrom<&'_r Value> for TouchEvent
impl<'_r> TryFrom<&'_r Value> for TouchEvent
Source§impl<'_r> TryFrom<&'_r Value> for TouchLeave
impl<'_r> TryFrom<&'_r Value> for TouchLeave
Source§impl<'_r> TryFrom<&'_r Value> for TouchStart
impl<'_r> TryFrom<&'_r Value> for TouchStart
Source§impl<'_r, T: ArrayKind> TryFrom<&'_r Value> for TypedArray<T>
impl<'_r, T: ArrayKind> TryFrom<&'_r Value> for TypedArray<T>
Source§impl<'_r> TryFrom<&'_r Value> for UnloadEvent
impl<'_r> TryFrom<&'_r Value> for UnloadEvent
Source§impl<'_r> TryFrom<&'_r Value> for XmlHttpRequest
impl<'_r> TryFrom<&'_r Value> for XmlHttpRequest
Source§impl TryFrom<Value> for AbortError
impl TryFrom<Value> for AbortError
Source§impl TryFrom<Value> for AddColorStopError
impl TryFrom<Value> for AddColorStopError
Source§impl TryFrom<Value> for ArrayBuffer
impl TryFrom<Value> for ArrayBuffer
Source§impl TryFrom<Value> for AuxClickEvent
impl TryFrom<Value> for AuxClickEvent
Source§impl<E: Into<ConversionError>, V: TryFrom<Value, Error = E>> TryFrom<Value> for BTreeMap<String, V>
impl<E: Into<ConversionError>, V: TryFrom<Value, Error = E>> TryFrom<Value> for BTreeMap<String, V>
Source§impl TryFrom<Value> for BeforeUnloadEvent
impl TryFrom<Value> for BeforeUnloadEvent
Source§impl TryFrom<Value> for CanvasElement
impl TryFrom<Value> for CanvasElement
Source§impl TryFrom<Value> for CanvasGradient
impl TryFrom<Value> for CanvasGradient
Source§impl TryFrom<Value> for CanvasPattern
impl TryFrom<Value> for CanvasPattern
Source§impl TryFrom<Value> for CanvasRenderingContext2d
impl TryFrom<Value> for CanvasRenderingContext2d
Source§impl TryFrom<Value> for CanvasStyle
impl TryFrom<Value> for CanvasStyle
Source§impl TryFrom<Value> for ChangeEvent
impl TryFrom<Value> for ChangeEvent
Source§impl TryFrom<Value> for ClickEvent
impl TryFrom<Value> for ClickEvent
Source§impl TryFrom<Value> for ContextMenuEvent
impl TryFrom<Value> for ContextMenuEvent
Source§impl TryFrom<Value> for DataTransfer
impl TryFrom<Value> for DataTransfer
Source§impl TryFrom<Value> for DataTransferItem
impl TryFrom<Value> for DataTransferItem
Source§impl TryFrom<Value> for DataTransferItemList
impl TryFrom<Value> for DataTransferItemList
Source§impl TryFrom<Value> for DocumentFragment
impl TryFrom<Value> for DocumentFragment
Source§impl TryFrom<Value> for DomException
impl TryFrom<Value> for DomException
Source§impl TryFrom<Value> for DoubleClickEvent
impl TryFrom<Value> for DoubleClickEvent
Source§impl TryFrom<Value> for DragDropEvent
impl TryFrom<Value> for DragDropEvent
Source§impl TryFrom<Value> for DragEndEvent
impl TryFrom<Value> for DragEndEvent
Source§impl TryFrom<Value> for DragEnterEvent
impl TryFrom<Value> for DragEnterEvent
Source§impl TryFrom<Value> for DragExitEvent
impl TryFrom<Value> for DragExitEvent
Source§impl TryFrom<Value> for DragLeaveEvent
impl TryFrom<Value> for DragLeaveEvent
Source§impl TryFrom<Value> for DragOverEvent
impl TryFrom<Value> for DragOverEvent
Source§impl TryFrom<Value> for DragRelatedEvent
impl TryFrom<Value> for DragRelatedEvent
Source§impl TryFrom<Value> for DragStartEvent
impl TryFrom<Value> for DragStartEvent
Source§impl TryFrom<Value> for DrawImageError
impl TryFrom<Value> for DrawImageError
Source§impl TryFrom<Value> for EventTarget
impl TryFrom<Value> for EventTarget
Source§impl TryFrom<Value> for FileReader
impl TryFrom<Value> for FileReader
Source§impl TryFrom<Value> for FocusEvent
impl TryFrom<Value> for FocusEvent
Source§impl TryFrom<Value> for FormDataEntry
impl TryFrom<Value> for FormDataEntry
Source§impl TryFrom<Value> for FullscreenChangeEvent
impl TryFrom<Value> for FullscreenChangeEvent
Source§impl TryFrom<Value> for GamepadButton
impl TryFrom<Value> for GamepadButton
Source§impl TryFrom<Value> for GamepadConnectedEvent
impl TryFrom<Value> for GamepadConnectedEvent
Source§impl TryFrom<Value> for GamepadDisconnectedEvent
impl TryFrom<Value> for GamepadDisconnectedEvent
Source§impl TryFrom<Value> for GamepadMappingType
impl TryFrom<Value> for GamepadMappingType
Source§impl TryFrom<Value> for GetImageDataError
impl TryFrom<Value> for GetImageDataError
Source§impl TryFrom<Value> for GotPointerCaptureEvent
impl TryFrom<Value> for GotPointerCaptureEvent
Source§impl TryFrom<Value> for HashChangeEvent
impl TryFrom<Value> for HashChangeEvent
Source§impl<E: Into<ConversionError>, V: TryFrom<Value, Error = E>> TryFrom<Value> for HashMap<String, V>
impl<E: Into<ConversionError>, V: TryFrom<Value, Error = E>> TryFrom<Value> for HashMap<String, V>
Source§impl TryFrom<Value> for HierarchyRequestError
impl TryFrom<Value> for HierarchyRequestError
Source§impl TryFrom<Value> for HtmlCollection
impl TryFrom<Value> for HtmlCollection
Source§impl TryFrom<Value> for HtmlElement
impl TryFrom<Value> for HtmlElement
Source§impl TryFrom<Value> for ImageElement
impl TryFrom<Value> for ImageElement
Source§impl TryFrom<Value> for IndexSizeError
impl TryFrom<Value> for IndexSizeError
Source§impl TryFrom<Value> for InputElement
impl TryFrom<Value> for InputElement
Source§impl TryFrom<Value> for InputEvent
impl TryFrom<Value> for InputEvent
Source§impl TryFrom<Value> for InvalidAccessError
impl TryFrom<Value> for InvalidAccessError
Source§impl TryFrom<Value> for InvalidCharacterError
impl TryFrom<Value> for InvalidCharacterError
Source§impl TryFrom<Value> for InvalidStateError
impl TryFrom<Value> for InvalidStateError
Source§impl TryFrom<Value> for KeyDownEvent
impl TryFrom<Value> for KeyDownEvent
Source§impl TryFrom<Value> for KeyPressEvent
impl TryFrom<Value> for KeyPressEvent
Source§impl TryFrom<Value> for KeyUpEvent
impl TryFrom<Value> for KeyUpEvent
Source§impl TryFrom<Value> for LoadEndEvent
impl TryFrom<Value> for LoadEndEvent
Source§impl TryFrom<Value> for LoadStartEvent
impl TryFrom<Value> for LoadStartEvent
Source§impl TryFrom<Value> for LostPointerCaptureEvent
impl TryFrom<Value> for LostPointerCaptureEvent
Source§impl TryFrom<Value> for MouseDownEvent
impl TryFrom<Value> for MouseDownEvent
Source§impl TryFrom<Value> for MouseEnterEvent
impl TryFrom<Value> for MouseEnterEvent
Source§impl TryFrom<Value> for MouseLeaveEvent
impl TryFrom<Value> for MouseLeaveEvent
Source§impl TryFrom<Value> for MouseMoveEvent
impl TryFrom<Value> for MouseMoveEvent
Source§impl TryFrom<Value> for MouseOutEvent
impl TryFrom<Value> for MouseOutEvent
Source§impl TryFrom<Value> for MouseOverEvent
impl TryFrom<Value> for MouseOverEvent
Source§impl TryFrom<Value> for MouseUpEvent
impl TryFrom<Value> for MouseUpEvent
Source§impl TryFrom<Value> for MouseWheelEvent
impl TryFrom<Value> for MouseWheelEvent
Source§impl TryFrom<Value> for MutationObserver
impl TryFrom<Value> for MutationObserver
Source§impl TryFrom<Value> for MutationRecord
impl TryFrom<Value> for MutationRecord
Source§impl TryFrom<Value> for NotFoundError
impl TryFrom<Value> for NotFoundError
Source§impl TryFrom<Value> for NotSupportedError
impl TryFrom<Value> for NotSupportedError
Source§impl<T: TryFrom<Value, Error = ConversionError> + AsRef<Reference>> TryFrom<Value> for Option<T>
impl<T: TryFrom<Value, Error = ConversionError> + AsRef<Reference>> TryFrom<Value> for Option<T>
Source§impl TryFrom<Value> for OptionElement
impl TryFrom<Value> for OptionElement
Source§impl TryFrom<Value> for PointerCancelEvent
impl TryFrom<Value> for PointerCancelEvent
Source§impl TryFrom<Value> for PointerDownEvent
impl TryFrom<Value> for PointerDownEvent
Source§impl TryFrom<Value> for PointerEnterEvent
impl TryFrom<Value> for PointerEnterEvent
Source§impl TryFrom<Value> for PointerLeaveEvent
impl TryFrom<Value> for PointerLeaveEvent
Source§impl TryFrom<Value> for PointerLockChangeEvent
impl TryFrom<Value> for PointerLockChangeEvent
Source§impl TryFrom<Value> for PointerLockErrorEvent
impl TryFrom<Value> for PointerLockErrorEvent
Source§impl TryFrom<Value> for PointerMoveEvent
impl TryFrom<Value> for PointerMoveEvent
Source§impl TryFrom<Value> for PointerOutEvent
impl TryFrom<Value> for PointerOutEvent
Source§impl TryFrom<Value> for PointerOverEvent
impl TryFrom<Value> for PointerOverEvent
Source§impl TryFrom<Value> for PointerUpEvent
impl TryFrom<Value> for PointerUpEvent
Source§impl TryFrom<Value> for PopStateEvent
impl TryFrom<Value> for PopStateEvent
Source§impl TryFrom<Value> for ProgressAbortEvent
impl TryFrom<Value> for ProgressAbortEvent
Source§impl TryFrom<Value> for ProgressErrorEvent
impl TryFrom<Value> for ProgressErrorEvent
Source§impl TryFrom<Value> for ProgressEvent
impl TryFrom<Value> for ProgressEvent
Source§impl TryFrom<Value> for ProgressLoadEvent
impl TryFrom<Value> for ProgressLoadEvent
Source§impl TryFrom<Value> for ReadyStateChangeEvent
impl TryFrom<Value> for ReadyStateChangeEvent
Source§impl TryFrom<Value> for ResizeEvent
impl TryFrom<Value> for ResizeEvent
Source§impl TryFrom<Value> for ResourceAbortEvent
impl TryFrom<Value> for ResourceAbortEvent
Source§impl TryFrom<Value> for ResourceErrorEvent
impl TryFrom<Value> for ResourceErrorEvent
Source§impl TryFrom<Value> for ResourceLoadEvent
impl TryFrom<Value> for ResourceLoadEvent
Source§impl TryFrom<Value> for ScrollEvent
impl TryFrom<Value> for ScrollEvent
Source§impl TryFrom<Value> for SecurityError
impl TryFrom<Value> for SecurityError
Source§impl TryFrom<Value> for SelectElement
impl TryFrom<Value> for SelectElement
Source§impl TryFrom<Value> for SelectionChangeEvent
impl TryFrom<Value> for SelectionChangeEvent
Source§impl TryFrom<Value> for ShadowRoot
impl TryFrom<Value> for ShadowRoot
Source§impl TryFrom<Value> for SlotChangeEvent
impl TryFrom<Value> for SlotChangeEvent
Source§impl TryFrom<Value> for SlotElement
impl TryFrom<Value> for SlotElement
Source§impl TryFrom<Value> for SocketCloseEvent
impl TryFrom<Value> for SocketCloseEvent
Source§impl TryFrom<Value> for SocketErrorEvent
impl TryFrom<Value> for SocketErrorEvent
Source§impl TryFrom<Value> for SocketMessageData
impl TryFrom<Value> for SocketMessageData
Source§impl TryFrom<Value> for SocketMessageEvent
impl TryFrom<Value> for SocketMessageEvent
Source§impl TryFrom<Value> for SocketOpenEvent
impl TryFrom<Value> for SocketOpenEvent
Source§impl TryFrom<Value> for SocketReadyState
impl TryFrom<Value> for SocketReadyState
Source§impl TryFrom<Value> for SubmitEvent
impl TryFrom<Value> for SubmitEvent
Source§impl TryFrom<Value> for SyntaxError
impl TryFrom<Value> for SyntaxError
Source§impl TryFrom<Value> for TemplateElement
impl TryFrom<Value> for TemplateElement
Source§impl TryFrom<Value> for TextAreaElement
impl TryFrom<Value> for TextAreaElement
Source§impl TryFrom<Value> for TextMetrics
impl TryFrom<Value> for TextMetrics
Source§impl TryFrom<Value> for TouchCancel
impl TryFrom<Value> for TouchCancel
Source§impl TryFrom<Value> for TouchEnter
impl TryFrom<Value> for TouchEnter
Source§impl TryFrom<Value> for TouchEvent
impl TryFrom<Value> for TouchEvent
Source§impl TryFrom<Value> for TouchLeave
impl TryFrom<Value> for TouchLeave
Source§impl TryFrom<Value> for TouchStart
impl TryFrom<Value> for TouchStart
Source§impl<T: ArrayKind> TryFrom<Value> for TypedArray<T>
impl<T: ArrayKind> TryFrom<Value> for TypedArray<T>
Source§impl TryFrom<Value> for UnloadEvent
impl TryFrom<Value> for UnloadEvent
Source§impl TryFrom<Value> for XhrSetResponseTypeError
impl TryFrom<Value> for XhrSetResponseTypeError
Source§impl TryFrom<Value> for XmlHttpRequest
impl TryFrom<Value> for XmlHttpRequest
impl JsSerialize for Value
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnwindSafe for Value
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