pub type ProvidedValue<'tcx> = SymbolName<'tcx>;
Expand description

This type alias specifies the type returned from query providers and the type used for decoding. For regular queries this is the declared returned type V, but arena_cache will use <V as Deref>::Target instead.

Aliased Type§

struct ProvidedValue<'tcx> {
    pub name: &'tcx str,
}

Fields§

§name: &'tcx str

&str gives a consistent ordering, which ensures reproducible builds.

Implementations§

source§

impl<'tcx> SymbolName<'tcx>

source

pub fn new(tcx: TyCtxt<'tcx>, name: &str) -> SymbolName<'tcx>

Trait Implementations§

source§

impl<'tcx> Clone for SymbolName<'tcx>

source§

fn clone(&self) -> SymbolName<'tcx>

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<'tcx> Debug for SymbolName<'tcx>

source§

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

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

impl<'tcx, D: TyDecoder<I = TyCtxt<'tcx>>> Decodable<D> for SymbolName<'tcx>

source§

fn decode(decoder: &mut D) -> Self

source§

impl<'tcx> Display for SymbolName<'tcx>

source§

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

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

impl<'tcx, __E: TyEncoder<I = TyCtxt<'tcx>>> Encodable<__E> for SymbolName<'tcx>

source§

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

source§

impl<'tcx> EraseType for SymbolName<'tcx>

§

type Result = [u8; 16]

source§

impl<'tcx> Hash for SymbolName<'tcx>

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl<'tcx, '__ctx> HashStable<StableHashingContext<'__ctx>> for SymbolName<'tcx>

source§

fn hash_stable( &self, __hcx: &mut StableHashingContext<'__ctx>, __hasher: &mut StableHasher )

source§

impl<'tcx> Ord for SymbolName<'tcx>

source§

fn cmp(&self, other: &SymbolName<'tcx>) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>,

Restrict a value to a certain interval. Read more
source§

impl<'tcx> PartialEq<SymbolName<'tcx>> for SymbolName<'tcx>

source§

fn eq(&self, other: &SymbolName<'tcx>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

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

impl<'tcx> PartialOrd<SymbolName<'tcx>> for SymbolName<'tcx>

source§

fn partial_cmp(&self, other: &SymbolName<'tcx>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

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

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

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

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

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

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl<'tcx> Value<TyCtxt<'tcx>> for SymbolName<'_>

source§

fn from_cycle_error( tcx: TyCtxt<'tcx>, _: &[QueryInfo], _guar: ErrorGuaranteed ) -> Self

source§

impl<'tcx> Copy for SymbolName<'tcx>

source§

impl<'tcx> Eq for SymbolName<'tcx>

source§

impl<'tcx> StructuralEq for SymbolName<'tcx>

source§

impl<'tcx> StructuralPartialEq for SymbolName<'tcx>

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:16 bytes