pub struct VecTable<Event> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<Event: Clone> Table for VecTable<Event>
impl<Event: Clone> Table for VecTable<Event>
Source§fn append<Iter: IntoIterator<Item = Self::Event>>(
&mut self,
events: Iter,
) -> Vec<Seq> ⓘ
fn append<Iter: IntoIterator<Item = Self::Event>>( &mut self, events: Iter, ) -> Vec<Seq> ⓘ
Write the given events to the table. Returns the sequence numbers assigned, in order.
Source§fn set_current_seq(&mut self, seq: Seq)
fn set_current_seq(&mut self, seq: Seq)
Sets the current sequence number of the table unless its sequence number is already greater.
Source§impl<Event: Clone> View for VecTable<Event>
impl<Event: Clone> View for VecTable<Event>
type Event = Event
type Iterator = VecTableIterator<Event>
Source§fn scan(&mut self, start: Seq, end: Seq) -> Self::Iterator
fn scan(&mut self, start: Seq, end: Seq) -> Self::Iterator
Scan the view for events between the given sequences. Returns an double-ended iterator over the events. No work
is done until the iterator is consumed.
Source§fn get_current_seq(&mut self) -> Seq
fn get_current_seq(&mut self) -> Seq
Returns the current sequence number of the view. All new events will have a sequence number greater than this.
Auto Trait Implementations§
impl<Event> Freeze for VecTable<Event>
impl<Event> RefUnwindSafe for VecTable<Event>where
Vec<Event>: RefUnwindSafe,
impl<Event> Send for VecTable<Event>
impl<Event> Sync for VecTable<Event>
impl<Event> Unpin for VecTable<Event>
impl<Event> UnsafeUnpin for VecTable<Event>where
Vec<Event>: UnsafeUnpin,
impl<Event> UnwindSafe for VecTable<Event>where
Vec<Event>: UnwindSafe,
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§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