Type Alias rustc_middle::query::queries::unused_generic_params::ProvidedValue
source · 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
impl UnusedGenericParams
pub fn new_all_unused(amount: u32) -> Self
pub fn new_all_used() -> Self
pub fn mark_used(&mut self, idx: u32)
pub fn is_unused(&self, idx: u32) -> bool
pub fn is_used(&self, idx: u32) -> bool
pub fn all_used(&self) -> bool
pub fn bits(&self) -> u32
pub fn from_bits(bits: u32) -> UnusedGenericParams
Trait Implementations§
source§impl Clone for UnusedGenericParams
impl Clone for UnusedGenericParams
source§fn clone(&self) -> UnusedGenericParams
fn clone(&self) -> UnusedGenericParams
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for UnusedGenericParams
impl Debug for UnusedGenericParams
source§impl<__D: Decoder> Decodable<__D> for UnusedGenericParams
impl<__D: Decoder> Decodable<__D> for UnusedGenericParams
source§impl Default for UnusedGenericParams
impl Default for UnusedGenericParams
source§impl<__E: Encoder> Encodable<__E> for UnusedGenericParams
impl<__E: Encoder> Encodable<__E> for UnusedGenericParams
source§impl<'__ctx> HashStable<StableHashingContext<'__ctx>> for UnusedGenericParams
impl<'__ctx> HashStable<StableHashingContext<'__ctx>> for UnusedGenericParams
fn hash_stable( &self, __hcx: &mut StableHashingContext<'__ctx>, __hasher: &mut StableHasher )
source§impl ParameterizedOverTcx for UnusedGenericParams
impl ParameterizedOverTcx for UnusedGenericParams
type Value<'tcx> = UnusedGenericParams
source§impl PartialEq<UnusedGenericParams> for UnusedGenericParams
impl PartialEq<UnusedGenericParams> for UnusedGenericParams
source§fn eq(&self, other: &UnusedGenericParams) -> bool
fn eq(&self, other: &UnusedGenericParams) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for UnusedGenericParams
impl Eq for UnusedGenericParams
impl StructuralEq for UnusedGenericParams
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