pub enum PresetLineDashVal {
Solid,
Dot,
Dash,
LargeDash,
DashDot,
LargeDashDot,
LargeDashDotDot,
SystemDash,
SystemDot,
SystemDashDot,
SystemDashDotDot,
}Expand description
This simple type represents preset line dash values. The description for each style shows an illustration of the line style. Each style also contains a precise binary representation of the repeating dash style. Each 1 corresponds to a line segment of the same length as the line width, and each 0 corresponds to a space of the same length as the line width.
Variants§
Solid
1
Dot
1000
Dash
1111000
LargeDash
11111111000
DashDot
11110001000
LargeDashDot
111111110001000
LargeDashDotDot
1111111100010001000
SystemDash
1110
SystemDot
10
SystemDashDot
111010
SystemDashDotDot
11101010
Trait Implementations§
Source§impl Clone for PresetLineDashVal
impl Clone for PresetLineDashVal
Source§fn clone(&self) -> PresetLineDashVal
fn clone(&self) -> PresetLineDashVal
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 PresetLineDashVal
impl Debug for PresetLineDashVal
Source§impl FromStr for PresetLineDashVal
impl FromStr for PresetLineDashVal
impl Copy for PresetLineDashVal
Auto Trait Implementations§
impl Freeze for PresetLineDashVal
impl RefUnwindSafe for PresetLineDashVal
impl Send for PresetLineDashVal
impl Sync for PresetLineDashVal
impl Unpin for PresetLineDashVal
impl UnwindSafe for PresetLineDashVal
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