[][src]Struct napi::JsString

pub struct JsString(_);

Implementations

impl JsString[src]

pub fn len(&self) -> Result<usize>[src]

impl JsString[src]

pub fn get_ref(&self) -> Result<&[u8]>[src]

pub fn as_str(&self) -> Result<&str>[src]

pub fn get_ref_mut(&mut self) -> Result<&mut [u8]>[src]

impl JsString[src]

impl JsString[src]

pub fn from_raw_unchecked(env: napi_env, value: napi_value) -> Self[src]

Trait Implementations

impl Debug for JsString[src]

impl NapiValue for JsString[src]

impl TryFrom<JsString> for Vec<u16>[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<JsString> for String[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for JsString

impl !Send for JsString

impl !Sync for JsString

impl Unpin for JsString

impl UnwindSafe for JsString

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.