loro_common

Trait HasIdSpan

Source
pub trait HasIdSpan: HasId + HasLength {
    // Provided methods
    fn intersect<T: HasIdSpan>(&self, other: &T) -> bool { ... }
    fn id_span(&self) -> IdSpan { ... }
    fn id_end(&self) -> ID { ... }
    fn id_last(&self) -> ID { ... }
    fn contains_id(&self, id: ID) -> bool { ... }
}

Provided Methods§

Source

fn intersect<T: HasIdSpan>(&self, other: &T) -> bool

Source

fn id_span(&self) -> IdSpan

Source

fn id_end(&self) -> ID

end is the exclusive end, last the inclusive end.

Source

fn id_last(&self) -> ID

end is the exclusive end, last the inclusive end.

Source

fn contains_id(&self, id: ID) -> bool

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§