winnow::stream

Trait 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 SliceLen for &str

source§

impl SliceLen for char

source§

impl SliceLen for u8

source§

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

source§

impl<T> SliceLen for &[T]

source§

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

source§

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

Implementors§

source§

impl SliceLen for &BStr

source§

impl SliceLen for &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,

source§

impl<S: SliceLen> SliceLen for Caseless<S>