#[non_exhaustive]pub enum AutoAnchor {
Auto,
HighestHigh,
LowestLow,
HighestVolume,
Session,
Week,
Month,
Quarter,
Year,
Decade,
Century,
}Expand description
How VwapAutoAnchored finds its anchor bar.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Auto
The period by chart interval: session below a day, month at a day, quarter up to 10 days, year up to 60 days, decade above.
HighestHigh
The highest high among the last length bars.
LowestLow
The lowest low among the last length bars.
HighestVolume
The highest volume among the last length bars.
Session
The start of the last trading session.
Week
The start of the last ISO week.
Month
The start of the last calendar month.
Quarter
The start of the last calendar quarter.
Year
The start of the last calendar year.
Decade
The start of the last decade.
Century
The start of the last century.
Trait Implementations§
Source§impl Clone for AutoAnchor
impl Clone for AutoAnchor
Source§fn clone(&self) -> AutoAnchor
fn clone(&self) -> AutoAnchor
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 moreimpl Copy for AutoAnchor
Source§impl Debug for AutoAnchor
impl Debug for AutoAnchor
Source§impl Default for AutoAnchor
impl Default for AutoAnchor
Source§fn default() -> AutoAnchor
fn default() -> AutoAnchor
Returns the “default value” for a type. Read more
impl Eq for AutoAnchor
Source§impl PartialEq for AutoAnchor
impl PartialEq for AutoAnchor
impl StructuralPartialEq for AutoAnchor
Auto Trait Implementations§
impl Freeze for AutoAnchor
impl RefUnwindSafe for AutoAnchor
impl Send for AutoAnchor
impl Sync for AutoAnchor
impl Unpin for AutoAnchor
impl UnsafeUnpin for AutoAnchor
impl UnwindSafe for AutoAnchor
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
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