Enum BondStrikeKind
pub enum BondStrikeKind {
Clean,
Dirty,
Yield,
}Expand description
Which price a BondStrike is quoted on, without the number.
The strike itself carries its value, so a caller naming one by string names this and supplies the value separately — which is what keeps the spelling in the core rather than in each binding that parses it.
Variants§
Implementations§
§impl BondStrikeKind
impl BondStrikeKind
§impl BondStrikeKind
impl BondStrikeKind
pub fn at(self, value: f64) -> BondStrike
pub fn at(self, value: f64) -> BondStrike
The strike of this kind at value.
Trait Implementations§
§impl Clone for BondStrikeKind
impl Clone for BondStrikeKind
§fn clone(&self) -> BondStrikeKind
fn clone(&self) -> BondStrikeKind
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 BondStrikeKind
§impl Debug for BondStrikeKind
impl Debug for BondStrikeKind
impl Eq for BondStrikeKind
§impl FromStr for BondStrikeKind
impl FromStr for BondStrikeKind
§impl PartialEq for BondStrikeKind
impl PartialEq for BondStrikeKind
impl StructuralPartialEq for BondStrikeKind
Auto Trait Implementations§
impl Freeze for BondStrikeKind
impl RefUnwindSafe for BondStrikeKind
impl Send for BondStrikeKind
impl Sync for BondStrikeKind
impl Unpin for BondStrikeKind
impl UnsafeUnpin for BondStrikeKind
impl UnwindSafe for BondStrikeKind
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