pub enum RelativeVolatilityVariant {
Close,
HighLow,
}Expand description
Which prices the Relative Volatility Index is measured on.
Variants§
Close
The closing price alone, as the index was first defined.
HighLow
The same measurement run separately on highs and on lows, then averaged. The later revision, which reacts to the range rather than to one price per bar.
Trait Implementations§
Source§impl Clone for RelativeVolatilityVariant
impl Clone for RelativeVolatilityVariant
Source§fn clone(&self) -> RelativeVolatilityVariant
fn clone(&self) -> RelativeVolatilityVariant
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 RelativeVolatilityVariant
Source§impl Debug for RelativeVolatilityVariant
impl Debug for RelativeVolatilityVariant
Source§impl Default for RelativeVolatilityVariant
impl Default for RelativeVolatilityVariant
Source§fn default() -> RelativeVolatilityVariant
fn default() -> RelativeVolatilityVariant
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RelativeVolatilityVariant
impl<'de> Deserialize<'de> for RelativeVolatilityVariant
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 RelativeVolatilityVariant
impl StructuralPartialEq for RelativeVolatilityVariant
Auto Trait Implementations§
impl Freeze for RelativeVolatilityVariant
impl RefUnwindSafe for RelativeVolatilityVariant
impl Send for RelativeVolatilityVariant
impl Sync for RelativeVolatilityVariant
impl Unpin for RelativeVolatilityVariant
impl UnsafeUnpin for RelativeVolatilityVariant
impl UnwindSafe for RelativeVolatilityVariant
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