Alignment of a type in bytes (always a power of two).
pub fn max_for_offset(offset: Size) -> Align[src]
Computes the best alignment possible for the given offset (the largest power of two that the offset is a multiple of).
N.B., for an offset of
0, this happens to return
pub fn restrict_for_offset(self, offset: Size) -> Align[src]
Lower the alignment, if necessary, such that the given offset is aligned to it (the offset is a multiple of the alignment).
pub fn hash_slice<H>(data: &[Self], state: &mut H) where1.3.0[src]
impl<__CTX> HashStable<__CTX> for Align where[src]
impl PartialOrd<Align> for Align[src]
pub fn partial_cmp(&self, other: &Align) -> Option<Ordering>[src]
impl StructuralEq for Align[src]
impl StructuralPartialEq for Align[src]
Auto Trait Implementations
impl RefUnwindSafe for Align
impl UnwindSafe for Align
impl<T> MaybeResult<T> for T[src]
pub fn from(Result<T, <T as MaybeResult<T>>::Error>) -> T[src]
pub fn to_result(Self) -> Result<T, <T as MaybeResult<T>>::Error>[src]
type Owned = T
The resulting type after obtaining ownership.
pub fn clone_into(&self, target: &mut T)[src]
type Error = Infallible
The type returned in the event of a conversion error.