pub enum Ma {
Ema(Ema),
Hull(HullMa),
Sma(Sma),
}Expand description
Generic moving average — dispatches to the concrete MA variant.
Used by strategies that need configurable MA types without
trait objects. Enum dispatch avoids vtable overhead on the
hot-path next() / compute() calls.
Variants§
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Ma
impl RefUnwindSafe for Ma
impl Send for Ma
impl Sync for Ma
impl Unpin for Ma
impl UnsafeUnpin for Ma
impl UnwindSafe for Ma
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