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
Uninhabited
Scalar(Scalar)
ScalarPair(Scalar, Scalar)
Vector
Fields of Vector
element: Scalar | |
count: u64 |
Aggregate
Fields of Aggregate
sized: bool | If true, the size is exact, otherwise it's only a lower bound. |
Methods
impl Abi
[src]
impl Abi
pub fn is_unsized(&self) -> bool
[src]
pub fn is_unsized(&self) -> bool
Returns true if the layout corresponds to an unsized type.
pub fn is_signed(&self) -> bool
[src]
pub fn is_signed(&self) -> bool
Returns true if this is a single signed integer scalar
Trait Implementations
impl Clone for Abi
[src]
impl Clone for Abi
fn clone(&self) -> Abi
[src]
fn clone(&self) -> Abi
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)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for Abi
[src]
impl PartialEq for Abi
fn eq(&self, other: &Abi) -> bool
[src]
fn eq(&self, other: &Abi) -> bool
This 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) -> bool
This method tests for !=
.
impl Eq for Abi
[src]
impl Eq for Abi
impl Hash for Abi
[src]
impl Hash for Abi
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,
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