pub struct LineDashPattern {
pub array: Vec<f64>,
pub phase: f64,
}Expand description
Line dash pattern specification
Fields§
§array: Vec<f64>Array of dash and gap lengths
phase: f64Phase offset
Implementations§
Source§impl LineDashPattern
impl LineDashPattern
Sourcepub fn to_pdf_string(&self) -> String
pub fn to_pdf_string(&self) -> String
Generate PDF representation of the line dash pattern.
Non-finite components (NaN / ±inf) are clamped to 0.0 via the
shared finite_or_zero helper (issue #220 / Phase 5 of the
v2.7.0 IR refactor) so the emitted d operator never contains
invalid PDF numeric tokens per ISO 32000-1 §7.3.3.
Trait Implementations§
Source§impl Clone for LineDashPattern
impl Clone for LineDashPattern
Source§fn clone(&self) -> LineDashPattern
fn clone(&self) -> LineDashPattern
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PartialEq for LineDashPattern
impl PartialEq for LineDashPattern
Source§fn eq(&self, other: &LineDashPattern) -> bool
fn eq(&self, other: &LineDashPattern) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LineDashPattern
Auto Trait Implementations§
impl Freeze for LineDashPattern
impl RefUnwindSafe for LineDashPattern
impl Send for LineDashPattern
impl Sync for LineDashPattern
impl Unpin for LineDashPattern
impl UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more