pub struct ValidatedSupertrend { /* private fields */ }Implementations§
Source§impl ValidatedSupertrend
impl ValidatedSupertrend
pub fn new(params: SupertrendParams) -> FinanceResult<Self>
pub fn params(self) -> SupertrendParams
pub fn compute( self, high: &[f64], low: &[f64], close: &[f64], ) -> FinanceResult<SupertrendSeries>
Trait Implementations§
Source§impl Clone for ValidatedSupertrend
impl Clone for ValidatedSupertrend
Source§fn clone(&self) -> ValidatedSupertrend
fn clone(&self) -> ValidatedSupertrend
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 ValidatedSupertrend
Source§impl Debug for ValidatedSupertrend
impl Debug for ValidatedSupertrend
Source§impl PartialEq for ValidatedSupertrend
impl PartialEq for ValidatedSupertrend
impl StructuralPartialEq for ValidatedSupertrend
Auto Trait Implementations§
impl Freeze for ValidatedSupertrend
impl RefUnwindSafe for ValidatedSupertrend
impl Send for ValidatedSupertrend
impl Sync for ValidatedSupertrend
impl Unpin for ValidatedSupertrend
impl UnsafeUnpin for ValidatedSupertrend
impl UnwindSafe for ValidatedSupertrend
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