pub struct MaczInput<'a> {
pub data: MaczData<'a>,
pub params: MaczParams,
}Fields§
§data: MaczData<'a>§params: MaczParamsImplementations§
Source§impl<'a> MaczInput<'a>
impl<'a> MaczInput<'a>
pub fn from_candles(c: &'a Candles, s: &'a str, p: MaczParams) -> Self
pub fn from_candles_with_volume( c: &'a Candles, s: &'a str, volume: &'a [f64], p: MaczParams, ) -> Self
pub fn from_slice(sl: &'a [f64], p: MaczParams) -> Self
pub fn with_default_candles(c: &'a Candles) -> Self
pub fn with_default_candles_auto_volume(c: &'a Candles) -> Self
pub fn from_slice_with_volume( sl: &'a [f64], vol: &'a [f64], p: MaczParams, ) -> Self
pub fn with_default_slice(sl: &'a [f64]) -> Self
pub fn get_fast_length(&self) -> usize
pub fn get_slow_length(&self) -> usize
pub fn get_signal_length(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for MaczInput<'a>
impl<'a> RefUnwindSafe for MaczInput<'a>
impl<'a> Send for MaczInput<'a>
impl<'a> Sync for MaczInput<'a>
impl<'a> Unpin for MaczInput<'a>
impl<'a> UnsafeUnpin for MaczInput<'a>
impl<'a> UnwindSafe for MaczInput<'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