Trait sp_core::hexdisplay::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]

source§

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

Implementors§