pub struct CalendarPeriod {
pub label: String,
pub start: String,
pub end: String,
}Expand description
A named display period for CalendarPlot.
Each period is shown as one calendar row. Periods can span any date range — a single month, a quarter, a financial year, or multiple years.
Fields§
§label: StringLabel shown to the left of the period’s grid row (e.g. "2024", "FY2023/24").
start: StringFirst day of the period in "YYYY-MM-DD" format.
end: StringLast day of the period (inclusive) in "YYYY-MM-DD" format.
Implementations§
Trait Implementations§
Source§impl Clone for CalendarPeriod
impl Clone for CalendarPeriod
Source§fn clone(&self) -> CalendarPeriod
fn clone(&self) -> CalendarPeriod
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 moreAuto Trait Implementations§
impl Freeze for CalendarPeriod
impl RefUnwindSafe for CalendarPeriod
impl Send for CalendarPeriod
impl Sync for CalendarPeriod
impl Unpin for CalendarPeriod
impl UnsafeUnpin for CalendarPeriod
impl UnwindSafe for CalendarPeriod
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.