Trait aligned_vec::Alignment
source · [−]pub trait Alignment: Copy + Seal {
fn new(align: usize, minimum_align: usize) -> Self;
fn alignment(self, minimum_align: usize) -> usize;
}
Expand description
Trait for types that wrap an alignment value.
Required Methods
Takes an alignment value and a minimum valid alignment,
and returns an alignment wrapper that contains a power of two alignment that is greater
than minimum_align
, and if possible, greater than align
.