Skip to main content

ConstantBlockSize

Trait ConstantBlockSize 

Source
pub trait ConstantBlockSize: BlockSize {
    const BLOCK_SIZE: Self;
    const BYTES: usize;
}

Required Associated Constants§

Source

const BLOCK_SIZE: Self

Source

const BYTES: usize

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl ConstantBlockSize for BlockSize512

Source§

const BLOCK_SIZE: Self = BlockSize512

Source§

const BYTES: usize = 512

Source§

impl ConstantBlockSize for BlockSize1024

Source§

const BLOCK_SIZE: Self = BlockSize1024

Source§

const BYTES: usize = 1024

Source§

impl ConstantBlockSize for BlockSize2048

Source§

const BLOCK_SIZE: Self = BlockSize2048

Source§

const BYTES: usize = 2048

Source§

impl ConstantBlockSize for BlockSize4096

Source§

const BLOCK_SIZE: Self = BlockSize4096

Source§

const BYTES: usize = 4096

Source§

impl ConstantBlockSize for BlockSize8192

Source§

const BLOCK_SIZE: Self = BlockSize8192

Source§

const BYTES: usize = 8192