pub trait StripData<T>: Sized {
type StrippedType;
// Required method
fn strip_data(self) -> Self::StrippedType;
}Expand description
Remove user data from an AST node
Required Associated Types§
Sourcetype StrippedType
type StrippedType
The type without user data
Required Methods§
Sourcefn strip_data(self) -> Self::StrippedType
fn strip_data(self) -> Self::StrippedType
Remove user data from this AST node
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.