pub struct ContainsGenerics {
pub base: IterativeTypeVisitor,
pub generics: *mut DenseHashSet<*const c_void>,
pub found: bool,
}Fields§
§base: IterativeTypeVisitor§generics: *mut DenseHashSet<*const c_void>§found: boolImplementations§
Source§impl ContainsGenerics
impl ContainsGenerics
pub fn contains_generics_contains_generics( generics: *mut DenseHashSet<*const c_void>, ) -> Self
Source§impl ContainsGenerics
impl ContainsGenerics
pub fn contains_generics(&mut self, generics: *mut DenseHashSet<*const c_void>)
pub fn visit_type_id(&mut self, _ty: TypeId) -> bool
pub fn visit_type_id_generic_type( &mut self, ty: TypeId, _gt: &GenericType, ) -> bool
pub fn visit_type_id_type_function_instance_type( &mut self, _ty: TypeId, _tfit: &TypeFunctionInstanceType, ) -> bool
pub fn visit_type_pack_id_generic_type_pack( &mut self, tp: TypePackId, _gtp: &GenericTypePack, ) -> bool
Trait Implementations§
Source§impl Clone for ContainsGenerics
impl Clone for ContainsGenerics
Source§fn clone(&self) -> ContainsGenerics
fn clone(&self) -> ContainsGenerics
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 moreSource§impl Debug for ContainsGenerics
impl Debug for ContainsGenerics
Source§impl IterativeTypeVisitorTrait for ContainsGenerics
impl IterativeTypeVisitorTrait for ContainsGenerics
fn visitor_base(&mut self) -> &mut IterativeTypeVisitor
fn visit_type_id(&mut self, ty: TypeId) -> bool
fn visit_type_id_generic_type(&mut self, ty: TypeId, gt: &GenericType) -> bool
fn visit_type_id_type_function_instance_type( &mut self, ty: TypeId, tfit: &TypeFunctionInstanceType, ) -> bool
fn visit_type_pack_id_generic_type_pack( &mut self, tp: TypePackId, gtp: &GenericTypePack, ) -> bool
fn cycle_type_id(&mut self, _ty: TypeId)
fn cycle_type_pack_id(&mut self, _tp: TypePackId)
fn visit_type_id_bound_type(&mut self, ty: TypeId, _btv: &BoundType) -> bool
fn visit_type_id_free_type(&mut self, ty: TypeId, _ftv: &FreeType) -> bool
fn visit_type_id_error_type(&mut self, ty: TypeId, _etv: &ErrorType) -> bool
fn visit_type_id_primitive_type( &mut self, ty: TypeId, _ptv: &PrimitiveType, ) -> bool
fn visit_type_id_function_type( &mut self, ty: TypeId, _ftv: &FunctionType, ) -> bool
fn visit_type_id_table_type(&mut self, ty: TypeId, _ttv: &TableType) -> bool
fn visit_type_id_metatable_type( &mut self, ty: TypeId, _mtv: &MetatableType, ) -> bool
fn visit_type_id_extern_type(&mut self, ty: TypeId, _etv: &ExternType) -> bool
fn visit_type_id_any_type(&mut self, ty: TypeId, _atv: &AnyType) -> bool
fn visit_type_id_no_refine_type( &mut self, ty: TypeId, _nrt: &NoRefineType, ) -> bool
fn visit_type_id_unknown_type(&mut self, ty: TypeId, _utv: &UnknownType) -> bool
fn visit_type_id_never_type(&mut self, ty: TypeId, _ntv: &NeverType) -> bool
fn visit_type_id_union_type(&mut self, ty: TypeId, _utv: &UnionType) -> bool
fn visit_type_id_intersection_type( &mut self, ty: TypeId, _itv: &IntersectionType, ) -> bool
fn visit_type_id_blocked_type(&mut self, ty: TypeId, _btv: &BlockedType) -> bool
fn visit_type_id_pending_expansion_type( &mut self, ty: TypeId, _petv: &PendingExpansionType, ) -> bool
fn visit_type_id_singleton_type( &mut self, ty: TypeId, _stv: &SingletonType, ) -> bool
fn visit_type_id_negation_type( &mut self, ty: TypeId, _ntv: &NegationType, ) -> bool
fn visit_type_pack_id(&mut self, _tp: TypePackId) -> bool
fn visit_type_pack_id_bound_type_pack( &mut self, tp: TypePackId, _btp: &BoundTypePack, ) -> bool
fn visit_type_pack_id_free_type_pack( &mut self, tp: TypePackId, _ftp: &FreeTypePack, ) -> bool
fn visit_type_pack_id_error_type_pack( &mut self, tp: TypePackId, _etp: &ErrorTypePack, ) -> bool
fn visit_type_pack_id_type_pack( &mut self, tp: TypePackId, _pack: &TypePack, ) -> bool
fn visit_type_pack_id_variadic_type_pack( &mut self, tp: TypePackId, _vtp: &VariadicTypePack, ) -> bool
fn visit_type_pack_id_blocked_type_pack( &mut self, tp: TypePackId, _btp: &BlockedTypePack, ) -> bool
fn visit_type_pack_id_type_function_instance_type_pack( &mut self, tp: TypePackId, _tfitp: &TypeFunctionInstanceTypePack, ) -> bool
fn run_type_id(&mut self, root_ty: TypeId)
fn run_type_pack_id(&mut self, root_tp: TypePackId)
fn traverse_type_id(&mut self, ty: TypeId)
fn traverse_type_pack_id(&mut self, tp: TypePackId)
fn process_work_queue(&mut self)
fn process_type_id(&mut self, ty: TypeId)
fn process_type_pack_id(&mut self, tp: TypePackId)
fn has_seen(&mut self, tv: *const c_void) -> bool
fn unsee(&mut self, _tv: *const c_void)
fn is_cyclic_type_id(&mut self, ty: TypeId) -> bool
fn is_cyclic_type_pack_id(&mut self, tp: TypePackId) -> bool
Auto Trait Implementations§
impl !Send for ContainsGenerics
impl !Sync for ContainsGenerics
impl Freeze for ContainsGenerics
impl RefUnwindSafe for ContainsGenerics
impl Unpin for ContainsGenerics
impl UnsafeUnpin for ContainsGenerics
impl UnwindSafe for ContainsGenerics
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