pub trait Aligned {
// Required methods
fn alignment_size() -> usize;
fn offset(&self, count: isize) -> &Self;
}
Expand description
Common trait for AlignedBytes
for all different alignments.
Required Methods§
Sourcefn alignment_size() -> usize
fn alignment_size() -> usize
Return the size of the alignment in bytes.
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.