[][src]Trait swim_codec::output::Output

pub trait Output {
    type Token;
    type Out;
    type Err;
    fn is_full(&self) -> bool;
fn push(&mut self, token: Self::Token);
fn take_out(self) -> Result<Self::Out, Self::Err>; }

Associated Types

type Token

type Out

type Err

Loading content...

Required methods

fn is_full(&self) -> bool

fn push(&mut self, token: Self::Token)

fn take_out(self) -> Result<Self::Out, Self::Err>

Loading content...

Implementors

impl<'a> Output for StrOutput<'a>[src]

type Token = char

type Out = &'a str

type Err = ()

impl<'a, T: 'a> Output for SliceOutput<'a, T>[src]

type Token = T

type Out = &'a mut [T]

type Err = ()

impl<O: Output<Token = u8>> Output for Utf8Output<O>[src]

type Token = char

type Out = O::Out

type Err = O::Err

Loading content...