Trait UsizeExt

Source
pub trait UsizeExt {
    // Required methods
    fn align_up(self, multiple: usize) -> Self;
    fn align_down(self, multiple: usize) -> Self;
}

Required Methods§

Source

fn align_up(self, multiple: usize) -> Self

Source

fn align_down(self, multiple: usize) -> Self

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 UsizeExt for usize

Source§

fn align_up(self, multiple: usize) -> Self

Source§

fn align_down(self, multiple: usize) -> Self

Implementors§