Struct smbioslib::SMBiosVersion
source · [−]Expand description
Fields
major: u8
SMBIOS major version
minor: u8
SMBIOS minor version
revision: u8
SMBIOS version revision
Implementations
sourceimpl 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
sourceimpl Clone for SMBiosVersion
impl Clone for SMBiosVersion
sourcefn clone(&self) -> SMBiosVersion
fn clone(&self) -> SMBiosVersion
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SMBiosVersion
impl Debug for SMBiosVersion
sourceimpl Ord for SMBiosVersion
impl Ord for SMBiosVersion
sourceimpl PartialEq<SMBiosVersion> for SMBiosVersion
impl PartialEq<SMBiosVersion> for SMBiosVersion
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &SMBiosVersion) -> bool
fn ne(&self, other: &SMBiosVersion) -> bool
This method tests for !=
.
sourceimpl PartialOrd<SMBiosVersion> for SMBiosVersion
impl PartialOrd<SMBiosVersion> for SMBiosVersion
sourcefn partial_cmp(&self, other: &Self) -> Option<Ordering>
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 more
sourceimpl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more