Feature gate
This commit is contained in:
parent
f50c1e1f05
commit
fb9ca9223d
6 changed files with 73 additions and 6 deletions
|
@ -174,6 +174,10 @@ impl GenericArgs {
|
|||
matches!(self, AngleBracketed(..))
|
||||
}
|
||||
|
||||
pub fn is_parenthesized(&self) -> bool {
|
||||
matches!(self, Parenthesized(..))
|
||||
}
|
||||
|
||||
pub fn span(&self) -> Span {
|
||||
match self {
|
||||
AngleBracketed(data) => data.span,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue