#[repr(transparent)]pub struct HashVersion(pub u32);
Expand description
HASH engine HW version
Tuple Fields§
§0: u32
Implementations§
Source§impl HashVersion
impl HashVersion
pub const fn patch(&self) -> u8
pub fn set_patch(&mut self, val: u8)
Sourcepub const fn minor_version_number(&self) -> u8
pub const fn minor_version_number(&self) -> u8
Minor version number
Sourcepub fn set_minor_version_number(&mut self, val: u8)
pub fn set_minor_version_number(&mut self, val: u8)
Minor version number
Sourcepub const fn major_version_number(&self) -> u8
pub const fn major_version_number(&self) -> u8
Major version number
Sourcepub fn set_major_version_number(&mut self, val: u8)
pub fn set_major_version_number(&mut self, val: u8)
Major version number
Trait Implementations§
Source§impl Clone for HashVersion
impl Clone for HashVersion
Source§fn clone(&self) -> HashVersion
fn clone(&self) -> HashVersion
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 Default for HashVersion
impl Default for HashVersion
Source§fn default() -> HashVersion
fn default() -> HashVersion
Returns the “default value” for a type. Read more
Source§impl PartialEq for HashVersion
impl PartialEq for HashVersion
impl Copy for HashVersion
impl Eq for HashVersion
impl StructuralPartialEq for HashVersion
Auto Trait Implementations§
impl Freeze for HashVersion
impl RefUnwindSafe for HashVersion
impl Send for HashVersion
impl Sync for HashVersion
impl Unpin for HashVersion
impl UnwindSafe for HashVersion
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
)