Use a side-table of consts instead of matching on the DepKind enum.
This commit is contained in:
parent
d1220fdedf
commit
016ea6b319
2 changed files with 48 additions and 2 deletions
|
@ -61,7 +61,7 @@ pub trait DepContext: Copy {
|
|||
}
|
||||
|
||||
/// Describe the different families of dependency nodes.
|
||||
pub trait DepKind: Copy + fmt::Debug + Eq + Ord + Hash {
|
||||
pub trait DepKind: Copy + fmt::Debug + Eq + Hash {
|
||||
const NULL: Self;
|
||||
|
||||
/// Return whether this kind always require evaluation.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue