pub enum FinancialPeriod {
Quarter {
quarter: u8,
year: u16,
},
Half {
half: u8,
year: u16,
},
Year {
year: u16,
},
}
Expand description
Represents common financial periods, whole years, half years, and quarter years.
By default the assumption is that periods represent calendar time; for example, the values “2019”, “Q1 2019”, and “H1 2019” are all assumed to start on January 1st.
Variants§
Implementations§
Trait Implementations§
Source§impl Debug for FinancialPeriod
impl Debug for FinancialPeriod
Source§impl Display for FinancialPeriod
impl Display for FinancialPeriod
Source§impl FromStr for FinancialPeriod
impl FromStr for FinancialPeriod
Source§impl PartialEq for FinancialPeriod
impl PartialEq for FinancialPeriod
impl StructuralPartialEq for FinancialPeriod
Auto Trait Implementations§
impl Freeze for FinancialPeriod
impl RefUnwindSafe for FinancialPeriod
impl Send for FinancialPeriod
impl Sync for FinancialPeriod
impl Unpin for FinancialPeriod
impl UnwindSafe for FinancialPeriod
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