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
OverloadSet
s. - constructor_
set 🔒 - A set of type constructors, represented as a bitset.
- list 🔒
- An
OverloadSet
represented 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
List
overload sets.
Traits§
- Overload
Set - A trait for types representing of a set of Naga IR type rules.