pub struct DrawdownSummary {
pub depth: f64,
pub peak_index: usize,
pub trough_index: usize,
pub recovery_index: Option<usize>,
}Fields§
§depth: f64§peak_index: usize§trough_index: usize§recovery_index: Option<usize>Trait Implementations§
Source§impl Clone for DrawdownSummary
impl Clone for DrawdownSummary
Source§fn clone(&self) -> DrawdownSummary
fn clone(&self) -> DrawdownSummary
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 moreSource§impl Debug for DrawdownSummary
impl Debug for DrawdownSummary
Source§impl<'de> Deserialize<'de> for DrawdownSummary
impl<'de> Deserialize<'de> for DrawdownSummary
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 DrawdownSummary
impl PartialEq for DrawdownSummary
Source§fn eq(&self, other: &DrawdownSummary) -> bool
fn eq(&self, other: &DrawdownSummary) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DrawdownSummary
impl Serialize for DrawdownSummary
impl Copy for DrawdownSummary
impl StructuralPartialEq for DrawdownSummary
Auto Trait Implementations§
impl Freeze for DrawdownSummary
impl RefUnwindSafe for DrawdownSummary
impl Send for DrawdownSummary
impl Sync for DrawdownSummary
impl Unpin for DrawdownSummary
impl UnsafeUnpin for DrawdownSummary
impl UnwindSafe for DrawdownSummary
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