trie: make impl pub

This commit is contained in:
Daniel Micay 2013-03-21 17:49:55 -04:00
parent 9814d0d412
commit 5d4063083b

View File

@ -136,15 +136,13 @@ impl<T> Map<uint, T> for TrieMap<T> {
}
}
impl<T> TrieMap<T> {
pub impl<T> TrieMap<T> {
/// Create an empty TrieMap
#[inline(always)]
static pure fn new() -> TrieMap<T> {
TrieMap{root: TrieNode::new(), length: 0}
}
}
impl<T> TrieMap<T> {
/// Visit all keys in reverse order
#[inline(always)]
pure fn each_key_reverse(&self, f: &fn(&uint) -> bool) {