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.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Size for AnySize

source§

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