pub struct PfeInput<'a> {
pub data: PfeData<'a>,
pub params: PfeParams,
}Fields§
§data: PfeData<'a>§params: PfeParamsImplementations§
Source§impl<'a> PfeInput<'a>
impl<'a> PfeInput<'a>
pub fn from_candles(c: &'a Candles, s: &'a str, p: PfeParams) -> Self
pub fn from_slice(sl: &'a [f64], p: PfeParams) -> Self
pub fn with_default_candles(c: &'a Candles) -> Self
pub fn get_period(&self) -> usize
pub fn get_smoothing(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for PfeInput<'a>
impl<'a> RefUnwindSafe for PfeInput<'a>
impl<'a> Send for PfeInput<'a>
impl<'a> Sync for PfeInput<'a>
impl<'a> Unpin for PfeInput<'a>
impl<'a> UnsafeUnpin for PfeInput<'a>
impl<'a> UnwindSafe for PfeInput<'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