Trait nom8::input::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 [u8], usize)

source§

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

source§

impl<'a> InputLength for &'a str

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,