nom8::input

Trait InputLength

Source
pub trait InputLength {
    // Required method
    fn input_len(&self) -> usize;
}
Expand description

Abstract method to calculate the input length

Required Methods§

Source

fn input_len(&self) -> usize

Calculates the input length, as indicated by its name, and the name of the trait itself

Implementations on Foreign Types§

Source§

impl<'a> InputLength for &'a str

Source§

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

Source§

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

Source§

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

Source§

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

Implementors§

Source§

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

Source§

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

Source§

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