winnow::stream

Trait AsBStr

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

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

Required Methods§

Source

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

Casts the input type to a byte slice

Implementations on Foreign Types§

Source§

impl<'a> AsBStr for &'a str

Source§

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

Source§

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

Source§

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

Implementors§

Source§

impl<'a> AsBStr for &'a BStr

Source§

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

Source§

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

Source§

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