|
|
|
@ -141,7 +141,8 @@ struct 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 {
|
|
|
|
|
manager: &mut self.manager
|
|
|
|
|
}
|
|
|
|
@ -167,4 +168,4 @@ fn main() {
|
|
|
|
|
fn use_list(list: &List) {
|
|
|
|
|
println!("{}", list.manager.text);
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
```
|
|
|
|
|