Trait flo_animation::PendingEditLog
[−]
[src]
pub trait PendingEditLog<Edit> { fn pending(&self) -> Vec<Edit>; fn set_pending(&mut self, edits: &[Edit]); fn commit_pending(&mut self); fn cancel_pending(&mut self); }
Trait implemented by edit logs representing a set of edits waiting to be committed to another edit log.
Required Methods
fn pending(&self) -> Vec<Edit>
The current set of pending edits
fn set_pending(&mut self, edits: &[Edit])
Sets the pending edits for this log (replacing any existing pending edits)
fn commit_pending(&mut self)
Commits any pending edits for this log. Returns the range where the edits were committed.
fn cancel_pending(&mut self)
Cancels any pending edits for this log
Implementations on Foreign Types
impl<'a, Edit, Log: PendingEditLog<Edit>> PendingEditLog<Edit> for &'a mut Log
[src]
fn pending(&self) -> Vec<Edit>
[src]
fn set_pending(&mut self, edits: &[Edit])
[src]
fn commit_pending(&mut self)
[src]
fn cancel_pending(&mut self)
[src]
impl<'a, Edit, Log: PendingEditLog<Edit>> PendingEditLog<Edit> for RwLockWriteGuard<'a, Log>
[src]
fn pending(&self) -> Vec<Edit>
[src]
fn set_pending(&mut self, edits: &[Edit])
[src]
fn commit_pending(&mut self)
[src]
fn cancel_pending(&mut self)
[src]
impl<'a, Edit, Log: PendingEditLog<Edit>> PendingEditLog<Edit> for RwLock<Log>
[src]
fn pending(&self) -> Vec<Edit>
[src]
fn set_pending(&mut self, edits: &[Edit])
[src]
fn commit_pending(&mut self)
[src]
fn cancel_pending(&mut self)
[src]
impl<'a, Edit, Log: PendingEditLog<Edit>> PendingEditLog<Edit> for Arc<RwLock<Log>>
[src]
fn pending(&self) -> Vec<Edit>
[src]
fn set_pending(&mut self, edits: &[Edit])
[src]
fn commit_pending(&mut self)
[src]
fn cancel_pending(&mut self)
[src]
Implementors
impl<Edit: Clone, CommitFn> PendingEditLog<Edit> for InMemoryPendingLog<Edit, CommitFn> where
CommitFn: FnMut(Vec<Edit>),