Trait dryoc::types::Bytes[][src]

pub trait Bytes {
    fn as_slice(&self) -> &[u8];
fn len(&self) -> usize;
fn is_empty(&self) -> bool; }
Expand description

Arbitrary-length array of bytes.

Required methods

Returns a slice of the underlying bytes.

Shorthand to retrieve the underlying length of the byte array.

Returns true if the array is empty.

Implementations on Foreign Types

Implementors