nom8::input

Trait 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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<'a> IntoOutput for &'a str

Source§

type Output = &'a str

Source§

fn into_output(self) -> Self::Output

Source§

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

Source§

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

Source§

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

Source§

fn into_output(self) -> Self::Output

Source§

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

Source§

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

Source§

type Output = &'a [T]

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]

Source§

type Output = &'a [u8; LEN]

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]

Source§

type Output = [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,

Source§

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

Source§

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