pub struct KdjInput<'a> {
pub data: KdjData<'a>,
pub params: KdjParams,
}Fields§
§data: KdjData<'a>§params: KdjParamsImplementations§
Source§impl<'a> KdjInput<'a>
impl<'a> KdjInput<'a>
pub fn from_candles(candles: &'a Candles, params: KdjParams) -> Self
pub fn from_slices( high: &'a [f64], low: &'a [f64], close: &'a [f64], params: KdjParams, ) -> Self
pub fn with_default_candles(candles: &'a Candles) -> Self
pub fn get_fast_k_period(&self) -> usize
pub fn get_slow_k_period(&self) -> usize
pub fn get_slow_k_ma_type(&self) -> &str
pub fn get_slow_d_period(&self) -> usize
pub fn get_slow_d_ma_type(&self) -> &str
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for KdjInput<'a>
impl<'a> RefUnwindSafe for KdjInput<'a>
impl<'a> Send for KdjInput<'a>
impl<'a> Sync for KdjInput<'a>
impl<'a> Unpin for KdjInput<'a>
impl<'a> UnsafeUnpin for KdjInput<'a>
impl<'a> UnwindSafe for KdjInput<'a>
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