pub struct LpcBuilder { /* private fields */ }Implementations§
Source§impl LpcBuilder
impl LpcBuilder
pub fn new() -> Self
pub fn cutoff_type(self, val: String) -> Self
pub fn fixed_period(self, val: usize) -> Self
pub fn max_cycle_limit(self, val: usize) -> Self
pub fn cycle_mult(self, val: f64) -> Self
pub fn tr_mult(self, val: f64) -> Self
pub fn kernel(self, k: Kernel) -> Self
pub fn apply(self, c: &Candles) -> Result<LpcOutput, LpcError>
pub fn apply_candles(self, c: &Candles, s: &str) -> Result<LpcOutput, LpcError>
pub fn apply_slices( self, high: &[f64], low: &[f64], close: &[f64], src: &[f64], ) -> Result<LpcOutput, LpcError>
pub fn apply_slice( self, high: &[f64], low: &[f64], close: &[f64], src: &[f64], ) -> Result<LpcOutput, LpcError>
pub fn into_stream(self) -> Result<LpcStream, LpcError>
Trait Implementations§
Source§impl Clone for LpcBuilder
impl Clone for LpcBuilder
Source§fn clone(&self) -> LpcBuilder
fn clone(&self) -> LpcBuilder
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 LpcBuilder
impl Debug for LpcBuilder
Auto Trait Implementations§
impl Freeze for LpcBuilder
impl RefUnwindSafe for LpcBuilder
impl Send for LpcBuilder
impl Sync for LpcBuilder
impl Unpin for LpcBuilder
impl UnsafeUnpin for LpcBuilder
impl UnwindSafe for LpcBuilder
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