pub struct Target2;Expand description
Eurosystem TARGET2 settlement calendar.
Holidays: New Year (Jan 1), Good Friday, Easter Monday, Labour (May 1), Christmas (Dec 25), and Dec 26.
Trait Implementations§
Source§impl Calendar for Target2
impl Calendar for Target2
Source§fn is_business_day(&self, date: Date) -> bool
fn is_business_day(&self, date: Date) -> bool
True if
date is a trading/settlement business day for this market
(neither a weekend nor a holiday).Source§fn is_holiday(&self, date: Date) -> bool
fn is_holiday(&self, date: Date) -> bool
True if
date is a non-weekend holiday. Weekends are not holidays.Source§fn adjust(&self, date: Date, conv: BusinessDayConvention) -> Date
fn adjust(&self, date: Date, conv: BusinessDayConvention) -> Date
Adjusts
date onto a business day per conv. A date that is already a
business day is returned unchanged.Source§fn advance(&self, date: Date, n: i32) -> Date
fn advance(&self, date: Date, n: i32) -> Date
Advances
date by n business days (negative n moves backward).
n == 0 returns date unchanged, even if it is not a business day.impl Copy for Target2
Auto Trait Implementations§
impl Freeze for Target2
impl RefUnwindSafe for Target2
impl Send for Target2
impl Sync for Target2
impl Unpin for Target2
impl UnsafeUnpin for Target2
impl UnwindSafe for Target2
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