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§
sourcefn as_bytes_ref(&self) -> &[u8] ⓘ
fn as_bytes_ref(&self) -> &[u8] ⓘ
Transform self into &[u8].