pub enum AxisKind {
Continuous {
lo: f64,
hi: f64,
min_step: f64,
},
Discrete {
detents: Vec<AxisValue>,
},
Categorical {
options: Vec<AxisValue>,
},
}Expand description
The domain of one axis.
Variants§
Continuous
A real interval [lo, hi] (optionally quantized to min_step).
Discrete
Ordered numeric detents — ordinal, so distance/order are meaningful.
Categorical
Nominal choices (labels / bools) — a stable, positionally-ordered list (position is meaningful: “the first option” is well-defined and stable), but with no metric/distance between values. Handled by index, never sorted.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AxisKind
impl RefUnwindSafe for AxisKind
impl Send for AxisKind
impl Sync for AxisKind
impl Unpin for AxisKind
impl UnsafeUnpin for AxisKind
impl UnwindSafe for AxisKind
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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