pub trait Adjacent {
// Required methods
fn valid_first(&self) -> bool;
fn is_next(&self, previous: &Self) -> bool;
}Expand description
A trait for types which can be contiguous
Required Methods§
Sourcefn valid_first(&self) -> bool
fn valid_first(&self) -> bool
Whether the item is valid as the first in a sequence
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.