pub struct TranslationParts {
pub manifest: &'static str,
pub lift: Option<TranslationPart>,
pub render: Option<TranslationPart>,
}Expand description
The package-local structural translation interface.
Fields§
§manifest: &'static strThe complete tabnas.plugin.json text.
lift: Option<TranslationPart>An optional lift from the grammar’s events to its first read shape.
render: Option<TranslationPart>An optional render from the write shape to text.
Trait Implementations§
Source§impl Clone for TranslationParts
impl Clone for TranslationParts
impl Copy for TranslationParts
Source§impl Debug for TranslationParts
impl Debug for TranslationParts
impl Eq for TranslationParts
Source§impl PartialEq for TranslationParts
impl PartialEq for TranslationParts
impl StructuralPartialEq for TranslationParts
Auto Trait Implementations§
impl Freeze for TranslationParts
impl RefUnwindSafe for TranslationParts
impl Send for TranslationParts
impl Sync for TranslationParts
impl Unpin for TranslationParts
impl UnsafeUnpin for TranslationParts
impl UnwindSafe for TranslationParts
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.