rustc_middle::query::queries::defaultness

Type Alias Value

Source
pub type Value<'tcx> = Defaultness;

Aliased Type§

enum Value<'tcx> {
    Default {
        has_value: bool,
    },
    Final,
}

Variants§

§

Default

Fields

§has_value: bool
§

Final

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 1 byte

Size for each variant:

  • Default: 1 byte
  • Final: 0 bytes

Implementations

§

impl Defaultness

pub fn has_value(&self) -> bool

pub fn is_final(&self) -> bool

pub fn is_default(&self) -> bool

Trait Implementations

§

impl Clone for Defaultness

§

fn clone(&self) -> Defaultness

Returns a copy of the value. Read more
Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for Defaultness

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<__D> Decodable<__D> for Defaultness
where __D: SpanDecoder,

§

fn decode(__decoder: &mut __D) -> Defaultness

§

impl<__E> Encodable<__E> for Defaultness
where __E: SpanEncoder,

§

fn encode(&self, __encoder: &mut __E)

Source§

impl EraseType for Defaultness

Source§

type Result = [u8; 1]

§

impl<__CTX> HashStable<__CTX> for Defaultness
where __CTX: HashStableContext,

§

fn hash_stable( &self, __hcx: &mut __CTX, __hasher: &mut StableHasher<SipHasher128>, )

Source§

impl ParameterizedOverTcx for Defaultness

Source§

type Value<'tcx> = Defaultness

§

impl PartialEq for Defaultness

§

fn eq(&self, other: &Defaultness) -> bool

Tests for self and other values to be equal, and is used by ==.
Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl Copy for Defaultness

§

impl Eq for Defaultness

§

impl StructuralPartialEq for Defaultness