[−][src]Struct napi::JsStringUtf8
Implementations
impl JsStringUtf8[src]
pub fn as_str(&self) -> Result<&str>[src]
pub fn as_slice(&self) -> &[u8][src]
pub fn len(&self) -> usize[src]
pub fn is_empty(&self) -> bool[src]
pub fn into_owned(self) -> Result<String>[src]
pub fn take(self) -> Vec<u8>[src]
pub fn into_value(self) -> JsString[src]
Trait Implementations
impl From<JsStringUtf8> for Vec<u8>[src]
pub fn from(value: JsStringUtf8) -> Self[src]
impl TryFrom<JsStringUtf8> for String[src]
Auto Trait Implementations
impl RefUnwindSafe for JsStringUtf8
impl !Send for JsStringUtf8
impl !Sync for JsStringUtf8
impl Unpin for JsStringUtf8
impl UnwindSafe for JsStringUtf8
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,