pub struct PartVersion(/* private fields */);Expand description
The Boot Version number.
Formatted as the 3-digit ASCII string divided by one hundred.
Example:
let version = PartVersion::from(b"123");
let formatted_version = version.as_string();
assert_eq!(formatted_version, "V1.23");Implementations§
Source§impl PartVersion
impl PartVersion
Trait Implementations§
Source§impl Clone for PartVersion
impl Clone for PartVersion
Source§fn clone(&self) -> PartVersion
fn clone(&self) -> PartVersion
Returns a duplicate 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 PartVersion
impl Debug for PartVersion
Source§impl Display for PartVersion
impl Display for PartVersion
Source§impl From<&[u8]> for PartVersion
impl From<&[u8]> for PartVersion
Source§impl PartialEq for PartVersion
impl PartialEq for PartVersion
impl Copy for PartVersion
impl StructuralPartialEq for PartVersion
Auto Trait Implementations§
impl Freeze for PartVersion
impl RefUnwindSafe for PartVersion
impl Send for PartVersion
impl Sync for PartVersion
impl Unpin for PartVersion
impl UnwindSafe for PartVersion
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