pub enum BarInterval {
Tick,
Second,
Minute,
Hour,
Day,
Week,
Month,
Custom(String),
}Expand description
Descriptive bar interval vocabulary.
Variants§
Tick
Tick-level interval.
Second
Second interval.
Minute
Minute interval.
Hour
Hour interval.
Day
Day interval.
Week
Week interval.
Month
Month interval.
Custom(String)
Caller-defined interval.
Trait Implementations§
Source§impl Clone for BarInterval
impl Clone for BarInterval
Source§fn clone(&self) -> BarInterval
fn clone(&self) -> BarInterval
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 moreSource§impl Debug for BarInterval
impl Debug for BarInterval
Source§impl Display for BarInterval
impl Display for BarInterval
impl Eq for BarInterval
Source§impl FromStr for BarInterval
impl FromStr for BarInterval
Source§type Err = BarIntervalParseError
type Err = BarIntervalParseError
The associated error which can be returned from parsing.
Source§fn from_str(value: &str) -> Result<BarInterval, <BarInterval as FromStr>::Err>
fn from_str(value: &str) -> Result<BarInterval, <BarInterval as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for BarInterval
impl Hash for BarInterval
Source§impl Ord for BarInterval
impl Ord for BarInterval
Source§fn cmp(&self, other: &BarInterval) -> Ordering
fn cmp(&self, other: &BarInterval) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for BarInterval
impl PartialEq for BarInterval
Source§fn eq(&self, other: &BarInterval) -> bool
fn eq(&self, other: &BarInterval) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for BarInterval
impl PartialOrd for BarInterval
impl StructuralPartialEq for BarInterval
Auto Trait Implementations§
impl Freeze for BarInterval
impl RefUnwindSafe for BarInterval
impl Send for BarInterval
impl Sync for BarInterval
impl Unpin for BarInterval
impl UnsafeUnpin for BarInterval
impl UnwindSafe for BarInterval
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