Struct TurnSchedule
pub struct TurnSchedule {
knots: Vec<KnottedDate>,
}Expand description
A set of turn-of-period knots over a date range.
Fields§
§knots: Vec<KnottedDate>Implementations§
§impl TurnSchedule
impl TurnSchedule
pub fn new(period: TurnPeriod, start: NaiveDate, end: NaiveDate) -> Self
pub fn new(period: TurnPeriod, start: NaiveDate, end: NaiveDate) -> Self
Builds turn knots of period strictly inside (start, end] — one knot per
period boundary that falls after start and on or before end.
pub fn knots(&self) -> &[KnottedDate]
pub fn knots(&self) -> &[KnottedDate]
The turn knots, strictly ascending by date.
Trait Implementations§
§impl Clone for TurnSchedule
impl Clone for TurnSchedule
§fn clone(&self) -> TurnSchedule
fn clone(&self) -> TurnSchedule
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 more§impl Debug for TurnSchedule
impl Debug for TurnSchedule
impl Eq for TurnSchedule
§impl PartialEq for TurnSchedule
impl PartialEq for TurnSchedule
impl StructuralPartialEq for TurnSchedule
Auto Trait Implementations§
impl Freeze for TurnSchedule
impl RefUnwindSafe for TurnSchedule
impl Send for TurnSchedule
impl Sync for TurnSchedule
impl Unpin for TurnSchedule
impl UnsafeUnpin for TurnSchedule
impl UnwindSafe for TurnSchedule
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