Trait winnow::stream::SliceLen

source ·
pub trait SliceLen {
    // Required method
    fn slice_len(&self) -> usize;
}
Expand description

Abstract method to calculate the input length

Required Methods§

source

fn slice_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> SliceLen for &'a str

source§

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

source§

impl<'a, T, const LEN: usize> SliceLen for &'a [T; LEN]

source§

impl<I> SliceLen for (I, usize, usize)
where I: SliceLen,

source§

impl<T, const LEN: usize> SliceLen for [T; LEN]

Implementors§

source§

impl<'a> SliceLen for &'a BStr

source§

impl<'a> SliceLen for &'a Bytes

source§

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

source§

impl<I> SliceLen for Partial<I>
where I: SliceLen,

source§

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