pub enum BubbleColor {
Side,
Delta,
Split,
AbsoluteDelta,
DeltaPercent,
Volume,
}Expand description
What the colour of a bubble shows.
Variants§
Side
The aggressor side with more volume, or the neutral colour on a tie and when no trade has a side.
Delta
The delta as a share of the volume with a side: the sell colour when every trade sold, the buy colour when every trade bought, and the blend between them in between.
Split
Two circles on one centre, each sized by its own side’s volume, so the smaller one shows inside the larger: the sell colour for the bid side, the buy colour for the ask side. Volume of unknown side is left out, and a bubble without any volume with a side is one neutral circle.
AbsoluteDelta
The sign of the delta picks the buy or sell colour, and its absolute size, relative to the largest absolute delta of the visible bubbles, the opacity, down to a fifth of it. A zero delta, and a bubble without volume with a side, take the neutral colour.
DeltaPercent
The delta as a share of the whole volume, unknown side included: the neutral colour when it is zero, fading to the buy or sell colour as the share nears 100%, so volume of unknown side pulls the colour toward neutral.
Volume
The neutral colour for every bubble: the diameter alone shows the volume.
Trait Implementations§
Source§impl Clone for BubbleColor
impl Clone for BubbleColor
Source§fn clone(&self) -> BubbleColor
fn clone(&self) -> BubbleColor
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for BubbleColor
Source§impl Debug for BubbleColor
impl Debug for BubbleColor
Source§impl<'de> Deserialize<'de> for BubbleColor
impl<'de> Deserialize<'de> for BubbleColor
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>,
impl Eq for BubbleColor
Source§impl PartialEq for BubbleColor
impl PartialEq for BubbleColor
Source§impl Serialize for BubbleColor
impl Serialize for BubbleColor
impl StructuralPartialEq for BubbleColor
Auto Trait Implementations§
impl Freeze for BubbleColor
impl RefUnwindSafe for BubbleColor
impl Send for BubbleColor
impl Sync for BubbleColor
impl Unpin for BubbleColor
impl UnsafeUnpin for BubbleColor
impl UnwindSafe for BubbleColor
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
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§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
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> ⓘ
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> ⓘ
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