AsBytesRef

Trait AsBytesRef 

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

Converts to &'a [u8]

Required Methods§

Source

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

Converts to a u8 slice

Implementations on Foreign Types§

Source§

impl AsBytesRef for Box<[u8]>

Available on crate feature alloc only.
Source§

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

Source§

impl AsBytesRef for String

Source§

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

Source§

impl AsBytesRef for Vec<u8>

Available on crate feature alloc only.
Source§

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

Source§

impl AsBytesRef for Bytes

Available on crate feature bytes only.
Source§

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

Source§

impl AsBytesRef for BytesMut

Available on crate feature bytes only.
Source§

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

Source§

impl<'a> AsBytesRef for &'a str

Source§

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

Source§

impl<'a> AsBytesRef for &'a Box<[u8]>

Available on crate feature alloc only.
Source§

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

Source§

impl<'a> AsBytesRef for &'a String

Source§

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

Source§

impl<'a> AsBytesRef for &'a Vec<u8>

Available on crate feature alloc only.
Source§

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

Source§

impl<'a> AsBytesRef for &'a Bytes

Available on crate feature bytes only.
Source§

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

Source§

impl<'a> AsBytesRef for &'a BytesMut

Available on crate feature bytes only.
Source§

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

Source§

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

Source§

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

Source§

impl<'a> AsBytesRef for &'a mut str

Source§

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

Source§

impl<'a> AsBytesRef for &'a mut Box<[u8]>

Available on crate feature alloc only.
Source§

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

Source§

impl<'a> AsBytesRef for &'a mut String

Source§

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

Source§

impl<'a> AsBytesRef for &'a mut Vec<u8>

Available on crate feature alloc only.
Source§

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

Source§

impl<'a> AsBytesRef for &'a mut BytesMut

Available on crate feature bytes only.
Source§

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

Source§

impl<'a> AsBytesRef for &'a mut [u8]

Source§

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

Source§

impl<const N: usize> AsBytesRef for [u8; N]

Source§

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

Implementors§