mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +00:00
20 lines
328 B
Rust
20 lines
328 B
Rust
#![crate_type = "lib"]
|
|
|
|
pub struct TreeBuilder<H> { pub h: H }
|
|
|
|
impl<H> TreeBuilder<H> {
|
|
pub fn process_token(&mut self) {
|
|
match self {
|
|
_ => for _y in self.by_ref() {}
|
|
}
|
|
}
|
|
}
|
|
|
|
impl<H> Iterator for TreeBuilder<H> {
|
|
type Item = H;
|
|
|
|
fn next(&mut self) -> Option<H> {
|
|
None
|
|
}
|
|
}
|