Enum rustc_target::abi::Primitive[][src]

pub enum Primitive {
    Int(Integerbool),
    Float(FloatTy),
    Pointer,
}

Fundamental unit of memory access and layout.

Variants

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.

Methods

impl<'a, 'tcx> Primitive
[src]

Trait Implementations

impl Copy for Primitive
[src]

impl Clone for Primitive
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Primitive
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Primitive
[src]

impl Hash for Primitive
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Debug for Primitive
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Primitive

impl Sync for Primitive