#[non_exhaustive]pub enum AxisValues {
Numeric(NumericValues),
Category(CategoryValues),
Keys(RawKeyValues),
}Expand description
Native values accepted by a line plot’s horizontal axis.
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.
Numeric(NumericValues)
Continuous numeric axis values.
Category(CategoryValues)
Ordered categorical axis values.
Keys(RawKeyValues)
Original non-string category keys.
Implementations§
Source§impl AxisValues
impl AxisValues
Sourcepub const fn get_numeric(&self) -> Option<&NumericValues>
pub const fn get_numeric(&self) -> Option<&NumericValues>
Actual original numeric axis.
Sourcepub const fn get_category(&self) -> Option<&CategoryValues>
pub const fn get_category(&self) -> Option<&CategoryValues>
Actual original string category axis.
Sourcepub const fn get_keys(&self) -> Option<&RawKeyValues>
pub const fn get_keys(&self) -> Option<&RawKeyValues>
Actual original non-string category keys.
Trait Implementations§
Source§impl Clone for AxisValues
impl Clone for AxisValues
Source§impl Debug for AxisValues
impl Debug for AxisValues
Source§impl From<CategoryValues> for AxisValues
impl From<CategoryValues> for AxisValues
Source§fn from(values: CategoryValues) -> Self
fn from(values: CategoryValues) -> Self
Converts to this type from the input type.
Source§impl From<NumericValues> for AxisValues
impl From<NumericValues> for AxisValues
Source§fn from(values: NumericValues) -> Self
fn from(values: NumericValues) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Forget for AxisValues
impl Freeze for AxisValueswhere
*const ArcInner<str> is !null: Freeze,
PhantomData<ArcInner<str>>: Freeze,
*const ArcInner<[f64]> is !null: Freeze,
PhantomData<ArcInner<[f64]>>: Freeze,
*const ArcInner<[u64]> is !null: Freeze,
PhantomData<ArcInner<[u64]>>: Freeze,
*const ArcInner<(RawKey, Arc<str>)> is !null: Freeze,
PhantomData<ArcInner<(RawKey, Arc<str>)>>: Freeze,
*const ArcInner<SourceInfo> is !null: Freeze,
PhantomData<ArcInner<SourceInfo>>: Freeze,
*const ArcInner<SourceProjection> is !null: Freeze,
PhantomData<ArcInner<SourceProjection>>: Freeze,
*const ArcInner<[String]> is !null: Freeze,
PhantomData<ArcInner<[String]>>: Freeze,
*const ArcInner<[u32]> is !null: Freeze,
PhantomData<ArcInner<[u32]>>: Freeze,
*const ArcInner<KeyValues> is !null: Freeze,
PhantomData<ArcInner<KeyValues>>: Freeze,
*const ArcInner<[Option<u32>]> is !null: Freeze,
PhantomData<ArcInner<[Option<u32>]>>: Freeze,
*const ArcInner<[RawKey]> is !null: Freeze,
PhantomData<ArcInner<[RawKey]>>: Freeze,
impl Move for AxisValues
impl RefUnwindSafe for AxisValues
impl Send for AxisValues
impl Sync for AxisValues
impl Unpin for AxisValues
impl UnsafeUnpin for AxisValueswhere
*const ArcInner<str> is !null: UnsafeUnpin,
PhantomData<ArcInner<str>>: UnsafeUnpin,
*const ArcInner<[f64]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[f64]>>: UnsafeUnpin,
*const ArcInner<[u64]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[u64]>>: UnsafeUnpin,
*const ArcInner<(RawKey, Arc<str>)> is !null: UnsafeUnpin,
PhantomData<ArcInner<(RawKey, Arc<str>)>>: UnsafeUnpin,
*const ArcInner<SourceInfo> is !null: UnsafeUnpin,
PhantomData<ArcInner<SourceInfo>>: UnsafeUnpin,
*const ArcInner<SourceProjection> is !null: UnsafeUnpin,
PhantomData<ArcInner<SourceProjection>>: UnsafeUnpin,
*const ArcInner<[String]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[String]>>: UnsafeUnpin,
*const ArcInner<[u32]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[u32]>>: UnsafeUnpin,
*const ArcInner<KeyValues> is !null: UnsafeUnpin,
PhantomData<ArcInner<KeyValues>>: UnsafeUnpin,
*const ArcInner<[Option<u32>]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[Option<u32>]>>: UnsafeUnpin,
*const ArcInner<[RawKey]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[RawKey]>>: UnsafeUnpin,
impl UnwindSafe for AxisValueswhere
Arc<str>: UnwindSafe,
Arc<[f64]>: UnwindSafe,
Arc<[u64]>: UnwindSafe,
Arc<(RawKey, Arc<str>)>: UnwindSafe,
Arc<SourceInfo>: UnwindSafe,
Arc<SourceProjection>: UnwindSafe,
Arc<[String]>: UnwindSafe,
Arc<[u32]>: UnwindSafe,
Arc<KeyValues>: UnwindSafe,
Arc<[Option<u32>]>: UnwindSafe,
Arc<[RawKey]>: UnwindSafe,
Blanket Implementations§
impl<T> Allocation for T
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,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.