use std::cell::RefCell;
use std::rc::{Rc, Weak};
use std::thread;

struct Node {
    parent: Weak<RefCell<Node>>,
    payload: Vec<u8>,
}

static COUNTER: usize = 0;

fn split_bytes(bytes: &[u8]) -> &[u8] {
    bytes.split_at(2).1
}

fn utf8_from_raw(bytes: &[u8]) -> Result<&str, std::str::Utf8Error> {
    std::str::from_utf8(bytes)
}

fn thread_plain() {
    thread::spawn(|| {
        do_work();
    });
}
