pub struct LatticeConfig {
pub tree_type: BinomialTreeType,
pub steps: usize,
pub term_structure: bool,
}Expand description
Lattice engine configuration carried by an instrument.
Fields§
§tree_type: BinomialTreeType§steps: usize§term_structure: boolPrice on the TermLattice: term structures of rates, carry and
volatility applied per step (variance-equal time grid). When set,
tree_type is ignored — the term lattice has its own
CRR-in-variance spacing.
Implementations§
Source§impl LatticeConfig
impl LatticeConfig
Sourcepub fn validate(&self) -> Result<(), RustyQLibError>
pub fn validate(&self) -> Result<(), RustyQLibError>
Domain checks on the tree dimensions.
Trait Implementations§
Source§impl Clone for LatticeConfig
impl Clone for LatticeConfig
Source§fn clone(&self) -> LatticeConfig
fn clone(&self) -> LatticeConfig
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 LatticeConfig
Source§impl Debug for LatticeConfig
impl Debug for LatticeConfig
Source§impl Default for LatticeConfig
impl Default for LatticeConfig
Source§impl<'de> Deserialize<'de> for LatticeConfig
impl<'de> Deserialize<'de> for LatticeConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for LatticeConfig
impl PartialEq for LatticeConfig
Source§impl Serialize for LatticeConfig
impl Serialize for LatticeConfig
impl StructuralPartialEq for LatticeConfig
Auto Trait Implementations§
impl Freeze for LatticeConfig
impl RefUnwindSafe for LatticeConfig
impl Send for LatticeConfig
impl Sync for LatticeConfig
impl Unpin for LatticeConfig
impl UnsafeUnpin for LatticeConfig
impl UnwindSafe for LatticeConfig
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