pub struct Version {
pub major: u8,
pub minor: u8,
pub patch: u8,
}Expand description
Represents a version number as used for the bootloader firmware version.
Fields§
§major: u8The major version, incremented for breaking changes.
minor: u8The minor versions, incremented when features are added in a backwards-compatible manner.
patch: u8The patch version, incremented for backwards-compatible bug fixes.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Version
impl RefUnwindSafe for Version
impl Send for Version
impl Sync for Version
impl Unpin for Version
impl UnsafeUnpin for Version
impl UnwindSafe for Version
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