Trait Delimited

Source
pub trait Delimited:
    Storable
    + MaxEncodedLen
    + DecodeWithMemTracking { }
Expand description

Strictly size-bounded and lifetime-independent runtime type for persistence.

Combines Storable and [MaxEncodedLen] to ensure values are fully owned and have a predictable maximum encoded footprint, enabling safe storage, decoding, and metadata generation.

Prefer this only when all fields are strictly bounded; otherwise use Elastic.

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§

Source§

impl<T> Delimited for T
where T: Storable + MaxEncodedLen + DecodeWithMemTracking,