pub struct Dashes {
pub offset: f64,
pub pattern: Option<Vec<f64>>,
}Expand description
A dash pattern in points: alternating on/off lengths starting at
offset (matplotlib’s (offset, dash_list) of a graphics context).
A line without a dash list and one with an empty list both draw solid, but the SVG, PDF and PGF backends write an empty list where they write none for no list, as matplotlib does.
use pltrs_render::Dashes;
assert!(Dashes::solid().is_solid() && Dashes::new(0.0, Vec::new()).is_solid());
assert_ne!(Dashes::solid(), Dashes::new(0.0, Vec::new()));
assert!(!Dashes::new(1.0, vec![3.0, 1.0]).is_solid());Fields§
§offset: f64Distance into the pattern at which the stroke starts.
pattern: Option<Vec<f64>>On/off lengths, or None for no dash list (matplotlib’s None).
Implementations§
Trait Implementations§
impl StructuralPartialEq for Dashes
Auto Trait Implementations§
impl Forget for Dashes
impl Freeze for Dashes
impl Move for Dashes
impl RefUnwindSafe for Dashes
impl Send for Dashes
impl Sync for Dashes
impl Unpin for Dashes
impl UnsafeUnpin for Dashes
impl UnwindSafe for Dashes
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