pub struct ValidatedMacd { /* private fields */ }Expand description
Validated MACD config for reuse across many close series.
Implementations§
Source§impl ValidatedMacd
impl ValidatedMacd
pub fn new(params: MacdParams) -> FinanceResult<Self>
pub fn params(self) -> MacdParams
pub fn compute(self, closes: &[f64]) -> FinanceResult<MacdSeries>
Trait Implementations§
Source§impl Clone for ValidatedMacd
impl Clone for ValidatedMacd
Source§fn clone(&self) -> ValidatedMacd
fn clone(&self) -> ValidatedMacd
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 ValidatedMacd
Source§impl Debug for ValidatedMacd
impl Debug for ValidatedMacd
impl Eq for ValidatedMacd
Source§impl Hash for ValidatedMacd
impl Hash for ValidatedMacd
Source§impl PartialEq for ValidatedMacd
impl PartialEq for ValidatedMacd
impl StructuralPartialEq for ValidatedMacd
Auto Trait Implementations§
impl Freeze for ValidatedMacd
impl RefUnwindSafe for ValidatedMacd
impl Send for ValidatedMacd
impl Sync for ValidatedMacd
impl Unpin for ValidatedMacd
impl UnsafeUnpin for ValidatedMacd
impl UnwindSafe for ValidatedMacd
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more