winnow::stream

Trait AsBytes

Source
pub trait AsBytes {
    // Required method
    fn as_bytes(&self) -> &[u8] ;
}
Expand description

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

Required Methods§

Source

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

Casts the input type to a byte slice

Implementations on Foreign Types§

Source§

impl<'a> AsBytes for &'a [u8]

Source§

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

Implementors§

Source§

impl<'a> AsBytes for &'a Bytes

Source§

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

Source§

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

Source§

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