Skip to content

Commit 55fbb95

Browse files
committed
trie: inline the other TrieSet wrapper methods
1 parent 04e367b commit 55fbb95

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/libcore/trie.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,12 +161,15 @@ pub struct TrieSet {
161161

162162
impl BaseIter<uint> for TrieSet {
163163
/// Visit all values in order
164+
#[inline(always)]
164165
fn each(&self, f: &fn(&uint) -> bool) { self.map.each_key(f) }
166+
#[inline(always)]
165167
fn size_hint(&self) -> Option<uint> { Some(self.len()) }
166168
}
167169

168170
impl ReverseIter<uint> for TrieSet {
169171
/// Visit all values in reverse order
172+
#[inline(always)]
170173
fn each_reverse(&self, f: &fn(&uint) -> bool) {
171174
self.map.each_key_reverse(f)
172175
}

0 commit comments

Comments
 (0)