18 lines
409 B
Rust
18 lines
409 B
Rust
|
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))
|
||
|
}
|
||
|
}
|