summaryrefslogtreecommitdiff
path: root/src/types.hpp
diff options
context:
space:
mode:
authorJohn Hodge (sonata) <tpg@mutabah.net>2015-01-23 14:18:25 +0800
committerJohn Hodge (sonata) <tpg@mutabah.net>2015-01-23 14:18:25 +0800
commit175b02f7934d574778c87028edc9a6ebb97d690c (patch)
treeb0a338ffdfa03016d3212e112192cfb396f7ea75 /src/types.hpp
parent450d55d26e0265858f60f5a118aac72cf392495f (diff)
downloadmrust-175b02f7934d574778c87028edc9a6ebb97d690c.tar.gz
Autoderef on method lookup, further provements to method lookup
Diffstat (limited to 'src/types.hpp')
-rw-r--r--src/types.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/types.hpp b/src/types.hpp
index b40c9424..2cbbd0bb 100644
--- a/src/types.hpp
+++ b/src/types.hpp
@@ -126,6 +126,8 @@ public:
m_inner_types( {::std::move(base), ::std::move(trait)} )
{}
+ /// Dereference the type (return the result of *type_instance)
+ bool deref(bool is_implicit);
/// Merge with another type (combines known aspects, conflitcs cause an exception)
void merge_with(const TypeRef& other);
/// Replace 'GENERIC' entries with the return value of the closure