Mike Burr - log

[rust] "What's going on?!", RTFM edition.

I only got so much time! Remember that, you judgmental jerk.

I was surprised my wookie had a from method/constructor/classmethod...

struct FooBanana {
    mmbarr: Vec<u8>,
}

fn main() {
    let fb = FooBanana { mmbarr: vec![0] };
    let mut bf = FooBanana::from(fb); // whaaaa
    println!("Be satisfied, Linter Gods: {}", bf.mmbarr.pop().unwrap());
}

Rust has "blanket implementations" that I didn't quite understand until (possibly) just now. What's going on is...

Don't overthink it! Rust implements these traits for you. Be grateful.

From<T> appears to be one (checks). Yep.