Trait TableSecondaryIndexEventsOps

Source
pub trait TableSecondaryIndexEventsOps<AvailableIndexes> {
    // Required methods
    fn extend(&mut self, another: Self)
       where Self: Sized;
    fn remove(&mut self, another: &Self)
       where Self: Sized;
    fn last_evs(&self) -> HashMap<AvailableIndexes, Option<IndexChangeEventId>>;
    fn first_evs(&self) -> HashMap<AvailableIndexes, Option<IndexChangeEventId>>;
    fn iter_event_ids(&self) -> impl Iterator<Item = (AvailableIndexes, Id)>;
    fn sort(&mut self);
    fn validate(&mut self) -> Self
       where Self: Sized;
    fn is_empty(&self) -> bool;
    fn is_unit() -> bool;

    // Provided methods
    fn is_first_ev_is_split(&self, _index: AvailableIndexes) -> bool { ... }
    fn contains_event(&self, _index: AvailableIndexes, _id: Id) -> bool { ... }
}

Required Methods§

Source

fn extend(&mut self, another: Self)
where Self: Sized,

Source

fn remove(&mut self, another: &Self)
where Self: Sized,

Source

fn last_evs(&self) -> HashMap<AvailableIndexes, Option<IndexChangeEventId>>

Source

fn first_evs(&self) -> HashMap<AvailableIndexes, Option<IndexChangeEventId>>

Source

fn iter_event_ids(&self) -> impl Iterator<Item = (AvailableIndexes, Id)>

Source

fn sort(&mut self)

Source

fn validate(&mut self) -> Self
where Self: Sized,

Source

fn is_empty(&self) -> bool

Source

fn is_unit() -> bool

Provided Methods§

Source

fn is_first_ev_is_split(&self, _index: AvailableIndexes) -> bool

Source

fn contains_event(&self, _index: AvailableIndexes, _id: Id) -> bool

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§