Expand description
Overload resolution for builtin functions.
This module defines the OverloadSet trait, which provides methods the
validator and typifier can use to check the types to builtin functions,
determine their result types, and produce diagnostics that explain why a given
application is not allowed and suggest fixes.
You can call MathFunction::overloads to obtain an impl OverloadSet
representing the given MathFunctionโs overloads.
Re-exportsยง
pub use rule::Conclusion;pub use rule::MissingSpecialType;pub use rule::Rule;
Modulesยง
- any_
overload_ ๐set - Dynamically dispatched
OverloadSets. - constructor_
set ๐ - A set of type constructors, represented as a bitset.
- list ๐
- An
OverloadSetrepresented as a vector of rules. - mathfunction ๐
- Overload sets for
ir::MathFunction. - one_
bits_ ๐iter - An iterator over bitmasks.
- regular ๐
- A representation for highly regular overload sets common in Naga IR.
- rule ๐
- Type rules.
- scalar_
set ๐ - A set of scalar types, represented as a bitset.
- utils ๐
- Utility functions for constructing
Listoverload sets.
Traitsยง
- Overload
Set - A trait for types representing of a set of Naga IR type rules.