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 Alignpub 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) -> u64pub fn pref(self) -> u64[src]
pub fn pref(self) -> u64pub fn abi_bits(self) -> u64[src]
pub fn abi_bits(self) -> u64pub fn pref_bits(self) -> u64[src]
pub fn pref_bits(self) -> u64pub fn min(self, other: Align) -> Align[src]
pub fn min(self, other: Align) -> Alignpub fn max(self, other: Align) -> Align[src]
pub fn max(self, other: Align) -> AlignTrait Implementations
impl Copy for Align[src]
impl Copy for Alignimpl Clone for Align[src]
impl Clone for Alignfn clone(&self) -> Align[src]
fn clone(&self) -> AlignReturns 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 Alignfn eq(&self, other: &Align) -> bool[src]
fn eq(&self, other: &Align) -> boolThis 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) -> boolThis method tests for !=.
impl Eq for Align[src]
impl Eq for Alignimpl Ord for Align[src]
impl Ord for Alignfn cmp(&self, other: &Align) -> Ordering[src]
fn cmp(&self, other: &Align) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl PartialOrd for Align[src]
impl PartialOrd for Alignfn 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) -> boolThis 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) -> boolThis 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) -> boolThis 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) -> boolThis 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 Alignfn 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 Alignfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Encodable for Align[src]
impl Encodable for Alignimpl Decodable for Align[src]
impl Decodable for Align