ireko/src/guid.rs

18 lines
409 B
Rust
Raw Normal View History

use std::fmt;
use binrw::binrw;
// See https://dev.epicgames.com/documentation/en-us/unreal-engine/API/Runtime/Core/Misc/FGuid
#[binrw]
pub struct Guid {
pub a: u32,
pub b: u32,
pub c: u32,
pub d: u32
}
impl fmt::Debug for Guid {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.write_str(&format!("{:02X}{:02X}{:02X}{:02X}", self.a, self.b, self.c, self.d))
}
}