pub struct PivotBuilder { /* private fields */ }Implementations§
Source§impl PivotBuilder
impl PivotBuilder
pub fn new() -> Self
pub fn mode(self, mode: usize) -> Self
pub fn kernel(self, k: Kernel) -> Self
pub fn apply(self, candles: &Candles) -> Result<PivotOutput, PivotError>
pub fn apply_slices( self, high: &[f64], low: &[f64], close: &[f64], open: &[f64], ) -> Result<PivotOutput, PivotError>
Trait Implementations§
Source§impl Clone for PivotBuilder
impl Clone for PivotBuilder
Source§fn clone(&self) -> PivotBuilder
fn clone(&self) -> PivotBuilder
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 PivotBuilder
impl Debug for PivotBuilder
Source§impl Default for PivotBuilder
impl Default for PivotBuilder
impl Copy for PivotBuilder
Auto Trait Implementations§
impl Freeze for PivotBuilder
impl RefUnwindSafe for PivotBuilder
impl Send for PivotBuilder
impl Sync for PivotBuilder
impl Unpin for PivotBuilder
impl UnsafeUnpin for PivotBuilder
impl UnwindSafe for PivotBuilder
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