Created
August 2, 2014 01:56
-
-
Save steveklabnik/8045b0f1f2c8e1c3df18 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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