Trait AsBytesRef

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

Simple trait to transform various types to &[u8]

Required Methods§

Source

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

Transform self into &[u8].

Implementations on Foreign Types§

Source§

impl AsBytesRef for &[u8]

Source§

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

Source§

impl AsBytesRef for Vec<u8>

Source§

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

Source§

impl AsBytesRef for StorageKey

Source§

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

Source§

impl AsBytesRef for [u8; 1]

Source§

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

Source§

impl AsBytesRef for [u8; 2]

Source§

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

Source§

impl AsBytesRef for [u8; 3]

Source§

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

Source§

impl AsBytesRef for [u8; 4]

Source§

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

Source§

impl AsBytesRef for [u8; 5]

Source§

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

Source§

impl AsBytesRef for [u8; 6]

Source§

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

Source§

impl AsBytesRef for [u8; 7]

Source§

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

Source§

impl AsBytesRef for [u8; 8]

Source§

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

Source§

impl AsBytesRef for [u8; 10]

Source§

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

Source§

impl AsBytesRef for [u8; 12]

Source§

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

Source§

impl AsBytesRef for [u8; 14]

Source§

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

Source§

impl AsBytesRef for [u8; 16]

Source§

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

Source§

impl AsBytesRef for [u8; 20]

Source§

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

Source§

impl AsBytesRef for [u8; 24]

Source§

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

Source§

impl AsBytesRef for [u8; 28]

Source§

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

Source§

impl AsBytesRef for [u8; 32]

Source§

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

Source§

impl AsBytesRef for [u8; 40]

Source§

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

Source§

impl AsBytesRef for [u8; 48]

Source§

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

Source§

impl AsBytesRef for [u8; 56]

Source§

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

Source§

impl AsBytesRef for [u8; 64]

Source§

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

Source§

impl AsBytesRef for [u8; 65]

Source§

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

Source§

impl AsBytesRef for [u8; 80]

Source§

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

Source§

impl AsBytesRef for [u8; 96]

Source§

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

Source§

impl AsBytesRef for [u8; 112]

Source§

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

Source§

impl AsBytesRef for [u8; 128]

Source§

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

Source§

impl AsBytesRef for [u8; 144]

Source§

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

Source§

impl AsBytesRef for [u8; 177]

Source§

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

Source§

impl AsBytesRef for [u8]

Source§

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

Implementors§