Enum rustc_target::abi::Primitive [−][src]
Fundamental unit of memory access and layout.
Variants
Int(Integer, bool)
The bool
is the signedness of the Integer
type.
One would think we would not care about such details this low down, but some ABIs are described in terms of C types and ISAs where the integer arithmetic is done on {sign,zero}-extended registers, e.g. a negative integer passed by zero-extension will appear positive in the callee, and most operations on it will produce the wrong values.
Float(FloatTy)
Pointer
Methods
impl<'a, 'tcx> Primitive
[src]
impl<'a, 'tcx> Primitive
pub fn size<C: HasDataLayout>(self, cx: C) -> Size
[src]
pub fn size<C: HasDataLayout>(self, cx: C) -> Size
pub fn align<C: HasDataLayout>(self, cx: C) -> Align
[src]
pub fn align<C: HasDataLayout>(self, cx: C) -> Align
pub fn is_float(self) -> bool
[src]
pub fn is_float(self) -> bool
pub fn is_int(self) -> bool
[src]
pub fn is_int(self) -> bool
Trait Implementations
impl Copy for Primitive
[src]
impl Copy for Primitive
impl Clone for Primitive
[src]
impl Clone for Primitive
fn clone(&self) -> Primitive
[src]
fn clone(&self) -> Primitive
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 Primitive
[src]
impl PartialEq for Primitive
fn eq(&self, other: &Primitive) -> bool
[src]
fn eq(&self, other: &Primitive) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Primitive) -> bool
[src]
fn ne(&self, other: &Primitive) -> bool
This method tests for !=
.
impl Eq for Primitive
[src]
impl Eq for Primitive
impl Hash for Primitive
[src]
impl Hash for Primitive
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 Primitive
[src]
impl Debug for Primitive