Skip to main content

NumAssertAlign

Trait NumAssertAlign 

Source
pub trait NumAssertAlign: Copy {
    // Required method
    fn is_aligned_to(self, align: usize) -> bool;
}

Required Methods§

Source

fn is_aligned_to(self, align: usize) -> bool

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 NumAssertAlign for u32

Source§

fn is_aligned_to(self, align: usize) -> bool

Source§

impl NumAssertAlign for u64

Source§

fn is_aligned_to(self, align: usize) -> bool

Source§

impl NumAssertAlign for usize

Source§

fn is_aligned_to(self, align: usize) -> bool

Implementors§