We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3cff541 commit 176e2a3Copy full SHA for 176e2a3
src/lib.rs
@@ -140,7 +140,7 @@ extern crate alloc;
140
141
use alloc::{
142
string::{String, ToString},
143
- vec::Vec,
+ vec::{IntoIter, Vec},
144
};
145
use core::{slice::Iter, str::from_utf8};
146
use smallvec::SmallVec;
@@ -262,6 +262,10 @@ impl<T> PathTree<T> {
262
pub fn iter(&self) -> Iter<'_, (T, Vec<Piece>)> {
263
self.routes.iter()
264
}
265
+
266
+ pub fn into_iter(self) -> IntoIter<(T, Vec<Piece>)> {
267
+ self.routes.into_iter()
268
+ }
269
270
271
/// Matched route path infomation.
0 commit comments