You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
174 B
10 lines
174 B
3 years ago
|
use uuid::Uuid;
|
||
|
|
||
|
fn main() {
|
||
|
let my_uuid = Uuid::new_v4();
|
||
|
println!("{}", &my_uuid);
|
||
|
|
||
|
let (major, _, _, _) = my_uuid.as_fields();
|
||
|
println!("{:x}", &major);
|
||
|
}
|