pub enum MinorBreaksSpec {
Explicit(Vec<Value>),
CountBetween(usize),
NumericInterval(f64),
TemporalInterval(TemporalInterval),
}Expand description
User-supplied minor-break specification. When set on a Scale,
replaces the scale-type’s automatic minor-break algorithm at
Scale::minor_breaks. Minor breaks carry no labels, so there is no
counterpart to BreaksSpec::Labeled.
Variants§
Explicit(Vec<Value>)
Pin exact minor positions. An empty vector suppresses minor breaks entirely.
CountBetween(usize)
Subdivide each consecutive pair of major breaks into
n + 1 gaps, placing n evenly-spaced minors per interval and
none on the majors themselves. 0 suppresses minor breaks.
NumericInterval(f64)
Numeric “every N” — multiples of step across the continuous
domain, minus the positions already carrying a major break.
Falls back to the automatic algorithm on scales without a
continuous domain.
TemporalInterval(TemporalInterval)
Calendar interval (e.g. weekly minors under monthly majors), minus the positions already carrying a major break. Used by temporal scales; falls back to the automatic algorithm on non-temporal scales.
Trait Implementations§
Source§impl Clone for MinorBreaksSpec
impl Clone for MinorBreaksSpec
Source§fn clone(&self) -> MinorBreaksSpec
fn clone(&self) -> MinorBreaksSpec
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for MinorBreaksSpec
impl RefUnwindSafe for MinorBreaksSpec
impl Send for MinorBreaksSpec
impl Sync for MinorBreaksSpec
impl Unpin for MinorBreaksSpec
impl UnsafeUnpin for MinorBreaksSpec
impl UnwindSafe for MinorBreaksSpec
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.