Skip to content

Instantly share code, notes, and snippets.

@steveklabnik
Created August 2, 2014 01:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steveklabnik/8045b0f1f2c8e1c3df18 to your computer and use it in GitHub Desktop.
Save steveklabnik/8045b0f1f2c8e1c3df18 to your computer and use it in GitHub Desktop.
let my_uuid = Uuid::parse_string("2665534263e644278f31ca69774af957").ok().expect("Parsing uuid failed");
let mut bdata = HashMap::new();
bdata.insert(Uuid::new_v4(), BlockDataString("Test".to_string()));
bdata.insert(Uuid::new_v4(), BlockDataInt(1337));
let my_block = Block{ id: my_uuid, data: box bdata };
log(&my_block);
let my_uuid = Uuid::parse_string("2665534263e644278f31ca69774af957").ok().expect("Parsing uuid failed");
let mut bdata = HashMap::new();
bdata.insert(Uuid::new_v4(), BlockDataString("Test".to_string()));
bdata.insert(Uuid::new_v4(), BlockDataInt(1337));
let my_block = Block{ id: my_uuid, data: box bdata };
log(&my_block);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment