Trait IdSize

Source
pub trait IdSize {
    // Required method
    fn size() -> usize;
}
Expand description

Trait evaluates the size of an id.

Required Methods§

Source

fn size() -> usize

Returns the number of bytes needed to store the id.

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§