#[non_exhaustive]pub enum ContourLegendPolicy {
None,
EveryLevel,
Selected(Vec<f64>),
EveryNth(usize),
}Expand description
Selects which scalar levels create native Plotters legend entries.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None
Register no automatic per-level legend entries.
EveryLevel
Register every level.
Selected(Vec<f64>)
Register the listed scalar levels, matched with a small relative tolerance.
EveryNth(usize)
Register every nth level in sorted contour order.
Trait Implementations§
Source§impl Clone for ContourLegendPolicy
impl Clone for ContourLegendPolicy
Source§impl Debug for ContourLegendPolicy
impl Debug for ContourLegendPolicy
Source§impl Default for ContourLegendPolicy
impl Default for ContourLegendPolicy
Source§impl PartialEq for ContourLegendPolicy
impl PartialEq for ContourLegendPolicy
impl StructuralPartialEq for ContourLegendPolicy
Auto Trait Implementations§
impl Freeze for ContourLegendPolicy
impl RefUnwindSafe for ContourLegendPolicy
impl Send for ContourLegendPolicy
impl Sync for ContourLegendPolicy
impl Unpin for ContourLegendPolicy
impl UnsafeUnpin for ContourLegendPolicy
impl UnwindSafe for ContourLegendPolicy
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