Struct rquickjs_core::Symbol
source · [−]#[repr(transparent)]pub struct Symbol<'js>(_);
Expand description
Rust representation of a javascript symbol.
Implementations
Methods from Deref<Target = Value<'js>>
sourcepub fn is_function(&self) -> bool
pub fn is_function(&self) -> bool
Check if the value is a function
sourcepub unsafe fn ref_string(&self) -> &String<'js>
pub unsafe fn ref_string(&self) -> &String<'js>
sourcepub unsafe fn ref_symbol(&self) -> &Symbol<'js>
pub unsafe fn ref_symbol(&self) -> &Symbol<'js>
sourcepub unsafe fn ref_object(&self) -> &Object<'js>
pub unsafe fn ref_object(&self) -> &Object<'js>
sourcepub unsafe fn ref_function(&self) -> &Function<'js>
pub unsafe fn ref_function(&self) -> &Function<'js>
sourcepub fn as_function(&self) -> Option<&Function<'js>>
pub fn as_function(&self) -> Option<&Function<'js>>
Try reinterprete as
Trait Implementations
sourceimpl<'js> PartialEq<Symbol<'js>> for Symbol<'js>
impl<'js> PartialEq<Symbol<'js>> for Symbol<'js>
impl<'js> StructuralPartialEq for Symbol<'js>
Auto Trait Implementations
impl<'js> !RefUnwindSafe for Symbol<'js>
impl<'js> !Send for Symbol<'js>
impl<'js> !Sync for Symbol<'js>
impl<'js> Unpin for Symbol<'js>
impl<'js> UnwindSafe for Symbol<'js>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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