pub struct ConstraintGraph { /* private fields */ }Implementations§
Source§impl ConstraintGraph
impl ConstraintGraph
pub fn add_dependency_of_constraint_vertex_constraint_vertex( &mut self, dependency: ConstraintVertex, target: ConstraintVertex, ) -> bool
Source§impl ConstraintGraph
impl ConstraintGraph
pub fn add_dependency_of_constraint_constraint( &mut self, dependency: &mut Constraint, target: &mut Constraint, ) -> bool
Source§impl ConstraintGraph
impl ConstraintGraph
pub fn clear_reverse_dependencies_of(&mut self, vertex: ConstraintVertex)
Source§impl ConstraintGraph
impl ConstraintGraph
pub fn constraint_graph(&mut self, builtin_types: NonNull<BuiltinTypes>)
Source§impl ConstraintGraph
impl ConstraintGraph
pub fn copy_dependencies_of_type_id(&mut self, source: TypeId, target: TypeId)
pub fn copy_dependencies_of_type_pack_id( &mut self, source: TypePackId, target: TypePackId, )
Source§impl ConstraintGraph
impl ConstraintGraph
pub fn copy_dependencies_to_reachable_types( &mut self, original_vertex: Option<ConstraintVertex>, source_dependencies: NonNull<ConstraintList>, mutated_types: TypeIds, mutated_type_packs: TypePackIds, )
Source§impl ConstraintGraph
impl ConstraintGraph
pub fn dump_blocked( &mut self, c: NonNull<Constraint>, opts: &mut ToStringOptions, )
Source§impl ConstraintGraph
impl ConstraintGraph
pub fn dump_with( &mut self, unsolved_constraints: &Vec<NonNull<Constraint>>, opts: &mut ToStringOptions, )
Source§impl ConstraintGraph
impl ConstraintGraph
pub fn find_dependency_list( &mut self, vertex: ConstraintVertex, ) -> NonNull<ConstraintList>
Source§impl ConstraintGraph
impl ConstraintGraph
pub fn find_reverse_dependency_list( &mut self, vertex: ConstraintVertex, ) -> NonNull<ConstraintList>
Source§impl ConstraintGraph
impl ConstraintGraph
pub fn has_strictly_more_than_one_dependency( &mut self, vertex: ConstraintVertex, ) -> bool
Source§impl ConstraintGraph
impl ConstraintGraph
pub fn has_unsolved_dependencies(&mut self, vertex: ConstraintVertex) -> bool
Source§impl ConstraintGraph
impl ConstraintGraph
pub fn inherit_blocks( &mut self, existing_vertex: ConstraintVertex, new_vertex: ConstraintVertex, )
Source§impl ConstraintGraph
impl ConstraintGraph
pub fn repair_type_references_type_id(&mut self, ty: TypeId)
pub fn repair_type_references_type_pack_id(&mut self, ty: TypePackId)
Source§impl ConstraintGraph
impl ConstraintGraph
pub fn shift_references_type_id(&mut self, source: TypeId, target: TypeId)
pub fn shift_references_type_pack_id( &mut self, source: TypePackId, target: TypePackId, )
Source§impl ConstraintGraph
impl ConstraintGraph
pub fn unblock_constraint(&mut self, c: NonNull<Constraint>) -> UnblockedTypes
Source§impl ConstraintGraph
impl ConstraintGraph
pub fn unblock_type_or_pack_type_id(&mut self, vertex: TypeId)
Source§impl ConstraintGraph
impl ConstraintGraph
pub fn unblock_type_or_pack_type_pack_id(&mut self, vertex: TypePackId)
Trait Implementations§
Source§impl Clone for ConstraintGraph
impl Clone for ConstraintGraph
Source§fn clone(&self) -> ConstraintGraph
fn clone(&self) -> ConstraintGraph
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 ConstraintGraph
impl !Sync for ConstraintGraph
impl Freeze for ConstraintGraph
impl RefUnwindSafe for ConstraintGraph
impl Unpin for ConstraintGraph
impl UnsafeUnpin for ConstraintGraph
impl UnwindSafe for ConstraintGraph
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