Struct nachricht::Encoder[][src]

pub struct Encoder<'w, W: Write> { /* fields omitted */ }

Used to encode nachricht fields. This uses an internal symbol table to allow referencing keys and symbols which get repeated.

Implementations

impl<'w, W: Write> Encoder<'w, W>[src]

pub fn encode(
    field: &Field<'_>,
    writer: &'w mut W
) -> Result<usize, EncodeError>
[src]

Encode a field to the given writer. The resulting usize is the amount of bytes that got written.

Auto Trait Implementations

impl<'w, W> RefUnwindSafe for Encoder<'w, W> where
    W: RefUnwindSafe
[src]

impl<'w, W> Send for Encoder<'w, W> where
    W: Send
[src]

impl<'w, W> Sync for Encoder<'w, W> where
    W: Sync
[src]

impl<'w, W> Unpin for Encoder<'w, W>[src]

impl<'w, W> !UnwindSafe for Encoder<'w, W>[src]

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, 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.