Skip to content

Instantly share code, notes, and snippets.

@rust-play
rust-play / playground.rs
Created April 4, 2019 02:40
Code shared from the Rust Playground
/// Colors are stored in RGBA format
/// The first byte is R, the second byte is G, etc.
#[derive(Debug)]
struct Color(u32);
#[derive(Debug)]
struct RelDimen {
x:i16, y:i16, w:i16, h:i16
}