Trait flo_animation::EditLog
[−]
[src]
pub trait EditLog<Edit> { fn length(&self) -> usize; fn read(&self, indices: &mut Iterator<Item = usize>) -> Vec<Edit>; }
Trait implemented by things that can be edited (or described) by sequences of commands
Required Methods
fn length(&self) -> usize
Retrieves the number of edits in this log
fn read(&self, indices: &mut Iterator<Item = usize>) -> Vec<Edit>
Reads a range of edits from this log
Implementations on Foreign Types
impl<'a, Edit, Log: EditLog<Edit>> EditLog<Edit> for &'a mut Log
[src]
impl<'a, Edit, Log: EditLog<Edit>> EditLog<Edit> for RwLockReadGuard<'a, Log>
[src]
impl<'a, Edit, Log: EditLog<Edit>> EditLog<Edit> for RwLockWriteGuard<'a, Log>
[src]
impl<'a, Edit, Log: EditLog<Edit>> EditLog<Edit> for RwLock<Log>
[src]
impl<'a, Edit, Log: EditLog<Edit>> EditLog<Edit> for Arc<RwLock<Log>>
[src]
Implementors
impl<Edit: Clone> EditLog<Edit> for InMemoryEditLog<Edit>