pub struct ImageVersion {
pub major: u8,
pub minor: u8,
pub revision: u16,
pub build_num: u32,
}Expand description
The firmware version
Fields§
§major: u8Major version
minor: u8Minor version
revision: u16Revision
build_num: u32Build number
Trait Implementations§
Source§impl Clone for ImageVersion
impl Clone for ImageVersion
Source§fn clone(&self) -> ImageVersion
fn clone(&self) -> ImageVersion
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ImageVersion
impl Debug for ImageVersion
Source§impl Display for ImageVersion
impl Display for ImageVersion
Source§impl PartialEq for ImageVersion
impl PartialEq for ImageVersion
Source§fn eq(&self, other: &ImageVersion) -> bool
fn eq(&self, other: &ImageVersion) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ImageVersion
impl Eq for ImageVersion
impl StructuralPartialEq for ImageVersion
Auto Trait Implementations§
impl Freeze for ImageVersion
impl RefUnwindSafe for ImageVersion
impl Send for ImageVersion
impl Sync for ImageVersion
impl Unpin for ImageVersion
impl UnsafeUnpin for ImageVersion
impl UnwindSafe for ImageVersion
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more