Trait SizedData

Source
pub trait SizedData {
    // Required method
    fn size() -> usize;

    // Provided method
    fn size_padded() -> usize { ... }
}

Required Methods§

Provided Methods§

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 SizedData for u8

Source§

impl SizedData for u64

Source§

impl SizedData for Pubkey

Source§

impl SizedData for [u8; 32]

Implementors§