pub enum LegacyRewrite {
Rename {
to: &'static str,
},
Drop {
pointer: &'static str,
},
InvertBool {
to: &'static str,
},
}Expand description
What the loader’s sealed translation does with the key — and therefore what the rewriter writes.
Variants§
Rename
The key was renamed; its value carries over unchanged.
Drop
Dead vocabulary: the loader consumes nothing from it, so the key
and its value are removed. pointer names the current-language
key an author reaches for instead.
InvertBool
A boolean key of inverted polarity: <retired>: true becomes
absence (the current default), <retired>: false becomes
<to>: true. When the entry already carries <to>, the loader
lets it win and the retired key is simply removed.
Trait Implementations§
Source§impl Clone for LegacyRewrite
impl Clone for LegacyRewrite
Source§fn clone(&self) -> LegacyRewrite
fn clone(&self) -> LegacyRewrite
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LegacyRewrite
Source§impl Debug for LegacyRewrite
impl Debug for LegacyRewrite
impl Eq for LegacyRewrite
Source§impl PartialEq for LegacyRewrite
impl PartialEq for LegacyRewrite
impl StructuralPartialEq for LegacyRewrite
Auto Trait Implementations§
impl Freeze for LegacyRewrite
impl RefUnwindSafe for LegacyRewrite
impl Send for LegacyRewrite
impl Sync for LegacyRewrite
impl Unpin for LegacyRewrite
impl UnsafeUnpin for LegacyRewrite
impl UnwindSafe for LegacyRewrite
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.