Enum rustc_target::abi::Abi [−][src]
pub enum Abi {
Uninhabited,
Scalar(Scalar),
ScalarPair(Scalar, Scalar),
Vector {
element: Scalar,
count: u64,
},
Aggregate {
sized: bool,
},
}Describes how values of the type are passed by target ABIs, in terms of categories of C types there are ABI rules for.
Variants
UninhabitedScalar(Scalar)ScalarPair(Scalar, Scalar)VectorFields of Vector
element: Scalar | |
count: u64 |
AggregateFields of Aggregate
sized: bool | If true, the size is exact, otherwise it's only a lower bound. |
Methods
impl Abi[src]
impl Abipub fn is_unsized(&self) -> bool[src]
pub fn is_unsized(&self) -> boolReturns true if the layout corresponds to an unsized type.
pub fn is_signed(&self) -> bool[src]
pub fn is_signed(&self) -> boolReturns true if this is a single signed integer scalar
Trait Implementations
impl Clone for Abi[src]
impl Clone for Abifn clone(&self) -> Abi[src]
fn clone(&self) -> AbiReturns 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)1.0.0
[src]Performs copy-assignment from source. Read more
impl PartialEq for Abi[src]
impl PartialEq for Abifn eq(&self, other: &Abi) -> bool[src]
fn eq(&self, other: &Abi) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Abi) -> bool[src]
fn ne(&self, other: &Abi) -> boolThis method tests for !=.
impl Eq for Abi[src]
impl Eq for Abiimpl Hash for Abi[src]
impl Hash for Abifn 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, 1.3.0
[src]Feeds a slice of this type into the given [Hasher]. Read more
impl Debug for Abi[src]
impl Debug for Abi