Trait loro_rle::HasIndex

source ·
pub trait HasIndex: HasLength {
    type Int: GlobalIndex;

    // Required method
    fn get_start_index(&self) -> Self::Int;

    // Provided method
    fn get_end_index(&self) -> Self::Int { ... }
}

Required Associated Types§

source

type Int: GlobalIndex

Required Methods§

source

fn get_start_index(&self) -> Self::Int

Provided Methods§

source

fn get_end_index(&self) -> Self::Int

Implementations on Foreign Types§

source§

impl<T: GlobalIndex + NumCast> HasIndex for Range<T>

§

type Int = T

source§

fn get_start_index(&self) -> Self::Int

Implementors§