mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 11:59:49 +00:00
Add trait ast::TypeBoundsOwner
This commit is contained in:
parent
245c0d8584
commit
55dcdb7d09
3 changed files with 21 additions and 5 deletions
|
@ -110,6 +110,12 @@ pub trait TypeParamsOwner: AstNode {
|
|||
}
|
||||
}
|
||||
|
||||
pub trait TypeBoundsOwner: AstNode {
|
||||
fn type_bound_list(&self) -> Option<&TypeBoundList> {
|
||||
child_opt(self)
|
||||
}
|
||||
}
|
||||
|
||||
pub trait AttrsOwner: AstNode {
|
||||
fn attrs(&self) -> AstChildren<Attr> {
|
||||
children(self)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue