Struct rustc_target::abi::Align [−][src]
pub struct Align { /* fields omitted */ }
Alignment of a type in bytes, both ABI-mandated and preferred. Each field is a power of two, giving the alignment a maximum value of 2(28 - 1), which is limited by LLVM to a maximum capacity of 229 or 536870912.
Methods
impl Align
[src]
impl Align
pub fn from_bits(abi: u64, pref: u64) -> Result<Align, String>
[src]
pub fn from_bits(abi: u64, pref: u64) -> Result<Align, String>
pub fn from_bytes(abi: u64, pref: u64) -> Result<Align, String>
[src]
pub fn from_bytes(abi: u64, pref: u64) -> Result<Align, String>
pub fn abi(self) -> u64
[src]
pub fn abi(self) -> u64
pub fn pref(self) -> u64
[src]
pub fn pref(self) -> u64
pub fn abi_bits(self) -> u64
[src]
pub fn abi_bits(self) -> u64
pub fn pref_bits(self) -> u64
[src]
pub fn pref_bits(self) -> u64
pub fn min(self, other: Align) -> Align
[src]
pub fn min(self, other: Align) -> Align
pub fn max(self, other: Align) -> Align
[src]
pub fn max(self, other: Align) -> Align
Trait Implementations
impl Copy for Align
[src]
impl Copy for Align
impl Clone for Align
[src]
impl Clone for Align
fn clone(&self) -> Align
[src]
fn clone(&self) -> Align
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl PartialEq for Align
[src]
impl PartialEq for Align
fn eq(&self, other: &Align) -> bool
[src]
fn eq(&self, other: &Align) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Align) -> bool
[src]
fn ne(&self, other: &Align) -> bool
This method tests for !=
.
impl Eq for Align
[src]
impl Eq for Align
impl Ord for Align
[src]
impl Ord for Align
fn cmp(&self, other: &Align) -> Ordering
[src]
fn cmp(&self, other: &Align) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl PartialOrd for Align
[src]
impl PartialOrd for Align
fn partial_cmp(&self, other: &Align) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Align) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Align) -> bool
[src]
fn lt(&self, other: &Align) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Align) -> bool
[src]
fn le(&self, other: &Align) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Align) -> bool
[src]
fn gt(&self, other: &Align) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Align) -> bool
[src]
fn ge(&self, other: &Align) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Hash for Align
[src]
impl Hash for Align
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Debug for Align
[src]
impl Debug for Align
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Encodable for Align
[src]
impl Encodable for Align
impl Decodable for Align
[src]
impl Decodable for Align