Trait nom8::input::IntoOutput

source ·
pub trait IntoOutput {
    type Output;

    // Required methods
    fn into_output(self) -> Self::Output;
    fn merge_output(self, inner: Self::Output) -> Self;
}
Expand description

Convert an Input into an appropriate Output type

Required Associated Types§

source

type Output

Output type

Required Methods§

source

fn into_output(self) -> Self::Output

Convert an Input into an appropriate Output type

source

fn merge_output(self, inner: Self::Output) -> Self

Convert an Output type to be used as Input

Implementations on Foreign Types§

source§

impl<'a> IntoOutput for (&'a [u8], usize)

§

type Output = (&'a [u8], usize)

source§

fn into_output(self) -> Self::Output

source§

fn merge_output(self, inner: Self::Output) -> Self

source§

impl<'a> IntoOutput for &'a str

§

type Output = &'a str

source§

fn into_output(self) -> Self::Output

source§

fn merge_output(self, inner: Self::Output) -> Self

source§

impl<'a, T> IntoOutput for &'a [T]

§

type Output = &'a [T]

source§

fn into_output(self) -> Self::Output

source§

fn merge_output(self, inner: Self::Output) -> Self

source§

impl<const LEN: usize> IntoOutput for [u8; LEN]

§

type Output = [u8; LEN]

source§

fn into_output(self) -> Self::Output

source§

fn merge_output(self, inner: Self::Output) -> Self

source§

impl<'a, const LEN: usize> IntoOutput for &'a [u8; LEN]

§

type Output = &'a [u8; LEN]

source§

fn into_output(self) -> Self::Output

source§

fn merge_output(self, inner: Self::Output) -> Self

Implementors§

source§

impl<I> IntoOutput for Located<I>where I: IntoOutput,

§

type Output = <I as IntoOutput>::Output

source§

impl<I> IntoOutput for Streaming<I>where I: IntoOutput,

§

type Output = <I as IntoOutput>::Output

source§

impl<I, S> IntoOutput for Stateful<I, S>where I: IntoOutput,

§

type Output = <I as IntoOutput>::Output