pub struct FibTimeZonesOutput {
pub on_zone: f64,
pub bars_to_next: f64,
}Expand description
Where the current bar sits relative to the Fibonacci time-zone grid anchored on the most recent confirmed pivot.
Fields§
§on_zone: f641.0 when the current bar lands on a Fibonacci time zone (a bar distance
of 1, 2, 3, 5, 8, 13, … from the anchor pivot), otherwise 0.0.
bars_to_next: f64Number of bars until the next Fibonacci time zone (0 is never returned —
when on a zone this is the gap to the following one).
Trait Implementations§
Source§impl Clone for FibTimeZonesOutput
impl Clone for FibTimeZonesOutput
Source§fn clone(&self) -> FibTimeZonesOutput
fn clone(&self) -> FibTimeZonesOutput
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 FibTimeZonesOutput
Source§impl Debug for FibTimeZonesOutput
impl Debug for FibTimeZonesOutput
Source§impl PartialEq for FibTimeZonesOutput
impl PartialEq for FibTimeZonesOutput
Source§fn eq(&self, other: &FibTimeZonesOutput) -> bool
fn eq(&self, other: &FibTimeZonesOutput) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FibTimeZonesOutput
Auto Trait Implementations§
impl Freeze for FibTimeZonesOutput
impl RefUnwindSafe for FibTimeZonesOutput
impl Send for FibTimeZonesOutput
impl Sync for FibTimeZonesOutput
impl Unpin for FibTimeZonesOutput
impl UnsafeUnpin for FibTimeZonesOutput
impl UnwindSafe for FibTimeZonesOutput
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,
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