pub struct SimpleCashFlow { /* private fields */ }Expand description
A payment of a predetermined amount on a given date.
Implementations§
Source§impl SimpleCashFlow
impl SimpleCashFlow
Sourcepub fn new(amount: Real, date: Date) -> QlResult<Self>
pub fn new(amount: Real, date: Date) -> QlResult<Self>
Creates a flow paying amount on date.
Both guards are QuantLib’s, verbatim, from the SimpleCashFlow
constructor body (simplecashflow.cpp:29 and :31), error strings
included. They were omitted when this type was first ported.
§Errors
Errors if date is the null date or amount is the null Real.
Trait Implementations§
Source§impl AsObservable for SimpleCashFlow
impl AsObservable for SimpleCashFlow
Source§fn observable(&self) -> &Observable
fn observable(&self) -> &Observable
Access to the embedded observable for registering observers.
Auto Trait Implementations§
impl !Freeze for SimpleCashFlow
impl !RefUnwindSafe for SimpleCashFlow
impl !Send for SimpleCashFlow
impl !Sync for SimpleCashFlow
impl !UnwindSafe for SimpleCashFlow
impl Unpin for SimpleCashFlow
impl UnsafeUnpin for SimpleCashFlow
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