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 AsBStr for &str

source§

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

source§

impl AsBStr for &[u8]

source§

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

Implementors§

source§

impl AsBStr for &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,