pub trait Position {
type Target;
type Range;
// Required methods
fn range(&self, ranges: &[&str]) -> Result<Self::Range, ParseError>;
fn get<'a>(&self, label: &'a Label) -> Option<&'a Self::Target>;
fn test(&self, range: &Self::Range, target: &Self::Target) -> bool;
}Expand description
The trait that Position requires to implement
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".