#[repr(transparent)]pub struct Revision(pub u32);
Expand description
A revision of the UEFI specification.
The major revision number is incremented on major, API-incompatible changes.
The minor revision number is incremented on minor changes, it is stored as a two-digit binary-coded decimal.
§Display format
For major revision 2 and later, if the lower minor digit is zero, the revision is formatted as “major.minor-upper”. Otherwise it’s formatted as “major.minor-upper.minor-lower”. This format is described in the “EFI System Table” section of the UEFI Specification.
Prior to major version 2, the revision is always formatted as “major.minor”, with minor left-padded with zero if minor-upper is zero.
Examples:
assert_eq!(Revision::EFI_1_02.to_string(), "1.02");
assert_eq!(Revision::EFI_1_10.to_string(), "1.10");
assert_eq!(Revision::EFI_2_00.to_string(), "2.0");
assert_eq!(Revision::EFI_2_30.to_string(), "2.3");
assert_eq!(Revision::EFI_2_31.to_string(), "2.3.1");
assert_eq!(Revision::EFI_2_100.to_string(), "2.10");
Tuple Fields§
§0: u32
Implementations§
source§impl Revision
impl Revision
pub const EFI_1_02: Self = _
pub const EFI_1_10: Self = _
pub const EFI_2_00: Self = _
pub const EFI_2_10: Self = _
pub const EFI_2_20: Self = _
pub const EFI_2_30: Self = _
pub const EFI_2_31: Self = _
pub const EFI_2_40: Self = _
pub const EFI_2_50: Self = _
pub const EFI_2_60: Self = _
pub const EFI_2_70: Self = _
pub const EFI_2_80: Self = _
pub const EFI_2_90: Self = _
pub const EFI_2_100: Self = _
Trait Implementations§
source§impl Ord for Revision
impl Ord for Revision
source§impl PartialOrd for Revision
impl PartialOrd for Revision
impl Copy for Revision
impl Eq for Revision
impl StructuralPartialEq for Revision
Auto Trait Implementations§
impl Freeze for Revision
impl RefUnwindSafe for Revision
impl Send for Revision
impl Sync for Revision
impl Unpin for Revision
impl UnwindSafe for Revision
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)