#[non_exhaustive]pub enum FormatClass {
General,
Number {
decimals: u8,
thousands: bool,
},
Date,
Time,
DateTime,
Duration,
Percent {
decimals: u8,
},
Currency {
decimals: u8,
},
Text,
Scientific,
Fraction,
Other,
}Expand description
The calculation-relevant class of an Excel number-format code.
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.
Trait Implementations§
Source§impl Clone for FormatClass
impl Clone for FormatClass
Source§fn clone(&self) -> FormatClass
fn clone(&self) -> FormatClass
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 FormatClass
impl Debug for FormatClass
impl Eq for FormatClass
Source§impl PartialEq for FormatClass
impl PartialEq for FormatClass
impl StructuralPartialEq for FormatClass
Auto Trait Implementations§
impl Freeze for FormatClass
impl RefUnwindSafe for FormatClass
impl Send for FormatClass
impl Sync for FormatClass
impl Unpin for FormatClass
impl UnsafeUnpin for FormatClass
impl UnwindSafe for FormatClass
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