pub trait StaticSize: Copy + Eq + PartialEq + Display {
    const SIZE: usize;
    const PRETTY_NAME: &'static str;
    const INSTANCE: Self;
}
Expand description

A statically known page size.

Required Associated Constants§

source

const SIZE: usize

The size (in bytes) of this page.

source

const PRETTY_NAME: &'static str

source

const INSTANCE: Self

Object Safety§

This trait is not object safe.

Implementors§

source§

impl StaticSize for Size1Gb

source§

const SIZE: usize = 1_073_741_824usize

source§

const PRETTY_NAME: &'static str = "1GB"

source§

const INSTANCE: Size1Gb = Size1Gb

source§

impl StaticSize for Size2Mb

source§

const SIZE: usize = 2_097_152usize

source§

const PRETTY_NAME: &'static str = "2MB"

source§

const INSTANCE: Size2Mb = Size2Mb

source§

impl StaticSize for Size4Kb

source§

const SIZE: usize = 4_096usize

source§

const PRETTY_NAME: &'static str = "4KB"

source§

const INSTANCE: Size4Kb = Size4Kb