mycelium_kernel::arch::mm::page

Trait Size

Source
pub trait Size:
    Copy
    + Eq
    + PartialEq
    + Display {
    // Required method
    fn as_usize(&self) -> usize;
}

Required Methods§

Source

fn as_usize(&self) -> usize

Returns the size (in bytes) of this page.

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.

Implementors§

Source§

impl Size for AnySize

Source§

impl<S> Size for S
where S: StaticSize,