pub enum PatternPolicy {
Auto,
Always,
Never,
}Expand description
Whether a chart draws its series’ non-colour channel.
See the module docs — Auto is the default and the accessible one.
Variants§
Auto
Draw the channel once more than one series is visible. Default.
Always
Always draw it, even for a single series.
Never
Never draw it.
This leaves colour as the only means of telling series apart, which fails WCAG 1.4.1 for any chart with more than one series. Reach for it only where something else in the design already carries the distinction — direct series labels on the plot, one series per chart in a small multiple.
Implementations§
Trait Implementations§
Source§impl Clone for PatternPolicy
impl Clone for PatternPolicy
impl Copy for PatternPolicy
Source§impl Debug for PatternPolicy
impl Debug for PatternPolicy
Source§impl Default for PatternPolicy
impl Default for PatternPolicy
impl Eq for PatternPolicy
Source§impl PartialEq for PatternPolicy
impl PartialEq for PatternPolicy
impl StructuralPartialEq for PatternPolicy
Auto Trait Implementations§
impl Forget for PatternPolicy
impl Freeze for PatternPolicy
impl Move for PatternPolicy
impl RefUnwindSafe for PatternPolicy
impl Send for PatternPolicy
impl Sync for PatternPolicy
impl Unpin for PatternPolicy
impl UnsafeUnpin for PatternPolicy
impl UnwindSafe for PatternPolicy
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<T> ErasedDestructor for Twhere
T: 'static,
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