]>
git.proxmox.com Git - rustc.git/blob - src/doc/book/listings/ch15-smart-pointers/listing-15-25/src/main.rs
1 use crate::List
::{Cons, Nil}
;
2 use std
::cell
::RefCell
;
7 Cons(i32, RefCell
<Rc
<List
>>),
12 fn tail(&self) -> Option
<&RefCell
<Rc
<List
>>> {
14 Cons(_
, item
) => Some(item
),