pub enum ScriptValue {
Show 45 variants
Undefined,
Null,
Boolean(bool),
Number(f64),
String(String),
Object(ObjectHandle),
Array(ArrayHandle),
Map(MapHandle),
Symbol(SymbolValue),
RegExp(RegExpValue),
Element(ElementHandle),
Attribute(AttributeHandle),
ClassList(ElementHandle),
Dataset(ElementHandle),
TemplateContent(ElementHandle),
NamedNodeMap(ElementHandle),
HtmlCollection(HtmlCollectionTarget),
StyleSheetList(StyleSheetListTarget),
Storage(StorageTarget),
MediaQueryList(MediaQueryListState),
StringList(StringListState),
MimeTypeArray(MimeTypeArrayState),
Navigator,
Clipboard,
History,
Screen,
ScreenOrientation(ScreenOrientationState),
StyleSheet(StyleSheetTarget),
Node(NodeHandle),
NodeList(NodeListTarget),
RadioNodeList(RadioNodeListTarget),
CollectionEntry(CollectionEntryHandle),
CollectionIterator(CollectionIteratorHandle),
IteratorResult(Box<IteratorResult>),
Date(DateValue),
IntlNumberFormat(IntlNumberFormatValue),
IntlDateTimeFormat(IntlDateTimeFormatValue),
IntlCollator(IntlCollatorValue),
Document,
Window,
ObjectNamespace,
ArrayNamespace,
IntlNamespace,
Event(ScriptEventHandle),
Function(ScriptFunction),
}Variants§
Undefined
Null
Boolean(bool)
Number(f64)
String(String)
Object(ObjectHandle)
Array(ArrayHandle)
Map(MapHandle)
Symbol(SymbolValue)
RegExp(RegExpValue)
Element(ElementHandle)
Attribute(AttributeHandle)
ClassList(ElementHandle)
Dataset(ElementHandle)
TemplateContent(ElementHandle)
NamedNodeMap(ElementHandle)
HtmlCollection(HtmlCollectionTarget)
StyleSheetList(StyleSheetListTarget)
Storage(StorageTarget)
MediaQueryList(MediaQueryListState)
StringList(StringListState)
MimeTypeArray(MimeTypeArrayState)
Clipboard
History
Screen
ScreenOrientation(ScreenOrientationState)
StyleSheet(StyleSheetTarget)
Node(NodeHandle)
NodeList(NodeListTarget)
RadioNodeList(RadioNodeListTarget)
CollectionEntry(CollectionEntryHandle)
CollectionIterator(CollectionIteratorHandle)
IteratorResult(Box<IteratorResult>)
Date(DateValue)
IntlNumberFormat(IntlNumberFormatValue)
IntlDateTimeFormat(IntlDateTimeFormatValue)
IntlCollator(IntlCollatorValue)
Document
Window
ObjectNamespace
ArrayNamespace
IntlNamespace
Event(ScriptEventHandle)
Function(ScriptFunction)
Trait Implementations§
Source§impl Clone for ScriptValue
impl Clone for ScriptValue
Source§fn clone(&self) -> ScriptValue
fn clone(&self) -> ScriptValue
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScriptValue
impl Debug for ScriptValue
Source§impl PartialEq for ScriptValue
impl PartialEq for ScriptValue
impl StructuralPartialEq for ScriptValue
Auto Trait Implementations§
impl Freeze for ScriptValue
impl !RefUnwindSafe for ScriptValue
impl !Send for ScriptValue
impl !Sync for ScriptValue
impl Unpin for ScriptValue
impl UnsafeUnpin for ScriptValue
impl !UnwindSafe for ScriptValue
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