core::str::lossy::Utf8Lossy - Rust
Description: API documentation for the Rust `Utf8Lossy` struct in crate `core`.
Keywords: rust, rustlang, rust-lang, Utf8Lossy

# [−][src]Struct core::str::lossy::Utf8Lossy

    pub struct Utf8Lossy { /* fields omitted */ }

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

Lossy UTF-8 string.

## Methods

### `impl Utf8Lossy`[src]

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

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

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

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

####
ⓘImportant traits for Utf8LossyChunksIter<'a>

### Important traits for Utf8LossyChunksIter<'a>

`impl<'a> Iterator for Utf8LossyChunksIter<'a> type Item = Utf8LossyChunk<'a>;`
`pub fn chunks(&self) -> Utf8LossyChunksIter`[src]

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

## Trait Implementations

### `impl Debug for Utf8Lossy`[src]

#### `fn fmt(&self, f: &mut Formatter) -> Result`[src]

Formats the value using the given formatter. Read more

### `impl Display for Utf8Lossy`[src]

#### `fn fmt(&self, f: &mut Formatter) -> Result`[src]

Formats the value using the given formatter. Read more

## Auto Trait Implementations

### `impl Send for Utf8Lossy`

### `impl Sync for Utf8Lossy`

### `impl Unpin for Utf8Lossy`

## Blanket Implementations

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

#### `fn borrow(&Self) -> &T`[src]

Immutably borrows from an owned value. Read more

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

#### `fn borrow_mut(&mut Self) -> &mut T`[src]

Mutably borrows from an owned value. Read more

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

#### `fn type_id(&Self) -> TypeId`[src]

Gets the `TypeId` of `self`. Read more