Struct rquickjs_core::String
source · #[repr(transparent)]pub struct String<'js>(_);
Expand description
Rust representation of a javascript string.
Implementations§
Methods from Deref<Target = Value<'js>>§
pub fn is_null(&self) -> bool
pub fn is_undefined(&self) -> bool
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
sourcepub unsafe fn ref_big_int(&self) -> &BigInt<'js>
pub unsafe fn ref_big_int(&self) -> &BigInt<'js>
sourcepub fn as_big_int(&self) -> Option<&BigInt<'js>>
pub fn as_big_int(&self) -> Option<&BigInt<'js>>
Try reinterprete as
Trait Implementations§
source§impl<'js> PartialEq<String<'js>> for String<'js>
impl<'js> PartialEq<String<'js>> for String<'js>
impl<'js> StructuralPartialEq for String<'js>
Auto Trait Implementations§
impl<'js> RefUnwindSafe for String<'js>
impl<'js> !Send for String<'js>
impl<'js> !Sync for String<'js>
impl<'js> Unpin for String<'js>
impl<'js> !UnwindSafe for String<'js>
Blanket Implementations§
source§impl<'js, T> AsProperty<'js, T> for Twhere
T: IntoJs<'js>,
impl<'js, T> AsProperty<'js, T> for Twhere T: IntoJs<'js>,
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