Skip to content

Instantly share code, notes, and snippets.

View tanner00's full-sized avatar
🍀

Tanner Willis tanner00

🍀
View GitHub Profile
anonymous
anonymous / playground.rs
Created November 27, 2017 01:46
Rust code shared from the playground
use std::rc::{Rc, Weak};
use std::cell::RefCell;
#[derive(Debug)]
struct Node {
me: RefCell<String>,
children: Option<Vec<Node>>,
parent: Option<Weak<Node>>,
}
anonymous
anonymous / playground.rs
Created November 27, 2017 01:44
Rust code shared from the playground
use std::rc::{Rc, Weak};
use std::cell::RefCell;
#[derive(Debug)]
struct Node {
me: RefCell<String>,
children: Option<Vec<Node>>,
parent: Option<Weak<Node>>,
}