pub struct TargetDescriptor {
pub id: DialectId,
pub aliases: &'static [&'static str],
}Expand description
One dialect that a caller can request from an encoder.
Synthesis is a static capability. The catalog states ids, aliases, and the cross-format default; input-conditioned preservation remains a write planner decision.
Fields§
§id: DialectIdRegistry dialect id, e.g. step:ap242-e3.
aliases: &'static [&'static str]Short spellings accepted for id, e.g. ["6"] for rhino:archive-60.
Implementations§
Source§impl TargetDescriptor
impl TargetDescriptor
Sourcepub fn accepted_tokens(&self) -> impl Iterator<Item = &str>
pub fn accepted_tokens(&self) -> impl Iterator<Item = &str>
Every token accepted for this target: full id, format-local id, and aliases.
Trait Implementations§
Source§impl Clone for TargetDescriptor
impl Clone for TargetDescriptor
Source§impl Debug for TargetDescriptor
impl Debug for TargetDescriptor
impl Eq for TargetDescriptor
Source§impl PartialEq for TargetDescriptor
impl PartialEq for TargetDescriptor
impl StructuralPartialEq for TargetDescriptor
Auto Trait Implementations§
impl Freeze for TargetDescriptor
impl RefUnwindSafe for TargetDescriptor
impl Send for TargetDescriptor
impl Sync for TargetDescriptor
impl Unpin for TargetDescriptor
impl UnsafeUnpin for TargetDescriptor
impl UnwindSafe for TargetDescriptor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more