pub enum HarmonicKind {
AbCd,
AlternateAbCd,
FiveZero,
Gartley,
Bat,
Butterfly,
Crab,
AlternateBat,
}Expand description
Which harmonic pattern was detected.
Variants§
AbCd
AB=CD: CD leg equals AB in length.
AlternateAbCd
Alternate AB=CD: CD = 1.27 × AB or 1.618 × AB.
FiveZero
5-0: five-point structure completing at a 50% BC retrace / reciprocal AB=CD.
Gartley
Gartley: XABCD with B = 0.618 XA, D = 0.786 XA.
Bat
Bat: XABCD with B < 0.618 XA, D = 0.886 XA.
Butterfly
Butterfly: XABCD with B = 0.786 XA, D = 1.27 XA (extension).
Crab
Crab: XABCD with B ≤ 0.618 XA, D = 1.618 XA (deep extension).
AlternateBat
Alternate Bat: XABCD with B = 0.382 XA, D = 1.13 XA.
Implementations§
Trait Implementations§
Source§impl Clone for HarmonicKind
impl Clone for HarmonicKind
impl Copy for HarmonicKind
Source§impl Debug for HarmonicKind
impl Debug for HarmonicKind
Source§impl<'de> Deserialize<'de> for HarmonicKind
impl<'de> Deserialize<'de> for HarmonicKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for HarmonicKind
Source§impl PartialEq for HarmonicKind
impl PartialEq for HarmonicKind
Source§impl Serialize for HarmonicKind
impl Serialize for HarmonicKind
impl StructuralPartialEq for HarmonicKind
Auto Trait Implementations§
impl Forget for HarmonicKind
impl Freeze for HarmonicKind
impl RefUnwindSafe for HarmonicKind
impl Send for HarmonicKind
impl Sync for HarmonicKind
impl Unpin for HarmonicKind
impl UnsafeUnpin for HarmonicKind
impl UnwindSafe for HarmonicKind
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.