Struct nachricht::Encoder [−][src]
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]
field: &Field<'_>,
writer: &'w mut W
) -> Result<usize, EncodeError>
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]
W: RefUnwindSafe,
impl<'w, W> Send for Encoder<'w, W> where
W: Send,
[src]
W: Send,
impl<'w, W> Sync for Encoder<'w, W> where
W: Sync,
[src]
W: Sync,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,