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