pub struct VariantPartNumber { /* private fields */ }Expand description
The part number is composed of a project number (5-6 digits) and version number (3 digits) with an optional Check sum digit in the middle. Please see the following table for expected values.
Implementations§
Source§impl VariantPartNumber
impl VariantPartNumber
Sourcepub const LEN: usize = 9usize
pub const LEN: usize = 9usize
The length (in bytes) of the VariantPartNumber.
Sourcepub const fn new(project_number: ProjectNumber, version: PartVersion) -> Self
pub const fn new(project_number: ProjectNumber, version: PartVersion) -> Self
Creates a new VariantPartNumber.
pub const fn default() -> Self
Trait Implementations§
Source§impl Clone for VariantPartNumber
impl Clone for VariantPartNumber
Source§fn clone(&self) -> VariantPartNumber
fn clone(&self) -> VariantPartNumber
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 VariantPartNumber
impl Debug for VariantPartNumber
Source§impl Display for VariantPartNumber
impl Display for VariantPartNumber
Source§impl From<&[u8]> for VariantPartNumber
impl From<&[u8]> for VariantPartNumber
Source§impl PartialEq for VariantPartNumber
impl PartialEq for VariantPartNumber
impl Copy for VariantPartNumber
impl StructuralPartialEq for VariantPartNumber
Auto Trait Implementations§
impl Freeze for VariantPartNumber
impl RefUnwindSafe for VariantPartNumber
impl Send for VariantPartNumber
impl Sync for VariantPartNumber
impl Unpin for VariantPartNumber
impl UnwindSafe for VariantPartNumber
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