Enum rustc_target::abi::Integer [−][src]
pub enum Integer {
I8,
I16,
I32,
I64,
I128,
}Integers, also used for enum discriminants.
Variants
I8I16I32I64I128
Methods
impl Integer[src]
impl Integerpub fn size(self) -> Size[src]
pub fn size(self) -> Sizepub fn align<C: HasDataLayout>(self, cx: C) -> Align[src]
pub fn align<C: HasDataLayout>(self, cx: C) -> Alignpub fn fit_signed(x: i128) -> Integer[src]
pub fn fit_signed(x: i128) -> IntegerFind the smallest Integer type which can represent the signed value.
pub fn fit_unsigned(x: u128) -> Integer[src]
pub fn fit_unsigned(x: u128) -> IntegerFind the smallest Integer type which can represent the unsigned value.
pub fn for_abi_align<C: HasDataLayout>(cx: C, align: Align) -> Option<Integer>[src]
pub fn for_abi_align<C: HasDataLayout>(cx: C, align: Align) -> Option<Integer>Find the smallest integer with the given alignment.
pub fn approximate_abi_align<C: HasDataLayout>(cx: C, align: Align) -> Integer[src]
pub fn approximate_abi_align<C: HasDataLayout>(cx: C, align: Align) -> IntegerFind the largest integer with the given alignment or less.
Trait Implementations
impl Copy for Integer[src]
impl Copy for Integerimpl Clone for Integer[src]
impl Clone for Integerfn clone(&self) -> Integer[src]
fn clone(&self) -> IntegerReturns 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 Integer[src]
impl PartialEq for Integerfn eq(&self, other: &Integer) -> bool[src]
fn eq(&self, other: &Integer) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl Eq for Integer[src]
impl Eq for Integerimpl PartialOrd for Integer[src]
impl PartialOrd for Integerfn partial_cmp(&self, other: &Integer) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &Integer) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
fn lt(&self, other: &Rhs) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Rhs) -> bool1.0.0[src]
fn le(&self, other: &Rhs) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
fn gt(&self, other: &Rhs) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
fn ge(&self, other: &Rhs) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Ord for Integer[src]
impl Ord for Integerfn cmp(&self, other: &Integer) -> Ordering[src]
fn cmp(&self, other: &Integer) -> 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 Hash for Integer[src]
impl Hash for Integerfn 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 Integer[src]
impl Debug for Integer