Struct rustc_target::abi::Scalar[][src]

pub struct Scalar {
    pub value: Primitive,
    pub valid_range: RangeInclusive<u128>,
}

Information about one scalar component of a Rust type.

Fields

Inclusive wrap-around range of valid values, that is, if min > max, it represents min..=u128::MAX followed by 0..=max.

Methods

impl Scalar
[src]

Returns the valid range as a x..y range.

If x and y are equal, the range is full, not empty.

Trait Implementations

impl Clone for Scalar
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Scalar
[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 Scalar
[src]

impl Hash for Scalar
[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 Scalar
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Scalar

impl Sync for Scalar