Struct napi::JsStringLatin1
source · [−]pub struct JsStringLatin1 { /* private fields */ }
Implementations
sourceimpl JsStringLatin1
impl JsStringLatin1
pub fn as_slice(&self) -> &[u8]ⓘNotable traits for &[u8]impl Read for &[u8]impl Write for &mut [u8]
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn take(self) -> Vec<u8>
pub fn into_value(self) -> JsString
pub fn into_latin1_string(self) -> Result<String>
Trait Implementations
sourceimpl From<JsStringLatin1> for Vec<u8>
impl From<JsStringLatin1> for Vec<u8>
sourcefn from(value: JsStringLatin1) -> Self
fn from(value: JsStringLatin1) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for JsStringLatin1
impl !Send for JsStringLatin1
impl !Sync for JsStringLatin1
impl Unpin for JsStringLatin1
impl UnwindSafe for JsStringLatin1
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