diff options
author | John Hodge (sonata) <tpg@mutabah.net> | 2015-01-18 13:48:31 +0800 |
---|---|---|
committer | John Hodge (sonata) <tpg@mutabah.net> | 2015-01-18 13:48:31 +0800 |
commit | 0e61ec5eafddb980eac2d6577b2e20af9aceae02 (patch) | |
tree | 95fb1a34f87be3ca9fea1f75bf1a6cf70d878577 /src/ast/ast.hpp | |
parent | ba61031285402285e88a16f3788c20f455acc8e3 (diff) | |
download | mrust-0e61ec5eafddb980eac2d6577b2e20af9aceae02.tar.gz |
Up to requiring checks for trait implementations
Diffstat (limited to 'src/ast/ast.hpp')
-rw-r--r-- | src/ast/ast.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ast/ast.hpp b/src/ast/ast.hpp index 20d28467..579cb058 100644 --- a/src/ast/ast.hpp +++ b/src/ast/ast.hpp @@ -68,9 +68,11 @@ public: { }
bool is_trait() const { return m_lifetime == ""; }
- TypeRef& type() { return m_trait; }
+ const ::std::string& name() const { return m_argname; }
const TypeRef& type() const { return m_trait; }
+ TypeRef& type() { return m_trait; }
+
friend ::std::ostream& operator<<(::std::ostream& os, const GenericBound& x);
SERIALISABLE_PROTOTYPES();
};
|