StripData

Trait StripData 

Source
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§

Source

type StrippedType

The type without user data

Required Methods§

Source

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.

Implementors§