cool stuff

This commit is contained in:
2022-10-24 14:03:21 +02:00
parent 478673327b
commit ac8718f1af
2 changed files with 48 additions and 10 deletions

View File

@ -279,6 +279,17 @@ impl EventU32 {
},
}
}
pub const fn const_from_info(event: EventU32TypedSev<SeverityInfo>) -> Self {
Self {
base: event.event.base
}
}
pub const fn const_from_medium(event: EventU32TypedSev<SeverityMedium>) -> Self {
Self {
base: event.event.base
}
}
}
impl<SEVERITY: HasSeverity> EventU32TypedSev<SEVERITY> {