feat (format): add FormatModifier.fromU64
This commit is contained in:
@@ -157,6 +157,10 @@ pub const FormatModifier = packed struct(u64) {
|
||||
raw: u56,
|
||||
vendor: Vendor,
|
||||
|
||||
pub inline fn fromU64(raw: u64) FormatModifier {
|
||||
return @bitCast(raw);
|
||||
}
|
||||
|
||||
pub inline fn toU64(self: FormatModifier) u64 {
|
||||
return @bitCast(self);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user