pub enum DiagonalOrientation {
RightLeaning,
LeftLeaning,
}Expand description
Orientation of a diagonal line.
Applies to LabelBuilder::add_graphical_diagonal_line.
The orientation describes the direction the line runs within its bounding box.
This is a separate type from Orientation because the ZPL ^GD command
uses R and L rather than the N/R/I/B values used by other elements.
Variants§
RightLeaning
Line runs from the top-left corner to the bottom-right corner ( \ ).
LeftLeaning
Line runs from the bottom-left corner to the top-right corner ( / ).
Trait Implementations§
Source§impl Clone for DiagonalOrientation
impl Clone for DiagonalOrientation
Source§fn clone(&self) -> DiagonalOrientation
fn clone(&self) -> DiagonalOrientation
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 DiagonalOrientation
impl Debug for DiagonalOrientation
Source§impl Display for DiagonalOrientation
impl Display for DiagonalOrientation
Source§impl PartialEq for DiagonalOrientation
impl PartialEq for DiagonalOrientation
impl Copy for DiagonalOrientation
impl StructuralPartialEq for DiagonalOrientation
Auto Trait Implementations§
impl Freeze for DiagonalOrientation
impl RefUnwindSafe for DiagonalOrientation
impl Send for DiagonalOrientation
impl Sync for DiagonalOrientation
impl Unpin for DiagonalOrientation
impl UnsafeUnpin for DiagonalOrientation
impl UnwindSafe for DiagonalOrientation
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