pub enum Mapping {
Manual,
EnToRu,
RuToEn,
}Expand description
Direction of a conversion.
Variants§
Manual
Convert every EN/RU letter to the character on the same key in the other layout, in
either direction, and leave every other unit unchanged. A Russian letter can map to
punctuation (х to [), which a second pass then leaves alone, so Manual is not an
involution.
EnToRu
Read each US character in the map as the Russian character on the same key.
RuToEn
Read each Russian character in the map as the US character on the same key.
Trait Implementations§
impl Copy for Mapping
impl Eq for Mapping
impl StructuralPartialEq for Mapping
Auto Trait Implementations§
impl Freeze for Mapping
impl RefUnwindSafe for Mapping
impl Send for Mapping
impl Sync for Mapping
impl Unpin for Mapping
impl UnsafeUnpin for Mapping
impl UnwindSafe for Mapping
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