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, E> AsBStr for Recoverable<I, E>
where I: Stream + AsBStr,

Available on crate features unstable-recover and std only.
source§

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