pub struct MomentumResult {
pub value: f64,
pub ratio: f64,
}Expand description
The result of a Momentum calculation.
Fields§
§value: f64The momentum value (current price minus past price).
ratio: f64The momentum ratio (current price as a percentage of the past price).
Trait Implementations§
Source§impl Clone for MomentumResult
impl Clone for MomentumResult
Source§fn clone(&self) -> MomentumResult
fn clone(&self) -> MomentumResult
Returns a duplicate of the value. Read more
1.0.0 · 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 MomentumResult
impl Debug for MomentumResult
Source§impl PartialEq for MomentumResult
impl PartialEq for MomentumResult
Source§impl Serialize for MomentumResult
impl Serialize for MomentumResult
impl StructuralPartialEq for MomentumResult
Auto Trait Implementations§
impl Freeze for MomentumResult
impl RefUnwindSafe for MomentumResult
impl Send for MomentumResult
impl Sync for MomentumResult
impl Unpin for MomentumResult
impl UnwindSafe for MomentumResult
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