Trait uapi::Bytes

source ·
pub trait Bytes {
    // Required method
    fn bytes(&self) -> &[u8] ;
}
Expand description

Trait for objects which can be turned into bytes

This is mostly an internal API.

Required Methods§

source

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

Implementations on Foreign Types§

source§

impl Bytes for str

source§

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

source§

impl Bytes for CStr

source§

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

source§

impl Bytes for OsStr

source§

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

source§

impl Bytes for Path

source§

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

source§

impl Bytes for [u8]

source§

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

source§

impl<'a> Bytes for Cow<'a, Ustr>

source§

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

Implementors§