devela::_dep::winnow::stream

Trait SliceLen

pub trait SliceLen {
    // Required method
    fn slice_len(&self) -> usize ;
}
Available on crate feature dep_winnow only.
Expand description

Abstract method to calculate the input length

Required Methods§

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§

§

impl SliceLen for &str

§

fn slice_len(&self) -> usize

§

impl SliceLen for char

§

fn slice_len(&self) -> usize

§

impl SliceLen for u8

§

fn slice_len(&self) -> usize

§

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

§

fn slice_len(&self) -> usize

§

impl<T> SliceLen for &[T]

§

fn slice_len(&self) -> usize

§

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

§

fn slice_len(&self) -> usize

§

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

§

fn slice_len(&self) -> usize

Implementors§

§

impl SliceLen for &BStr

§

impl SliceLen for &Bytes

§

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

§

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

§

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

§

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