Struct wasmtime_wiggle::bitflags::_core::str::lossy::Utf8Lossy[][src]

pub struct Utf8Lossy { /* fields omitted */ }
🔬 This is a nightly-only experimental API. (str_internals)
Expand description

Lossy UTF-8 string.

Implementations

impl Utf8Lossy[src]

pub fn from_str(s: &str) -> &Utf8Lossy[src]

🔬 This is a nightly-only experimental API. (str_internals)

pub fn from_bytes(bytes: &[u8]) -> &Utf8Lossy[src]

🔬 This is a nightly-only experimental API. (str_internals)

pub fn chunks(&self) -> Utf8LossyChunksIter<'_>

Notable traits for Utf8LossyChunksIter<'a>

impl<'a> Iterator for Utf8LossyChunksIter<'a> type Item = Utf8LossyChunk<'a>;
[src]

🔬 This is a nightly-only experimental API. (str_internals)

Trait Implementations

impl Debug for Utf8Lossy[src]

pub fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>[src]

Formats the value using the given formatter. Read more

impl Display for Utf8Lossy[src]

pub fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> ToString for T where
    T: Display + ?Sized
[src]

pub default fn to_string(&self) -> String[src]

Converts the given value to a String. Read more