pub struct Rule {
pub key: char,
pub effect: u8,
pub effect_type: EffectType,
pub effect_on: char,
pub result: char,
pub appended: [char; 2],
pub appended_len: u8,
}Expand description
A transformation rule that defines how a key press affects the composition.
Fields§
§key: charThe key that triggers this rule.
effect: u8Effect value:
effect_type: EffectTypeThe type of transformation to apply.
effect_on: charThe character that this rule targets (to be replaced or marked).
result: charThe resulting character after applying the transformation.
appended: [char; 2]Additional characters to append immediately after this one (used for multi-character shortcuts).
appended_len: u8Number of characters in appended.
Implementations§
Trait Implementations§
impl Copy for Rule
impl Eq for Rule
impl StructuralPartialEq for Rule
Auto Trait Implementations§
impl Freeze for Rule
impl RefUnwindSafe for Rule
impl Send for Rule
impl Sync for Rule
impl Unpin for Rule
impl UnsafeUnpin for Rule
impl UnwindSafe for Rule
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