Enum BondKind
#[non_exhaustive]pub enum BondKind {
FixedBullet,
FloatingRate,
InflationLinked,
Any,
}Expand description
The instrument kind a calc-type code applies to.
Suffix retained under clause 3 of the enum naming rule: the bare noun Bond
would name the entity being classified, not the axis of choice.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
FixedBullet
A fixed-coupon bullet bond (BondStatic → FixedRateBond).
FloatingRate
A floating-rate bond (FloatingBondStatic → FloatingRateBond).
InflationLinked
An inflation-linked bond (InflationLinkedBond).
Any
Any structure — street-family codes (999) that apply across fixed and floating bonds.
Implementations§
Trait Implementations§
impl Copy for BondKind
impl Eq for BondKind
impl StructuralPartialEq for BondKind
Auto Trait Implementations§
impl Freeze for BondKind
impl RefUnwindSafe for BondKind
impl Send for BondKind
impl Sync for BondKind
impl Unpin for BondKind
impl UnsafeUnpin for BondKind
impl UnwindSafe for BondKind
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