Trait gclient::ext::sp_core::hexdisplay::AsBytesRef

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

Simple trait to transform various types to &[u8]

Required Methods§

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

Transform self into &[u8].

Implementations on Foreign Types§

§

impl AsBytesRef for &[u8]

§

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

§

impl AsBytesRef for [u8; 1]

§

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

§

impl AsBytesRef for [u8; 2]

§

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

§

impl AsBytesRef for [u8; 3]

§

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

§

impl AsBytesRef for [u8; 4]

§

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

§

impl AsBytesRef for [u8; 5]

§

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

§

impl AsBytesRef for [u8; 6]

§

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

§

impl AsBytesRef for [u8; 7]

§

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

§

impl AsBytesRef for [u8; 8]

§

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

§

impl AsBytesRef for [u8; 10]

§

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

§

impl AsBytesRef for [u8; 12]

§

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

§

impl AsBytesRef for [u8; 14]

§

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

§

impl AsBytesRef for [u8; 16]

§

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

§

impl AsBytesRef for [u8; 20]

§

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

§

impl AsBytesRef for [u8; 24]

§

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

§

impl AsBytesRef for [u8; 28]

§

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

§

impl AsBytesRef for [u8; 32]

§

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

§

impl AsBytesRef for [u8; 40]

§

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

§

impl AsBytesRef for [u8; 48]

§

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

§

impl AsBytesRef for [u8; 56]

§

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

§

impl AsBytesRef for [u8; 64]

§

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

§

impl AsBytesRef for [u8; 65]

§

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

§

impl AsBytesRef for [u8; 80]

§

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

§

impl AsBytesRef for [u8; 96]

§

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

§

impl AsBytesRef for [u8; 112]

§

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

§

impl AsBytesRef for [u8; 128]

§

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

§

impl AsBytesRef for [u8; 144]

§

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

§

impl AsBytesRef for [u8; 177]

§

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

§

impl AsBytesRef for [u8]

§

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

Implementors§