diff options
author | Ville Penttinen <[email protected]> | 2019-03-31 08:56:48 +0100 |
---|---|---|
committer | Ville Penttinen <[email protected]> | 2019-03-31 08:56:48 +0100 |
commit | 55dcdb7d094f473c73f87ecf997b24f8e35f2a5e (patch) | |
tree | 996d113c7be91d4f0f96abc7764fd2d5f14ca921 /crates/ra_syntax/src/ast.rs | |
parent | 245c0d85840b3ef6e969e1a6786bdfb5285b0cea (diff) |
Add trait ast::TypeBoundsOwner
Diffstat (limited to 'crates/ra_syntax/src/ast.rs')
-rw-r--r-- | crates/ra_syntax/src/ast.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crates/ra_syntax/src/ast.rs b/crates/ra_syntax/src/ast.rs index a6fac07c4..4fddc00ea 100644 --- a/crates/ra_syntax/src/ast.rs +++ b/crates/ra_syntax/src/ast.rs | |||
@@ -110,6 +110,12 @@ pub trait TypeParamsOwner: AstNode { | |||
110 | } | 110 | } |
111 | } | 111 | } |
112 | 112 | ||
113 | pub trait TypeBoundsOwner: AstNode { | ||
114 | fn type_bound_list(&self) -> Option<&TypeBoundList> { | ||
115 | child_opt(self) | ||
116 | } | ||
117 | } | ||
118 | |||
113 | pub trait AttrsOwner: AstNode { | 119 | pub trait AttrsOwner: AstNode { |
114 | fn attrs(&self) -> AstChildren<Attr> { | 120 | fn attrs(&self) -> AstChildren<Attr> { |
115 | children(self) | 121 | children(self) |