Enum rustc_target::abi::Primitive [−][src]
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Fundamental unit of memory access and layout.
Variants
Int(Integer, bool)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
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.
F32🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
F64🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Pointer🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
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) -> Size🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
pub fn align<C: HasDataLayout>(self, cx: C) -> Align[src]
pub fn align<C: HasDataLayout>(self, cx: C) -> Align🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Trait 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)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 Primitivefn assert_receiver_is_total_eq(&self)[src]
fn assert_receiver_is_total_eq(&self)impl 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, Feeds a slice of this type into the given [Hasher]. Read more
impl Debug for Primitive[src]
impl Debug for Primitive