pub trait SpanWeight<S>:
PartialEq
+ Default
+ Debug
+ Clone {
// Required methods
fn alloc(_span: &S) -> Self;
fn and(self, b: &Self) -> Self;
fn union(&mut self, other: &Self);
fn maybe_sub(&mut self, other: &Self) -> bool;
}Required Methods§
fn alloc(_span: &S) -> Self
fn and(self, b: &Self) -> Self
fn union(&mut self, other: &Self)
fn maybe_sub(&mut self, other: &Self) -> 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.