pub struct MacdSolution { /* private fields */ }Expand description
Teaching wrapper with formula strings and a printable table.
Implementations§
Source§impl MacdSolution
impl MacdSolution
pub fn series(&self) -> &MacdSeries
pub fn formula(&self) -> &str
pub fn symbolic_formula(&self) -> &str
pub fn params(&self) -> MacdParams
Sourcepub fn print_table(&self)
pub fn print_table(&self)
Print period / close / macd / signal / hist (warm-up as n/a).
§Sample output (truncated)
period close macd signal hist
------ ------ ------ ------ ------
0 100.10 n/a n/a n/a
25 102.60 0.1234 n/a n/a
33 103.40 0.1800 0.1500 0.0300pub fn print_table_locale(&self, locale: &Locale, precision: usize)
Trait Implementations§
Source§impl Clone for MacdSolution
impl Clone for MacdSolution
Source§fn clone(&self) -> MacdSolution
fn clone(&self) -> MacdSolution
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MacdSolution
impl RefUnwindSafe for MacdSolution
impl Send for MacdSolution
impl Sync for MacdSolution
impl Unpin for MacdSolution
impl UnsafeUnpin for MacdSolution
impl UnwindSafe for MacdSolution
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