Type Alias Value

Source
pub type Value<'tcx> = Constness;

Aliased Type§

enum Value<'tcx> {
    Const,
    NotConst,
}

Variants§

§

Const

§

NotConst

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:

  • Const: 0 bytes
  • NotConst: 0 bytes

Trait Implementations

Source§

impl Clone for Constness

Source§

fn clone(&self) -> Constness

Returns a copy of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for Constness

Source§

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

Formats the value using the given formatter. Read more
Source§

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

Source§

impl Display for Constness

Source§

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

Formats the value using the given formatter. Read more
Source§

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

Source§

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

Source§

impl EraseType for Constness

Source§

type Result = [u8; 1]

Source§

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

Source§

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

Source§

impl ParameterizedOverTcx for Constness

Source§

impl PartialEq for Constness

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · 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.
Source§

impl Copy for Constness

Source§

impl Eq for Constness

Source§

impl StructuralPartialEq for Constness