Trait VerifyAlignment

Source
pub trait VerifyAlignment<const N: usize>: Pointer {
    const VALID: bool = _;
    const SUFFICIENT: bool = _;
}
Expand description

Verify Pointer alignment validity and magnitude.

Provided Associated Constants§

Source

const VALID: bool = _

Source

const SUFFICIENT: 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.

Implementors§

Source§

impl<T: Pointer, const N: usize> VerifyAlignment<N> for T