#[repr(transparent)]
pub struct String<'js>(_);
Expand description
Rust representation of a javascript string.
Convert the javascript string to a rust string.
Create a new js string from an rust string.
Try get any number from value
Check if the value is a bool
Check if the value is an int
Check if the value is a float
Check if the value is an any number
Check if the value is a string
Check if the value is a symbol
Check if the value is an object
Check if the value is a module
Check if the value is an array
Check if the value is a function
Check if the value is an error
Convert from value to specified type
Interprete as
You should be sure that the value already is of required type before to do it.
Interprete as
You should be sure that the value already is of required type before to do it.
Interprete as
You should be sure that the value already is of required type before to do it.
Interprete as
You should be sure that the value already is of required type before to do it.
Interprete as
You should be sure that the value already is of required type before to do it.
Interprete as
You should be sure that the value already is of required type before to do it.
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
The resulting type after dereferencing.
The target which has the same type as a Self
but with another lifetime 't
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.