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§
- Dynamically dispatched
OverloadSet
s. - A set of type constructors, represented as a bitset.
- list 🔒An
OverloadSet
represented as a vector of rules. - Overload sets for
ir::MathFunction
. - An iterator over bitmasks.
- regular 🔒A representation for highly regular overload sets common in Naga IR.
- rule 🔒Type rules.
- A set of scalar types, represented as a bitset.
- utils 🔒Utility functions for constructing
List
overload sets.
Traits§
- A trait for types representing of a set of Naga IR type rules.