pub struct CrossSection {
pub members: Vec<CrossSectionMember>,
pub timestamp: i64,
}Expand description
A market-wide cross-section (a panel of CrossSectionMembers at one tick),
fed to the market-breadth indicators (advance/decline, McClellan, TRIN, …).
Fields§
§members: Vec<CrossSectionMember>Per-symbol members of the universe for this tick.
timestamp: i64Tick timestamp (engine-defined epoch unit).
Implementations§
Source§impl CrossSection
impl CrossSection
Sourcepub fn to_core(&self) -> Result<CoreCrossSection>
pub fn to_core(&self) -> Result<CoreCrossSection>
Convert into a wickra-core cross-section, validating the member
invariants (finite change, non-negative volume, non-empty).
Trait Implementations§
Source§impl Clone for CrossSection
impl Clone for CrossSection
Source§fn clone(&self) -> CrossSection
fn clone(&self) -> CrossSection
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 CrossSection
impl Debug for CrossSection
Source§impl<'de> Deserialize<'de> for CrossSection
impl<'de> Deserialize<'de> for CrossSection
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 PartialEq for CrossSection
impl PartialEq for CrossSection
Source§impl Serialize for CrossSection
impl Serialize for CrossSection
impl StructuralPartialEq for CrossSection
Auto Trait Implementations§
impl Freeze for CrossSection
impl RefUnwindSafe for CrossSection
impl Send for CrossSection
impl Sync for CrossSection
impl Unpin for CrossSection
impl UnsafeUnpin for CrossSection
impl UnwindSafe for CrossSection
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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