We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
AsRef
TypedName<T>
1 parent 8e35a5a commit 28abe63Copy full SHA for 28abe63
1 file changed
rusty_parser/src/specific/core/var_name.rs
@@ -26,6 +26,18 @@ impl<T: VarType> TypedName<T> {
26
}
27
28
29
+impl<T: VarType> AsRef<BareName> for TypedName<T> {
30
+ fn as_ref(&self) -> &BareName {
31
+ &self.bare_name
32
+ }
33
+}
34
+
35
+impl<T: VarType> AsRef<T> for TypedName<T> {
36
+ fn as_ref(&self) -> &T {
37
+ &self.var_type
38
39
40
41
pub trait VarType: HasExpressionType {
42
fn new_built_in_compact(q: TypeQualifier) -> Self;
43
0 commit comments