[][src]Trait swim_codec::input::AsInput

pub trait AsInput {
    type Token;
    type AsIn: Input<Token = Self::Token>;
    fn as_input(self) -> Self::AsIn;
}

Associated Types

type Token

type AsIn: Input<Token = Self::Token>

Loading content...

Required methods

fn as_input(self) -> Self::AsIn

Loading content...

Implementors

impl<'a> AsInput for &'a str[src]

type Token = char

type AsIn = StrInput<'a>

impl<'a, T: 'a + Clone> AsInput for &'a [T][src]

type Token = T

type AsIn = SliceInput<'a, T>

impl<I> AsInput for I where
    I: Input
[src]

type Token = I::Token

type AsIn = I

Loading content...