Trait loro_rle::RleCollection

source ·
pub trait RleCollection<T: HasIndex> {
    // Required methods
    fn start(&self) -> <T as HasIndex>::Int;
    fn end(&self) -> <T as HasIndex>::Int;
    fn sum_atom_len(&self) -> <T as HasIndex>::Int;
    fn search_atom_index(&self, index: <T as HasIndex>::Int) -> usize;
    fn get_by_atom_index(
        &self,
        index: <T as HasIndex>::Int
    ) -> Option<SearchResult<'_, T, <T as HasIndex>::Int>>;
}

Required Methods§

source

fn start(&self) -> <T as HasIndex>::Int

source

fn end(&self) -> <T as HasIndex>::Int

source

fn sum_atom_len(&self) -> <T as HasIndex>::Int

source

fn search_atom_index(&self, index: <T as HasIndex>::Int) -> usize

source

fn get_by_atom_index( &self, index: <T as HasIndex>::Int ) -> Option<SearchResult<'_, T, <T as HasIndex>::Int>>

Implementations on Foreign Types§

source§

impl<T: Mergable + HasIndex + HasLength> RleCollection<T> for Vec<T>

source§

fn search_atom_index(&self, index: <T as HasIndex>::Int) -> usize

source§

fn get_by_atom_index( &self, index: <T as HasIndex>::Int ) -> Option<SearchResult<'_, T, <T as HasIndex>::Int>>

source§

fn start(&self) -> <T as HasIndex>::Int

source§

fn end(&self) -> <T as HasIndex>::Int

source§

fn sum_atom_len(&self) -> <T as HasIndex>::Int

Implementors§