[][src]Struct serde::bytes::Bytes

pub struct Bytes<'a> { /* fields omitted */ }

Bytes wraps a &[u8] in order to serialize into a byte array.

Implementations

impl<'a> Bytes<'a>[src]

pub fn new(bytes: &'a [u8]) -> Self[src]

Wrap an existing &[u8].

Trait Implementations

impl<'a> Clone for Bytes<'a>[src]

impl<'a> Copy for Bytes<'a>[src]

impl<'a> Debug for Bytes<'a>[src]

impl<'a> Deref for Bytes<'a>[src]

type Target = [u8]

The resulting type after dereferencing.

impl<'a> Eq for Bytes<'a>[src]

impl<'a> From<&'a [u8]> for Bytes<'a>[src]

impl<'a> From<&'a Vec<u8>> for Bytes<'a>[src]

impl<'a> Hash for Bytes<'a>[src]

impl<'a> Into<&'a [u8]> for Bytes<'a>[src]

impl<'a> Ord for Bytes<'a>[src]

impl<'a> PartialEq<Bytes<'a>> for Bytes<'a>[src]

impl<'a> PartialOrd<Bytes<'a>> for Bytes<'a>[src]

impl<'a> Serialize for Bytes<'a>[src]

impl<'a> StructuralEq for Bytes<'a>[src]

impl<'a> StructuralPartialEq for Bytes<'a>[src]

impl<'a, E> ValueDeserializer<E> for Bytes<'a> where
    E: Error
[src]

type Deserializer = BytesDeserializer<'a, E>

The actual deserializer type.

Auto Trait Implementations

impl<'a> RefUnwindSafe for Bytes<'a>

impl<'a> Send for Bytes<'a>

impl<'a> Sync for Bytes<'a>

impl<'a> Unpin for Bytes<'a>

impl<'a> UnwindSafe for Bytes<'a>

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.