align_of_val in std::intrinsics - Rust
Description: The required alignment of the referenced value.

## align_of_val

# Function align_of_val

Source

    pub const unsafe fn align_of_val<T>(ptr: *const T) -> usizewhere
        T: ?Sized,

🔬This is a nightly-only experimental API. (`core_intrinsics`)
Expand description

The required alignment of the referenced value.

The stabilized version of this intrinsic is `core::mem::align_of_val`.

## §Safety

See `crate::mem::align_of_val_raw` for safety conditions.