referrerpolicy=no-referrer-when-downgrade

Trait bp_runtime::Size

source ·
pub trait Size {
    // Required method
    fn size(&self) -> u32;
}
Expand description

Anything that has size.

Required Methods§

source

fn size(&self) -> u32

Return size of this object (in bytes).

Implementations on Foreign Types§

source§

impl Size for ()

source§

fn size(&self) -> u32

source§

impl Size for Vec<u8>

source§

fn size(&self) -> u32

Implementors§