[][src]Struct arf_strings::WasiString

pub struct WasiString<'str>(_);

A utility for converting from outside-world POSIX-oriented strings, such as command-line arguments and environment variables, into UTF-8 strings, using the ARF encoding technique to handle unencodable byte sequences.

Implementations

impl<'str> WasiString<'str>[src]

pub fn from_maybe_nonutf8_cstr(cstr: &'str CStr) -> Self[src]

Construct a WasiString with data copied from the given &CStr, using ARF encoding as needed to ensure that the result is valid UTF-8.

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

Return a reference to the valid UTF-8 contents.

Auto Trait Implementations

impl<'str> RefUnwindSafe for WasiString<'str>

impl<'str> Send for WasiString<'str>

impl<'str> Sync for WasiString<'str>

impl<'str> Unpin for WasiString<'str>

impl<'str> UnwindSafe for WasiString<'str>

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.