[−][src]Struct arf_strings::WasiString
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]
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,
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.
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>,