Fix w/ comments
This commit is contained in:
parent
c654e4d6f4
commit
78fb74a600
40 changed files with 281 additions and 199 deletions
|
@ -2165,6 +2165,12 @@ impl TypeBinding<'_> {
|
|||
_ => panic!("expected equality type binding for parenthesized generic args"),
|
||||
}
|
||||
}
|
||||
pub fn opt_const(&self) -> Option<&'_ AnonConst> {
|
||||
match self.kind {
|
||||
TypeBindingKind::Equality { term: Term::Const(ref c) } => Some(c),
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue