pub struct Discount(pub String);Expand description
Discount curve, by currency code (e.g. "USD"). Arc-shared and
copy-on-write, like Vol.
Tuple Fields§
§0: StringTrait Implementations§
impl Eq for Discount
Source§impl MarketKey for Discount
impl MarketKey for Discount
Source§type Value = Arc<YieldCurve>
type Value = Arc<YieldCurve>
The type a lookup with this key returns.
Clone so a whole market
can be cloned (the basis of scenario bumping: copy, then perturb).impl StructuralPartialEq for Discount
Auto Trait Implementations§
impl Freeze for Discount
impl RefUnwindSafe for Discount
impl Send for Discount
impl Sync for Discount
impl Unpin for Discount
impl UnsafeUnpin for Discount
impl UnwindSafe for Discount
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