pub struct GenericCounter {
pub base: TypeVisitor,
pub seen_counts: DenseHashMap<TypeId, usize>,
pub cached_types: *mut DenseHashSet<TypeId>,
pub generics: DenseHashMap<TypeId, CounterState>,
pub generic_packs: DenseHashMap<TypePackId, CounterState>,
pub polarity: Polarity,
pub steps: i32,
pub hit_limits: bool,
}Fields§
§base: TypeVisitor§seen_counts: DenseHashMap<TypeId, usize>§cached_types: *mut DenseHashSet<TypeId>§generics: DenseHashMap<TypeId, CounterState>§generic_packs: DenseHashMap<TypePackId, CounterState>§polarity: Polarity§steps: i32§hit_limits: boolImplementations§
Source§impl GenericCounter
impl GenericCounter
pub fn check_limits(&mut self)
Source§impl GenericCounter
impl GenericCounter
pub fn generic_counter(_cached_types: *mut DenseHashSet<TypeId>) -> Self
Source§impl GenericCounter
impl GenericCounter
pub fn visit_type_id(&mut self) -> bool
Source§impl GenericCounter
impl GenericCounter
pub fn visit_type_id_function_type(&mut self) -> bool
Source§impl GenericCounter
impl GenericCounter
pub fn visit_type_id_table_type(&mut self, _ty: TypeId, _tt: &TableType) -> bool
Source§impl GenericCounter
impl GenericCounter
pub fn visit_type_id_extern_type( &mut self, _ty: TypeId, _et: &ExternType, ) -> bool
Source§impl GenericCounter
impl GenericCounter
pub fn visit_type_id_generic_type(&mut self) -> bool
Source§impl GenericCounter
impl GenericCounter
pub fn visit_type_pack_id_generic_type_pack(&mut self) -> bool
Trait Implementations§
Source§impl Clone for GenericCounter
impl Clone for GenericCounter
Source§fn clone(&self) -> GenericCounter
fn clone(&self) -> GenericCounter
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !Send for GenericCounter
impl !Sync for GenericCounter
impl Freeze for GenericCounter
impl RefUnwindSafe for GenericCounter
impl Unpin for GenericCounter
impl UnsafeUnpin for GenericCounter
impl UnwindSafe for GenericCounter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more