pub trait Phrase {
type Head;
// Required methods
fn from_head(head: Self::Head) -> Self;
fn head(&self) -> &Self::Head;
fn with_head(self, head: Self::Head) -> Self;
}Required Associated Types§
Required Methods§
fn from_head(head: Self::Head) -> Self
fn head(&self) -> &Self::Head
fn with_head(self, head: Self::Head) -> Self
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.