Skip to main content

UpdateSet

Trait UpdateSet 

Source
pub trait UpdateSet {
    type Key: Hash + PartialEq + Eq + Ord + Serialize + DeserializeOwned;
    type Value: PartialEq + Serialize + DeserializeOwned;

    // Required methods
    fn value(&self) -> Self::Value;
    fn key(&self) -> Self::Key;
    fn should_be_deleted(&self) -> bool;
}
Expand description

Helper trait fro working with fields that have either 2 or 3 tuple elements (present in the Stream API ladder)

Required Associated Types§

Required Methods§

Source

fn value(&self) -> Self::Value

Source

fn key(&self) -> Self::Key

Source

fn should_be_deleted(&self) -> bool

Implementations on Foreign Types§

Source§

impl UpdateSet for UpdateSet2

Source§

type Key = Price

Source§

type Value = Size

Source§

fn value(&self) -> Self::Value

Source§

fn key(&self) -> Self::Key

Source§

fn should_be_deleted(&self) -> bool

Source§

impl UpdateSet for UpdateSet3

Source§

type Key = Position

Source§

type Value = (Price, Size)

Source§

fn value(&self) -> Self::Value

Source§

fn key(&self) -> Self::Key

Source§

fn should_be_deleted(&self) -> bool

Implementors§