pub struct SMBiosVersion {
pub major: u8,
pub minor: u8,
pub revision: u8,
}
Expand description
§Version of SMBIOS Structure
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 for SMBiosVersion
impl PartialEq for SMBiosVersion
Source§impl PartialOrd for SMBiosVersion
impl PartialOrd for SMBiosVersion
Source§impl Serialize for SMBiosVersion
impl Serialize for SMBiosVersion
impl Copy for SMBiosVersion
impl Eq for SMBiosVersion
impl StructuralPartialEq for SMBiosVersion
Auto Trait Implementations§
impl Freeze for SMBiosVersion
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