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 char

Source§

impl SliceLen for u8

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,

Source§

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