pub struct BarCoordinate {
pub x: u32,
pub width: u8,
}Expand description
A coordinate of a bar in a barcode.
Fields§
§x: u32The x coordinate, started from the left.
The first bar will always be at 10, which is the offset for the left quiet zone.
width: u8The width of the bar.
Trait Implementations§
Source§impl Clone for BarCoordinate
impl Clone for BarCoordinate
Source§fn clone(&self) -> BarCoordinate
fn clone(&self) -> BarCoordinate
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 BarCoordinate
impl Debug for BarCoordinate
Source§impl PartialEq for BarCoordinate
impl PartialEq for BarCoordinate
impl Copy for BarCoordinate
impl StructuralPartialEq for BarCoordinate
Auto Trait Implementations§
impl Freeze for BarCoordinate
impl RefUnwindSafe for BarCoordinate
impl Send for BarCoordinate
impl Sync for BarCoordinate
impl Unpin for BarCoordinate
impl UnwindSafe for BarCoordinate
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