pub trait Extractable<R>: Sized {
// Required methods
fn wrap(source: &str) -> Cow<'_, str>;
fn extract(tu: R) -> Option<Self>;
}
Expand description
Part of the syntax tree that can be extracted from a parent tree
Required 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.