Trait DataBlob

Source
pub trait DataBlob: CrateSerialize + CrateDeserialize {
    // Required method
    fn len(&self) -> usize;
}
Expand description

A trait for generic blobs of data that have size.

Required Methods§

Source

fn len(&self) -> usize

Get the current length of the data blob.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§