Struct smbioslib::SMBiosVersion
source · pub struct SMBiosVersion {
pub major: u8,
pub minor: u8,
pub revision: u8,
}
Expand description
Fields§
§major: u8
SMBIOS major version
minor: u8
SMBIOS minor version
revision: u8
SMBIOS version revision
Implementations§
source§impl SMBiosVersion
impl SMBiosVersion
sourcepub fn new(major: u8, minor: u8, revision: u8) -> SMBiosVersion
pub fn new(major: u8, minor: u8, revision: u8) -> SMBiosVersion
Creates a new SMBiosVersion struct
Trait Implementations§
source§impl Clone for SMBiosVersion
impl Clone for SMBiosVersion
source§fn clone(&self) -> SMBiosVersion
fn clone(&self) -> SMBiosVersion
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SMBiosVersion
impl Debug for SMBiosVersion
source§impl Ord for SMBiosVersion
impl Ord for SMBiosVersion
source§impl PartialEq<SMBiosVersion> for SMBiosVersion
impl PartialEq<SMBiosVersion> for SMBiosVersion
source§fn eq(&self, other: &SMBiosVersion) -> bool
fn eq(&self, other: &SMBiosVersion) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<SMBiosVersion> for SMBiosVersion
impl PartialOrd<SMBiosVersion> for SMBiosVersion
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for SMBiosVersion
impl Serialize for SMBiosVersion
impl Copy for SMBiosVersion
impl Eq for SMBiosVersion
impl StructuralEq for SMBiosVersion
impl StructuralPartialEq for SMBiosVersion
Auto Trait Implementations§
impl RefUnwindSafe for SMBiosVersion
impl Send for SMBiosVersion
impl Sync for SMBiosVersion
impl Unpin for SMBiosVersion
impl UnwindSafe for SMBiosVersion
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