pub enum SignificanceTarget {
Category(RawKey),
CategorySeries {
category: RawKey,
series: RawKey,
},
}Expand description
One rendered categorical target for a significance annotation.
Variants§
Category(RawKey)
A complete categorical axis level or category cluster.
CategorySeries
One positioned series inside a category.
Implementations§
Source§impl SignificanceTarget
impl SignificanceTarget
Sourcepub fn category(value: impl Into<RawKey>) -> SignificanceTarget
pub fn category(value: impl Into<RawKey>) -> SignificanceTarget
Target a complete categorical axis level or category cluster.
Sourcepub fn category_series(
category: impl Into<RawKey>,
series: impl Into<RawKey>,
) -> SignificanceTarget
pub fn category_series( category: impl Into<RawKey>, series: impl Into<RawKey>, ) -> SignificanceTarget
Target one positioned series inside a category.
Sourcepub fn get_category(&self) -> &RawKey
pub fn get_category(&self) -> &RawKey
The supplied category key.
Sourcepub fn get_series(&self) -> Option<&RawKey>
pub fn get_series(&self) -> Option<&RawKey>
The supplied positioned series, if present.
Trait Implementations§
Source§impl Clone for SignificanceTarget
impl Clone for SignificanceTarget
Source§fn clone(&self) -> SignificanceTarget
fn clone(&self) -> SignificanceTarget
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SignificanceTarget
impl Debug for SignificanceTarget
impl Eq for SignificanceTarget
Source§impl From<&str> for SignificanceTarget
impl From<&str> for SignificanceTarget
Source§fn from(value: &str) -> SignificanceTarget
fn from(value: &str) -> SignificanceTarget
Converts to this type from the input type.
Source§impl From<RawKey> for SignificanceTarget
impl From<RawKey> for SignificanceTarget
Source§fn from(value: RawKey) -> SignificanceTarget
fn from(value: RawKey) -> SignificanceTarget
Converts to this type from the input type.
Source§impl From<String> for SignificanceTarget
impl From<String> for SignificanceTarget
Source§fn from(value: String) -> SignificanceTarget
fn from(value: String) -> SignificanceTarget
Converts to this type from the input type.
Source§impl Hash for SignificanceTarget
impl Hash for SignificanceTarget
Source§impl PartialEq for SignificanceTarget
impl PartialEq for SignificanceTarget
impl SignificanceTargets for SignificanceTarget
impl StructuralPartialEq for SignificanceTarget
Auto Trait Implementations§
impl Forget for SignificanceTarget
impl Freeze for SignificanceTarget
impl Move for SignificanceTarget
impl RefUnwindSafe for SignificanceTarget
impl Send for SignificanceTarget
impl Sync for SignificanceTarget
impl Unpin for SignificanceTarget
impl UnsafeUnpin for SignificanceTargetwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ArcInner<[u8]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[u8]>>: UnsafeUnpin,
PhantomData<RawKey>: UnsafeUnpin,
*const RawKey is !null: UnsafeUnpin,
*const ArcInner<str> is !null: UnsafeUnpin,
PhantomData<ArcInner<str>>: UnsafeUnpin,
impl UnwindSafe for SignificanceTargetwhere
RawVecInner: UnwindSafe,
Arc<[u8]>: UnwindSafe,
BoxRaw<RawKey>: UnwindSafe,
Arc<str>: UnwindSafe,
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,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> Scalar for T
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.