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> Primitivepub fn size<C: HasDataLayout>(self, cx: C) -> Size[src]
pub fn size<C: HasDataLayout>(self, cx: C) -> Sizepub fn align<C: HasDataLayout>(self, cx: C) -> Align[src]
pub fn align<C: HasDataLayout>(self, cx: C) -> Alignpub fn is_float(self) -> bool[src]
pub fn is_float(self) -> boolpub fn is_int(self) -> bool[src]
pub fn is_int(self) -> boolTrait Implementations
impl Copy for Primitive[src]
impl Copy for Primitiveimpl Clone for Primitive[src]
impl Clone for Primitivefn clone(&self) -> Primitive[src]
fn clone(&self) -> PrimitiveReturns 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 Primitivefn eq(&self, other: &Primitive) -> bool[src]
fn eq(&self, other: &Primitive) -> boolThis 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) -> boolThis method tests for !=.
impl Eq for Primitive[src]
impl Eq for Primitiveimpl Hash for Primitive[src]
impl Hash for Primitivefn 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