Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- use std::cell::RefCell;
- use std::rc::Rc;
- pub struct Item<T> {
- pub value: T,
- pub next: Option<Box<Item<T>>>
- }
- impl<T> Item<T> where T: PartialEq {
- pub fn new(val: T) -> Item<T> {
- Item {
- value: val,
- next: None
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement