pub enum Hatch {
Show 15 variants
SolidWhite,
SolidBlack,
Diagonal,
DiagonalDense,
AntiDiagonal,
Horizontal,
Vertical,
Crosshatch,
Grid,
DotsSparse,
DotsDense,
Brick,
Zigzag,
DashedH,
Checker,
}Expand description
Hatch pattern preset.
Variants§
SolidWhite
SolidBlack
Diagonal
DiagonalDense
AntiDiagonal
Horizontal
Vertical
Crosshatch
Grid
DotsSparse
DotsDense
Brick
Zigzag
DashedH
Checker
Implementations§
Source§impl Hatch
impl Hatch
Sourcepub const CYCLE: [Hatch; 15]
pub const CYCLE: [Hatch; 15]
Cycle order optimized for visual separation between adjacent
series. Walked when Hatch is not explicitly set.
Sourcepub const DEFAULT_RAMP: [Hatch; 7]
pub const DEFAULT_RAMP: [Hatch; 7]
Default light-to-dark heatmap ramp.
pub fn cycle(index: usize) -> Hatch
Sourcepub fn fill_value(self) -> String
pub fn fill_value(self) -> String
SVG fill attribute value (a color name or url(#…)).
pub fn needs_def(self) -> bool
Trait Implementations§
impl Copy for Hatch
impl Eq for Hatch
impl StructuralPartialEq for Hatch
Auto Trait Implementations§
impl Freeze for Hatch
impl RefUnwindSafe for Hatch
impl Send for Hatch
impl Sync for Hatch
impl Unpin for Hatch
impl UnsafeUnpin for Hatch
impl UnwindSafe for Hatch
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