summaryrefslogtreecommitdiff
path: root/src/types.hpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2015-04-02 10:32:59 +0800
committerJohn Hodge <tpg@mutabah.net>2015-04-02 10:33:22 +0800
commit8fb0812c4c43f08a51a74e96c369c4ee56616e9a (patch)
tree6c6226c541187988c48b80686bc52cb4a5bf2648 /src/types.hpp
parent7653f1bf6b1d43d43cfd7f199c8346c2f89f5ab3 (diff)
downloadmrust-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.hpp1
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; }