Trait InitSpace

Source
pub trait InitSpace {
    const INIT_SPACE: usize;
}
Expand description

Alias of Space.

Required Associated Constants§

Source

const INIT_SPACE: usize

Init Space.

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.

Implementations on Foreign Types§

Source§

impl InitSpace for bool

Source§

const INIT_SPACE: usize = 1usize

Source§

impl InitSpace for i64

Source§

const INIT_SPACE: usize = 8usize

Source§

impl InitSpace for i128

Source§

const INIT_SPACE: usize = 16usize

Source§

impl InitSpace for u8

Source§

const INIT_SPACE: usize = 1usize

Source§

impl InitSpace for u64

Source§

const INIT_SPACE: usize = 8usize

Source§

impl InitSpace for u128

Source§

const INIT_SPACE: usize = 16usize

Source§

impl InitSpace for Pubkey

Source§

const INIT_SPACE: usize = 32usize

Source§

impl<T> InitSpace for Option<T>
where T: InitSpace,

Source§

impl<T, const LEN: usize> InitSpace for [T; LEN]
where T: InitSpace,

Implementors§