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§
fn intersect<T: HasIdSpan>(&self, other: &T) -> bool
fn id_span(&self) -> IdSpan
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.