pub trait Language:
Sized
+ Copy
+ Debug
+ Eq
+ Ord
+ Hash {
type Kind: Sized + Copy + Debug + Eq + Ord + Hash;
// Required methods
fn kind_from_raw(raw: SyntaxKind) -> Self::Kind;
fn kind_to_raw(kind: Self::Kind) -> SyntaxKind;
}
Required Associated Types§
Required Methods§
fn kind_from_raw(raw: SyntaxKind) -> Self::Kind
fn kind_to_raw(kind: Self::Kind) -> SyntaxKind
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.