Skip to main content

FindSimplificationBlockers

Struct FindSimplificationBlockers 

Source
pub struct FindSimplificationBlockers {
    pub base: IterativeTypeVisitor,
    pub found: bool,
}

Fields§

§base: IterativeTypeVisitor§found: bool

Implementations§

Trait Implementations§

Source§

impl Clone for FindSimplificationBlockers

Source§

fn clone(&self) -> FindSimplificationBlockers

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 FindSimplificationBlockers

Source§

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

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

impl IterativeTypeVisitorTrait for FindSimplificationBlockers

Source§

fn visitor_base(&mut self) -> &mut IterativeTypeVisitor

Source§

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

Source§

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

Source§

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

Source§

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

Source§

fn visit_type_id_function_type( &mut self, ty: TypeId, ftv: &FunctionType, ) -> 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_bound_type(&mut self, ty: TypeId, _btv: &BoundType) -> 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_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 run_type_id(&mut self, root_ty: TypeId)

Source§

fn run_type_pack_id(&mut self, root_tp: TypePackId)

Source§

fn traverse_type_id(&mut self, ty: TypeId)

Source§

fn traverse_type_pack_id(&mut self, tp: TypePackId)

Source§

fn process_work_queue(&mut self)

Source§

fn process_type_id(&mut self, ty: TypeId)

Source§

fn process_type_pack_id(&mut self, tp: TypePackId)

Source§

fn has_seen(&mut self, tv: *const c_void) -> bool

Source§

fn unsee(&mut self, _tv: *const c_void)

Source§

fn is_cyclic_type_id(&mut self, ty: TypeId) -> bool

Source§

fn is_cyclic_type_pack_id(&mut self, tp: TypePackId) -> bool

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.