devela::_dep::winnow::stream

Trait AsBytes

pub trait AsBytes {
    // Required method
    fn as_bytes(&self) -> &[u8] ;
}
Available on crate feature dep_winnow only.
Expand description

Helper trait for types that can be viewed as a byte slice

Required Methods§

fn as_bytes(&self) -> &[u8]

Casts the input type to a byte slice

Implementations on Foreign Types§

§

impl AsBytes for &[u8]

§

fn as_bytes(&self) -> &[u8]

Implementors§

§

impl AsBytes for &Bytes

§

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

§

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

§

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