pub struct MonthYear { /* private fields */ }Expand description
A FIX MonthYear, such as a contract’s maturity, with an optional day or week of the month.
Implementations§
Source§impl MonthYear
impl MonthYear
Sourcepub const fn new(year: u16, month: u8) -> Option<Self>
pub const fn new(year: u16, month: u8) -> Option<Self>
The month month of year, if it exists and the year fits FIX’s four digits.
Sourcepub const fn with_day(year: u16, month: u8, day: u8) -> Option<Self>
pub const fn with_day(year: u16, month: u8, day: u8) -> Option<Self>
The day day of month in year, if that date exists.
Trait Implementations§
impl Copy for MonthYear
impl Eq for MonthYear
impl StructuralPartialEq for MonthYear
Auto Trait Implementations§
impl Forget for MonthYear
impl Freeze for MonthYear
impl Move for MonthYear
impl RefUnwindSafe for MonthYear
impl Send for MonthYear
impl Sync for MonthYear
impl Unpin for MonthYear
impl UnsafeUnpin for MonthYear
impl UnwindSafe for MonthYear
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