pub struct KagiLine {
pub open: f64,
pub close: f64,
pub direction: i8,
pub thickness: i8,
}Expand description
One completed Kagi line, running between two consecutive turning points.
direction is +1 (up) / -1 (down); thickness is +1 (yang), -1 (yin), or 0
(undetermined — no prior shoulder/waist has been broken yet).
Fields§
§open: f64Start turning point (the previous extreme the line departs from).
close: f64End turning point (the extreme where the reversal was confirmed).
direction: i8§thickness: i8Trait Implementations§
impl Copy for KagiLine
impl StructuralPartialEq for KagiLine
Auto Trait Implementations§
impl Freeze for KagiLine
impl RefUnwindSafe for KagiLine
impl Send for KagiLine
impl Sync for KagiLine
impl Unpin for KagiLine
impl UnsafeUnpin for KagiLine
impl UnwindSafe for KagiLine
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> 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.