Struct rustc::ty::layout::Align
[−]
[src]
pub struct Align { /* fields omitted */ }
🔬 This is a nightly-only experimental API. (
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>
🔬 This is a nightly-only experimental API. (
rustc_private
)fn from_bytes(abi: u64, pref: u64) -> Result<Align, String>
🔬 This is a nightly-only experimental API. (
rustc_private
)fn abi(self) -> u64
🔬 This is a nightly-only experimental API. (
rustc_private
)fn pref(self) -> u64
🔬 This is a nightly-only experimental API. (
rustc_private
)fn min(self, other: Align) -> Align
🔬 This is a nightly-only experimental API. (
rustc_private
)fn max(self, other: Align) -> Align
🔬 This is a nightly-only experimental API. (
rustc_private
)Trait Implementations
impl Copy for Align
[src]
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
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 Eq 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: Hasher
1.3.0
Feeds a slice of this type into the state provided.