pub type ProvidedValue<'tcx> = UnusedGenericParams;
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>(FiniteBitSet<u32>);

Fields§

§0: FiniteBitSet<u32>

Implementations§

source§

impl UnusedGenericParams

source

pub fn new_all_unused(amount: u32) -> Self

source

pub fn new_all_used() -> Self

source

pub fn mark_used(&mut self, idx: u32)

source

pub fn is_unused(&self, idx: u32) -> bool

source

pub fn is_used(&self, idx: u32) -> bool

source

pub fn all_used(&self) -> bool

source

pub fn bits(&self) -> u32

source

pub fn from_bits(bits: u32) -> UnusedGenericParams

Trait Implementations§

source§

impl Clone for UnusedGenericParams

source§

fn clone(&self) -> UnusedGenericParams

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 UnusedGenericParams

source§

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

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

impl<__D: Decoder> Decodable<__D> for UnusedGenericParams

source§

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

source§

impl Default for UnusedGenericParams

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<__E: Encoder> Encodable<__E> for UnusedGenericParams

source§

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

source§

impl EraseType for UnusedGenericParams

§

type Result = [u8; 4]

source§

impl<'__ctx> HashStable<StableHashingContext<'__ctx>> for UnusedGenericParams

source§

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

source§

impl ParameterizedOverTcx for UnusedGenericParams

source§

impl PartialEq<UnusedGenericParams> for UnusedGenericParams

source§

fn eq(&self, other: &UnusedGenericParams) -> 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 Copy for UnusedGenericParams

source§

impl Eq for UnusedGenericParams

source§

impl StructuralEq for UnusedGenericParams

source§

impl StructuralPartialEq for UnusedGenericParams

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