Skip to main content

FindRefinementBlockers

Struct FindRefinementBlockers 

Source
pub struct FindRefinementBlockers {
    pub base: TypeOnceVisitor,
    pub found: DenseHashSet<TypeId>,
}

Fields§

§base: TypeOnceVisitor§found: DenseHashSet<TypeId>

Implementations§

Trait Implementations§

Source§

impl Clone for FindRefinementBlockers

Source§

fn clone(&self) -> FindRefinementBlockers

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for FindRefinementBlockers

Source§

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

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

impl GenericTypeVisitorTrait for FindRefinementBlockers

Source§

type Seen = DenseHashSet<*mut c_void>

Source§

fn visitor_base(&mut self) -> &mut GenericTypeVisitor<Self::Seen>

Source§

fn visit_type_id_blocked_type(&mut self, ty: TypeId, btv: &BlockedType) -> bool

Source§

fn visit_type_id_pending_expansion_type( &mut self, ty: TypeId, petv: &PendingExpansionType, ) -> bool

Source§

fn visit_type_id_extern_type(&mut self, ty: TypeId, etv: &ExternType) -> bool

Source§

fn cycle_type_id(&mut self, _ty: TypeId)

Source§

fn cycle_type_pack_id(&mut self, _tp: TypePackId)

Source§

fn visit_type_id(&mut self, _ty: TypeId) -> bool

Source§

fn visit_type_id_bound_type(&mut self, ty: TypeId, _btv: &BoundType) -> bool

Source§

fn visit_type_id_free_type(&mut self, ty: TypeId, _ftv: &FreeType) -> bool

Source§

fn visit_type_id_generic_type(&mut self, ty: TypeId, _gtv: &GenericType) -> bool

Source§

fn visit_type_id_error_type(&mut self, ty: TypeId, _etv: &ErrorType) -> bool

Source§

fn visit_type_id_primitive_type( &mut self, ty: TypeId, _ptv: &PrimitiveType, ) -> bool

Source§

fn visit_type_id_function_type( &mut self, ty: TypeId, _ftv: &FunctionType, ) -> bool

Source§

fn visit_type_id_table_type(&mut self, ty: TypeId, _ttv: &TableType) -> bool

Source§

fn visit_type_id_metatable_type( &mut self, ty: TypeId, _mtv: &MetatableType, ) -> bool

Source§

fn visit_type_id_any_type(&mut self, ty: TypeId, _atv: &AnyType) -> bool

Source§

fn visit_type_id_no_refine_type( &mut self, ty: TypeId, _nrt: &NoRefineType, ) -> bool

Source§

fn visit_type_id_unknown_type(&mut self, ty: TypeId, _utv: &UnknownType) -> bool

Source§

fn visit_type_id_never_type(&mut self, ty: TypeId, _ntv: &NeverType) -> bool

Source§

fn visit_type_id_union_type(&mut self, ty: TypeId, _utv: &UnionType) -> bool

Source§

fn visit_type_id_intersection_type( &mut self, ty: TypeId, _itv: &IntersectionType, ) -> bool

Source§

fn visit_type_id_singleton_type( &mut self, ty: TypeId, _stv: &SingletonType, ) -> bool

Source§

fn visit_type_id_negation_type( &mut self, ty: TypeId, _ntv: &NegationType, ) -> bool

Source§

fn visit_type_id_type_function_instance_type( &mut self, ty: TypeId, _tfit: &TypeFunctionInstanceType, ) -> bool

Source§

fn visit_type_pack_id(&mut self, _tp: TypePackId) -> bool

Source§

fn visit_type_pack_id_bound_type_pack( &mut self, tp: TypePackId, _btp: &BoundTypePack, ) -> bool

Source§

fn visit_type_pack_id_free_type_pack( &mut self, tp: TypePackId, _ftp: &FreeTypePack, ) -> bool

Source§

fn visit_type_pack_id_generic_type_pack( &mut self, tp: TypePackId, _gtp: &GenericTypePack, ) -> bool

Source§

fn visit_type_pack_id_error_type_pack( &mut self, tp: TypePackId, _etp: &ErrorTypePack, ) -> bool

Source§

fn visit_type_pack_id_type_pack( &mut self, tp: TypePackId, _pack: &TypePack, ) -> bool

Source§

fn visit_type_pack_id_variadic_type_pack( &mut self, tp: TypePackId, _vtp: &VariadicTypePack, ) -> bool

Source§

fn visit_type_pack_id_blocked_type_pack( &mut self, tp: TypePackId, _btp: &BlockedTypePack, ) -> bool

Source§

fn visit_type_pack_id_type_function_instance_type_pack( &mut self, tp: TypePackId, _tfitp: &TypeFunctionInstanceTypePack, ) -> bool

Source§

fn traverse_type_id(&mut self, ty: TypeId)
where Self: Sized,

C++ void traverse(TypeId ty) (VisitType.h:217). Body in the traverse node file.
Source§

fn traverse_type_pack_id(&mut self, tp: TypePackId)
where Self: Sized,

C++ void traverse(TypePackId tp) (VisitType.h:444).

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.