diff options
author | John Hodge <tpg@mutabah.net> | 2015-04-02 10:32:59 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2015-04-02 10:33:22 +0800 |
commit | 8fb0812c4c43f08a51a74e96c369c4ee56616e9a (patch) | |
tree | 6c6226c541187988c48b80686bc52cb4a5bf2648 /src/types.hpp | |
parent | 7653f1bf6b1d43d43cfd7f199c8346c2f89f5ab3 (diff) | |
download | mrust-8fb0812c4c43f08a51a74e96c369c4ee56616e9a.tar.gz |
Hacked up handling of Sized (handled VERY similar to other .. traits)
Diffstat (limited to 'src/types.hpp')
-rw-r--r-- | src/types.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/types.hpp b/src/types.hpp index 443f9912..7c026500 100644 --- a/src/types.hpp +++ b/src/types.hpp @@ -175,6 +175,7 @@ public: bool is_wildcard() const { return m_class == ANY; }
bool is_unit() const { return m_class == UNIT; }
+ bool is_primitive() const { return m_class == PRIMITIVE; }
bool is_path() const { return m_class == PATH; }
bool is_type_param() const { return m_class == GENERIC; }
bool is_reference() const { return m_class == REFERENCE; }
|