[][src]Struct uefi::table::Revision

pub struct Revision(_);

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.

Implementations

impl Revision[src]

pub fn new(major: u16, minor: u16) -> Self[src]

Creates a new revision.

pub fn major(self) -> u16[src]

Returns the major revision.

pub fn minor(self) -> u16[src]

Returns the minor revision.

Trait Implementations

impl Clone for Revision[src]

impl Copy for Revision[src]

impl Debug for Revision[src]

pub fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the revision in the major.minor.patch format.

impl Eq for Revision[src]

impl Ord for Revision[src]

impl PartialEq<Revision> for Revision[src]

impl PartialOrd<Revision> for Revision[src]

impl StructuralEq for Revision[src]

impl StructuralPartialEq for Revision[src]

Auto Trait Implementations

impl Send for Revision

impl Sync for Revision

impl Unpin for Revision

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.