Enum boa::property::PropertyKey
source · [−]Expand description
This abstracts away the need for IsPropertyKey by transforming the PropertyKey values into an enum with both valid types: String and Symbol
More information:
Variants
String(JsString)
Symbol(JsSymbol)
Index(u32)
Trait Implementations
sourceimpl Clone for PropertyKey
impl Clone for PropertyKey
sourcefn clone(&self) -> PropertyKey
fn clone(&self) -> PropertyKey
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for PropertyKey
impl Debug for PropertyKey
sourceimpl Display for PropertyKey
impl Display for PropertyKey
sourceimpl Drop for PropertyKey
impl Drop for PropertyKey
sourceimpl Finalize for PropertyKey
impl Finalize for PropertyKey
sourceimpl From<&PropertyKey> for JsValue
impl From<&PropertyKey> for JsValue
sourcefn from(property_key: &PropertyKey) -> JsValue
fn from(property_key: &PropertyKey) -> JsValue
Converts to this type from the input type.
sourceimpl From<&str> for PropertyKey
impl From<&str> for PropertyKey
sourcefn from(string: &str) -> PropertyKey
fn from(string: &str) -> PropertyKey
Converts to this type from the input type.
sourceimpl From<Box<str, Global>> for PropertyKey
impl From<Box<str, Global>> for PropertyKey
sourcefn from(string: Box<str>) -> PropertyKey
fn from(string: Box<str>) -> PropertyKey
Converts to this type from the input type.
sourceimpl From<JsString> for PropertyKey
impl From<JsString> for PropertyKey
sourcefn from(string: JsString) -> PropertyKey
fn from(string: JsString) -> PropertyKey
Converts to this type from the input type.
sourceimpl From<JsSymbol> for PropertyKey
impl From<JsSymbol> for PropertyKey
sourcefn from(symbol: JsSymbol) -> PropertyKey
fn from(symbol: JsSymbol) -> PropertyKey
Converts to this type from the input type.
sourceimpl From<PropertyKey> for JsValue
impl From<PropertyKey> for JsValue
sourcefn from(property_key: PropertyKey) -> JsValue
fn from(property_key: PropertyKey) -> JsValue
Converts to this type from the input type.
sourceimpl From<String> for PropertyKey
impl From<String> for PropertyKey
sourcefn from(string: String) -> PropertyKey
fn from(string: String) -> PropertyKey
Converts to this type from the input type.
sourceimpl From<f64> for PropertyKey
impl From<f64> for PropertyKey
sourceimpl From<i32> for PropertyKey
impl From<i32> for PropertyKey
sourceimpl From<i64> for PropertyKey
impl From<i64> for PropertyKey
sourceimpl From<isize> for PropertyKey
impl From<isize> for PropertyKey
sourceimpl From<u16> for PropertyKey
impl From<u16> for PropertyKey
sourceimpl From<u32> for PropertyKey
impl From<u32> for PropertyKey
sourceimpl From<u64> for PropertyKey
impl From<u64> for PropertyKey
sourceimpl From<u8> for PropertyKey
impl From<u8> for PropertyKey
sourceimpl From<usize> for PropertyKey
impl From<usize> for PropertyKey
sourceimpl PartialEq<PropertyKey> for PropertyKey
impl PartialEq<PropertyKey> for PropertyKey
sourcefn eq(&self, other: &PropertyKey) -> bool
fn eq(&self, other: &PropertyKey) -> bool
sourceimpl Trace for PropertyKey
impl Trace for PropertyKey
sourcefn finalize_glue(&self)
fn finalize_glue(&self)
Runs Finalize::finalize() on this object and all
contained subobjects Read more
impl StructuralPartialEq for PropertyKey
Auto Trait Implementations
impl !RefUnwindSafe for PropertyKey
impl !Send for PropertyKey
impl !Sync for PropertyKey
impl Unpin for PropertyKey
impl !UnwindSafe for PropertyKey
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more