pub struct DxInput<'a> {
pub data: DxData<'a>,
pub params: DxParams,
}Fields§
§data: DxData<'a>§params: DxParamsImplementations§
Source§impl<'a> DxInput<'a>
impl<'a> DxInput<'a>
pub fn from_candles(candles: &'a Candles, params: DxParams) -> Self
pub fn from_hlc_slices( high: &'a [f64], low: &'a [f64], close: &'a [f64], params: DxParams, ) -> Self
pub fn with_default_candles(candles: &'a Candles) -> Self
pub fn get_period(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for DxInput<'a>
impl<'a> RefUnwindSafe for DxInput<'a>
impl<'a> Send for DxInput<'a>
impl<'a> Sync for DxInput<'a>
impl<'a> Unpin for DxInput<'a>
impl<'a> UnsafeUnpin for DxInput<'a>
impl<'a> UnwindSafe for DxInput<'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