Struct rustc::ty::layout::Align
[−]
[src]
pub struct Align {
// some fields omitted
}Unstable (
rustc_private)Alignment of a type in bytes, both ABI-mandated and preferred. Since alignments are always powers of 2, we can pack both in one byte, giving each a nibble (4 bits) for a maximum alignment of 215 = 32768.
Methods
impl Align[src]
fn from_bits(abi: u64, pref: u64) -> Result<Align, String>
fn from_bytes(abi: u64, pref: u64) -> Result<Align, String>
fn abi(self) -> u64
fn pref(self) -> u64
fn min(self, other: Align) -> Align
fn max(self, other: Align) -> Align
Trait Implementations
Derived Implementations
impl Debug for Align[src]
impl Hash for Align[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher1.3.0
Feeds a slice of this type into the state provided.
impl Eq for Align[src]
impl PartialEq for Align[src]
fn eq(&self, __arg_0: &Align) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Align) -> bool
This method tests for !=.
impl Clone for Align[src]
fn clone(&self) -> Align
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more