pub enum StructureTrend {
Bullish,
Bearish,
Undetermined,
}Expand description
Structural market trend derived from swing highs and swing lows.
Variants§
Bullish
Consecutive higher highs and higher lows, or confirmed bullish break.
Bearish
Consecutive lower lows and lower highs, or confirmed bearish break.
Undetermined
Insufficient swing structure to determine definitive trend direction.
Implementations§
Source§impl StructureTrend
impl StructureTrend
pub fn is_bullish(self) -> bool
pub fn is_bearish(self) -> bool
pub fn is_undetermined(self) -> bool
Trait Implementations§
Source§impl Clone for StructureTrend
impl Clone for StructureTrend
impl Copy for StructureTrend
Source§impl Debug for StructureTrend
impl Debug for StructureTrend
Source§impl<'de> Deserialize<'de> for StructureTrend
impl<'de> Deserialize<'de> for StructureTrend
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 StructureTrend
Source§impl Hash for StructureTrend
impl Hash for StructureTrend
Source§impl PartialEq for StructureTrend
impl PartialEq for StructureTrend
Source§impl Serialize for StructureTrend
impl Serialize for StructureTrend
impl StructuralPartialEq for StructureTrend
Auto Trait Implementations§
impl Forget for StructureTrend
impl Freeze for StructureTrend
impl Move for StructureTrend
impl RefUnwindSafe for StructureTrend
impl Send for StructureTrend
impl Sync for StructureTrend
impl Unpin for StructureTrend
impl UnsafeUnpin for StructureTrend
impl UnwindSafe for StructureTrend
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.