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