#[non_exhaustive]pub enum Scale {
Linear,
Log10,
SymmetricLog,
Time,
Category,
}Expand description
How values map onto an 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.
Linear
Evenly spaced values.
Log10
Decades evenly spaced; values ≤ 0 are not drawn.
SymmetricLog
A signed log scale: zero is the origin and both signs expand logarithmically.
Time
Seconds since the Unix epoch, formatted as calendar tick labels in UTC.
Category
Evenly spaced category indices, labeled from the axis configuration’s categories.
Implementations§
Trait Implementations§
impl Copy for Scale
Source§impl<'de> Deserialize<'de> for Scale
impl<'de> Deserialize<'de> for Scale
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Scale
impl StructuralPartialEq for Scale
Auto Trait Implementations§
impl Forget for Scale
impl Freeze for Scale
impl Move for Scale
impl RefUnwindSafe for Scale
impl Send for Scale
impl Sync for Scale
impl Unpin for Scale
impl UnsafeUnpin for Scale
impl UnwindSafe for Scale
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