nom

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 AsBytes for str

Source§

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

Source§

impl AsBytes for [u8; 0]

Source§

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

Source§

impl AsBytes for [u8; 1]

Source§

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

Source§

impl AsBytes for [u8; 2]

Source§

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

Source§

impl AsBytes for [u8; 3]

Source§

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

Source§

impl AsBytes for [u8; 4]

Source§

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

Source§

impl AsBytes for [u8; 5]

Source§

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

Source§

impl AsBytes for [u8; 6]

Source§

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

Source§

impl AsBytes for [u8; 7]

Source§

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

Source§

impl AsBytes for [u8; 8]

Source§

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

Source§

impl AsBytes for [u8; 9]

Source§

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

Source§

impl AsBytes for [u8; 10]

Source§

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

Source§

impl AsBytes for [u8; 11]

Source§

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

Source§

impl AsBytes for [u8; 12]

Source§

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

Source§

impl AsBytes for [u8; 13]

Source§

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

Source§

impl AsBytes for [u8; 14]

Source§

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

Source§

impl AsBytes for [u8; 15]

Source§

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

Source§

impl AsBytes for [u8; 16]

Source§

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

Source§

impl AsBytes for [u8; 17]

Source§

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

Source§

impl AsBytes for [u8; 18]

Source§

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

Source§

impl AsBytes for [u8; 19]

Source§

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

Source§

impl AsBytes for [u8; 20]

Source§

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

Source§

impl AsBytes for [u8; 21]

Source§

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

Source§

impl AsBytes for [u8; 22]

Source§

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

Source§

impl AsBytes for [u8; 23]

Source§

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

Source§

impl AsBytes for [u8; 24]

Source§

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

Source§

impl AsBytes for [u8; 25]

Source§

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

Source§

impl AsBytes for [u8; 26]

Source§

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

Source§

impl AsBytes for [u8; 27]

Source§

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

Source§

impl AsBytes for [u8; 28]

Source§

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

Source§

impl AsBytes for [u8; 29]

Source§

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

Source§

impl AsBytes for [u8; 30]

Source§

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

Source§

impl AsBytes for [u8; 31]

Source§

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

Source§

impl AsBytes for [u8; 32]

Source§

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

Source§

impl AsBytes for [u8]

Source§

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

Source§

impl<'a> AsBytes for &'a str

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Implementors§