Struct printpdf::LineDashPattern
source · pub struct LineDashPattern {
pub offset: i64,
pub dash_1: Option<i64>,
pub gap_1: Option<i64>,
pub dash_2: Option<i64>,
pub gap_2: Option<i64>,
pub dash_3: Option<i64>,
pub gap_3: Option<i64>,
}
Expand description
Line dash pattern is made up of a total width
Fields§
§offset: i64
Offset at which the dashing pattern should start, measured from the beginning ot the line Default: 0 (start directly where the line starts)
dash_1: Option<i64>
Length of the first dash in the dash pattern. If None
, the line will be solid (good for resetting the dash pattern)
gap_1: Option<i64>
Whitespace after the first dash. If None
, whitespace will be the same as length_1st,
meaning that the line will have dash - whitespace - dash - whitespace in even offsets
dash_2: Option<i64>
Length of the second dash in the dash pattern. If None, will be equal to length_1st
gap_2: Option<i64>
Same as whitespace_1st, but for length_2nd
dash_3: Option<i64>
Length of the second dash in the dash pattern. If None, will be equal to length_1st
gap_3: Option<i64>
Same as whitespace_1st, but for length_3rd
Trait Implementations§
source§impl Clone for LineDashPattern
impl Clone for LineDashPattern
source§fn clone(&self) -> LineDashPattern
fn clone(&self) -> LineDashPattern
Returns a copy 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 LineDashPattern
impl Debug for LineDashPattern
source§impl Default for LineDashPattern
impl Default for LineDashPattern
source§fn default() -> LineDashPattern
fn default() -> LineDashPattern
Returns the “default value” for a type. Read more
source§impl From<LineDashPattern> for (Vec<i64>, i64)
impl From<LineDashPattern> for (Vec<i64>, i64)
source§fn from(val: LineDashPattern) -> Self
fn from(val: LineDashPattern) -> Self
Converts to this type from the input type.
source§impl From<LineDashPattern> for Object
impl From<LineDashPattern> for Object
source§fn from(val: LineDashPattern) -> Self
fn from(val: LineDashPattern) -> Self
Converts to this type from the input type.
source§impl From<LineDashPattern> for Operation
impl From<LineDashPattern> for Operation
source§fn from(val: LineDashPattern) -> Self
fn from(val: LineDashPattern) -> Self
Converts to this type from the input type.
source§impl PartialEq for LineDashPattern
impl PartialEq for LineDashPattern
source§fn eq(&self, other: &LineDashPattern) -> bool
fn eq(&self, other: &LineDashPattern) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for LineDashPattern
impl StructuralPartialEq for LineDashPattern
Auto Trait Implementations§
impl RefUnwindSafe for LineDashPattern
impl Send for LineDashPattern
impl Sync for LineDashPattern
impl Unpin for LineDashPattern
impl UnwindSafe for LineDashPattern
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