This commit is contained in:
parent
d195b4927b
commit
002be12102
@ -44,11 +44,14 @@ impl<'a, F: FnMut(String)> Linked<'a, F> {
|
|||||||
let mut value = node.value.to_string();
|
let mut value = node.value.to_string();
|
||||||
while let Some(next) = node.next {
|
while let Some(next) = node.next {
|
||||||
value += next.value;
|
value += next.value;
|
||||||
# /*
|
# impl<'a, F: FnMut(String)> Linked<'a, F> { fn ___(&mut self) { trait Callback { fn callback(&mut self, value: String); }
|
||||||
|
# impl<'a, F: FnMut(String)> Callback for Linked<'a, F> { fn callback(&mut self, value: String) { (self.callback)(value); } }
|
||||||
|
# { let mut node = 1; let next = 2;
|
||||||
node = next;
|
node = next;
|
||||||
}
|
}
|
||||||
|
# let value = unimplemented!();
|
||||||
self.callback(value);
|
self.callback(value);
|
||||||
# */
|
# } }
|
||||||
# node = *next; }
|
# node = *next; }
|
||||||
# (self.callback)(value);
|
# (self.callback)(value);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user