Struct collections::str::Utf8Error [] [src]

pub struct Utf8Error {
    // some fields omitted
}

Errors which can occur when attempting to interpret a byte slice as a str.

Methods

impl Utf8Error

fn valid_up_to(&self) -> usize

Unstable

: method just added

Returns the index in the given string up to which valid UTF-8 was verified.

Starting at the index provided, but not necessarily at it precisely, an invalid UTF-8 encoding sequence was found.

Trait Implementations

impl Display for Utf8Error

fn fmt(&self, f: &mut Formatter) -> Result<(), Error>

Derived Implementations

impl Debug for Utf8Error

fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>

impl Clone for Utf8Error

fn clone(&self) -> Utf8Error

fn clone_from(&mut self, source: &Self)

impl PartialEq<Utf8Error> for Utf8Error

fn eq(&self, __arg_0: &Utf8Error) -> bool

fn ne(&self, __arg_0: &Utf8Error) -> bool

impl Eq for Utf8Error

impl Copy for Utf8Error