Skip to main content

ByteBuffer

Trait ByteBuffer 

Source
pub trait ByteBuffer {
    // Required methods
    fn as_byte_ptr(&self) -> *const u8;
    fn byte_len(&self) -> usize;

    // Provided method
    fn is_empty(&self) -> bool { ... }
}
Expand description

Shared abstraction for read-only byte buffers.

Required Methods§

Provided Methods§

Source

fn is_empty(&self) -> bool

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<B> ByteBuffer for B
where B: DeviceSlice<u8> + ?Sized,