Enum DateGenerationRule
pub enum DateGenerationRule {
Backward,
Forward,
Cds,
}Expand description
The direction in which a schedule’s periods are generated from its anchors.
A domain term also known as the date-generation rule; FpML expresses the equivalent through stub placement rather than a single enum. Templates carry the rule; the schedule builder consumes it.
Variants§
Backward
Generate backward from the termination date (the G10/EM default).
Forward
Generate forward from the effective date (e.g. onshore CNY swaps).
Cds
CDS schedule generation (IMM-dated, post-2015 standard).
Implementations§
§impl DateGenerationRule
impl DateGenerationRule
Trait Implementations§
§impl Clone for DateGenerationRule
impl Clone for DateGenerationRule
§fn clone(&self) -> DateGenerationRule
fn clone(&self) -> DateGenerationRule
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 moreimpl Copy for DateGenerationRule
§impl Debug for DateGenerationRule
impl Debug for DateGenerationRule
impl Eq for DateGenerationRule
§impl FromStr for DateGenerationRule
impl FromStr for DateGenerationRule
§impl Hash for DateGenerationRule
impl Hash for DateGenerationRule
§impl PartialEq for DateGenerationRule
impl PartialEq for DateGenerationRule
§fn eq(&self, other: &DateGenerationRule) -> bool
fn eq(&self, other: &DateGenerationRule) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DateGenerationRule
Auto Trait Implementations§
impl Freeze for DateGenerationRule
impl RefUnwindSafe for DateGenerationRule
impl Send for DateGenerationRule
impl Sync for DateGenerationRule
impl Unpin for DateGenerationRule
impl UnsafeUnpin for DateGenerationRule
impl UnwindSafe for DateGenerationRule
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