pub trait AsEncodingId:
Debug
+ Send
+ Sync {
// Required method
fn encoding_id(&self) -> Id;
}Expand description
A source of an encoding id for edition declarations.
Implemented for raw id strings ("vortex.alp") and interned Ids here; encoding
vtables implement it where they are defined, so a declaration can name the vtable
(&Primitive) instead of spelling its id.
Required Methods§
Sourcefn encoding_id(&self) -> Id
fn encoding_id(&self) -> Id
The interned encoding id.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".