pub trait MergableSpan: Clone {
// Required methods
fn can_append(&self, other: &Self) -> bool;
fn append(&mut self, other: Self);
// Provided method
fn prepend(&mut self, other: Self) { ... }
}Required Methods§
Sourcefn can_append(&self, other: &Self) -> bool
fn can_append(&self, other: &Self) -> bool
See if the other item can be appended to self. can_append will always be called
immediately before append.
Provided Methods§
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.