Trait cbor4ii::core::enc::Write

source ·
pub trait Write {
    type Error: Error + 'static;

    // Required method
    fn push(&mut self, input: &[u8]) -> Result<(), Self::Error>;
}
Expand description

Write trait

This is similar to Write of standard library, but it can define its own error type and work in no_std.

Required Associated Types§

source

type Error: Error + 'static

Required Methods§

source

fn push(&mut self, input: &[u8]) -> Result<(), Self::Error>

write all data

Implementations on Foreign Types§

source§

impl<'a, T: Write> Write for &'a mut T

§

type Error = <T as Write>::Error

source§

fn push(&mut self, input: &[u8]) -> Result<(), Self::Error>

Implementors§