Trait spl_token_2022::state::PackedSizeOf

source ·
pub trait PackedSizeOf {
    const SIZE_OF: usize;
}
Expand description

Simplified version of the Pack trait which only gives the size of the packed struct. Useful when a function doesn’t need a type to implement all of Pack, but a size is still needed.

Required Associated Constants§

source

const SIZE_OF: usize

The packed size of the struct

Object Safety§

This trait is not object safe.

Implementors§