|
|
@ -141,7 +141,8 @@ struct List<'text> {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
impl<'text> List<'text> {
|
|
|
|
impl<'text> List<'text> {
|
|
|
|
pub fn get_interface<'manager>(&'manager mut self) -> Interface<'text, 'manager> {
|
|
|
|
pub fn get_interface<'manager>(&'manager mut self) -> Interface<'text, 'manager>
|
|
|
|
|
|
|
|
where 'text: 'manager {
|
|
|
|
Interface {
|
|
|
|
Interface {
|
|
|
|
manager: &mut self.manager
|
|
|
|
manager: &mut self.manager
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -167,4 +168,4 @@ fn main() {
|
|
|
|
fn use_list(list: &List) {
|
|
|
|
fn use_list(list: &List) {
|
|
|
|
println!("{}", list.manager.text);
|
|
|
|
println!("{}", list.manager.text);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|
|
|
|
```
|
|
|
|