Expand description
Auto-generated module
🤖 Generated with SplitRS
Traits§
- Instance
Resolver - A trait object for custom instance resolution strategies.
Functions§
- all_
method_ pairs - Return all (class_name, method_name) pairs in the registry.
- build_
class_ hierarchy - Build the full class hierarchy graph from a registry.
- build_
method_ projection - Build the projection term for the n-th method of a class.
- class_
has_ instance - Check whether a class exists and has at least one registered instance.
- class_
name_ of_ constraint - Extract the class name from a constraint expression.
- classes_
equal - Check whether two class names are the same.
- classes_
without_ instances - Count the number of classes with zero registered instances.
- complete_
instances - Find all instances that are complete (implement every method declared by the class).
- default_
registry - Build a default registry with common built-in classes.
- describe_
registry - Print a human-readable summary of all classes and instances.
- find_
method_ impl - Search for a method implementation across all matching instances.
- has_
higher_ priority - Check whether an instance has priority strictly higher than another.
- instance_
is_ complete - Check if an instance covers (implements) all required methods.
- instance_
subsumes - Check whether an instance subsumes another (has a more general pattern).
- instance_
summary - Return a human-readable summary of an
Instance. - instances_
compatible - Check whether two instances are compatible (same class, overlapping params).
- instances_
match - Check whether two type expressions are compatible for instance matching.
- is_
ancestor - Check whether
ancestoris an ancestor ofdescendantin the class hierarchy. - is_
class_ constraint - Check whether an expression is a type class constraint application.
- is_
prop_ class - Check whether the given class name is a “pure Prop” class.
- merge_
registries - Merge two registries together (second registry overrides on conflicts).
- methods_
of - Return all methods for a class, or an empty slice if the class is unknown.
- register_
add - Register the built-in
Addclass in the given registry. - register_
heq - Register the
HEq(heterogeneous equality) class placeholder. - register_
inhabited - Register the built-in
Inhabitedclass in the given registry. - register_
marker - Register a simple zero-method marker class (like
Nonempty). - register_
mul - Register the built-in
Mulclass in the given registry. - shared_
methods - Return method names shared between two classes.
- total_
method_ impls - Count the total number of method implementations across all instances.
- transitive_
supers - Get all super-class names required by a class, transitively.
- typeclass_
summary - Return a human-readable summary of a
TypeClass. - validate_
registry - Validate that all instances in the registry reference known classes.