#[repr(u8)]pub enum CandleWidth {
OneSecond = 1,
FiveSecond = 2,
OneMinute = 4,
FifteenMinute = 8,
OneHour = 16,
OneDay = 32,
}Variants§
Implementations§
Trait Implementations§
source§impl BitAnd for CandleWidth
impl BitAnd for CandleWidth
source§impl BitFlag for CandleWidth
impl BitFlag for CandleWidth
source§fn empty() -> BitFlags<Self>
fn empty() -> BitFlags<Self>
Create a
BitFlags with no flags set (in other words, with a value of 0). Read moresource§fn from_bits(bits: Self::Numeric) -> Result<BitFlags<Self>, FromBitsError<Self>>
fn from_bits(bits: Self::Numeric) -> Result<BitFlags<Self>, FromBitsError<Self>>
Create a
BitFlags if the raw value provided does not contain
any illegal flags. Read moresource§fn from_bits_truncate(bits: Self::Numeric) -> BitFlags<Self>
fn from_bits_truncate(bits: Self::Numeric) -> BitFlags<Self>
Create a
BitFlags from an underlying bitwise value. If any
invalid bits are set, ignore them. Read moresource§unsafe fn from_bits_unchecked(bits: Self::Numeric) -> BitFlags<Self>
unsafe fn from_bits_unchecked(bits: Self::Numeric) -> BitFlags<Self>
Create a
BitFlags unsafely, without checking if the bits form
a valid bit pattern for the type. Read moresource§impl BitOr for CandleWidth
impl BitOr for CandleWidth
source§impl BitXor for CandleWidth
impl BitXor for CandleWidth
source§impl Clone for CandleWidth
impl Clone for CandleWidth
source§fn clone(&self) -> CandleWidth
fn clone(&self) -> CandleWidth
Returns a copy of the value. Read more
1.0.0 · 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 CandleWidth
impl Debug for CandleWidth
source§impl<'de> Deserialize<'de> for CandleWidth
impl<'de> Deserialize<'de> for CandleWidth
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
source§impl FromStr for CandleWidth
impl FromStr for CandleWidth
source§impl Hash for CandleWidth
impl Hash for CandleWidth
source§impl Into<TimeDelta> for CandleWidth
impl Into<TimeDelta> for CandleWidth
source§impl Not for CandleWidth
impl Not for CandleWidth
source§impl PartialEq for CandleWidth
impl PartialEq for CandleWidth
source§impl RawBitFlags for CandleWidth
impl RawBitFlags for CandleWidth
source§const EMPTY: Self::Numeric = {transmute(0x00): <marketdata::CandleWidth as enumflags2::_internal::RawBitFlags>::Numeric}
const EMPTY: Self::Numeric = {transmute(0x00): <marketdata::CandleWidth as enumflags2::_internal::RawBitFlags>::Numeric}
A value with no bits set.
source§const DEFAULT: Self::Numeric = {transmute(0x00): <marketdata::CandleWidth as enumflags2::_internal::RawBitFlags>::Numeric}
const DEFAULT: Self::Numeric = {transmute(0x00): <marketdata::CandleWidth as enumflags2::_internal::RawBitFlags>::Numeric}
The value used by the Default implementation. Equivalent to EMPTY, unless
customized.
source§const ALL_BITS: Self::Numeric = {transmute(0x3f): <marketdata::CandleWidth as enumflags2::_internal::RawBitFlags>::Numeric}
const ALL_BITS: Self::Numeric = {transmute(0x3f): <marketdata::CandleWidth as enumflags2::_internal::RawBitFlags>::Numeric}
A value with all flag bits set.
source§const BITFLAGS_TYPE_NAME: &'static str = "BitFlags<CandleWidth>"
const BITFLAGS_TYPE_NAME: &'static str = "BitFlags<CandleWidth>"
The name of the type for debug formatting purposes. Read more
source§impl Serialize for CandleWidth
impl Serialize for CandleWidth
impl Copy for CandleWidth
impl Eq for CandleWidth
impl StructuralPartialEq for CandleWidth
Auto Trait Implementations§
impl Freeze for CandleWidth
impl RefUnwindSafe for CandleWidth
impl Send for CandleWidth
impl Sync for CandleWidth
impl Unpin for CandleWidth
impl UnwindSafe for CandleWidth
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.