Skip to main content

BoundedBlock

Trait BoundedBlock 

Source
pub trait BoundedBlock: Block + Read {
    // Required method
    fn max_encode_size(cfg: &Self::Cfg) -> usize;
}
Expand description

A block that bounds its encoded size under a codec configuration.

Required Methods§

Source

fn max_encode_size(cfg: &Self::Cfg) -> usize

Returns an upper bound on the encoded size of any block Read::read_cfg admits under cfg, using each encoded type’s maximum width.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§