pub struct Transformation {
pub rule: Rule,
pub target: Option<usize>,
pub is_upper_case: bool,
}Expand description
Represents a single keypress or a transformation derived from it (e.g., adding a mark or tone).
Fields§
§rule: RuleThe rule that was applied to create this transformation.
target: Option<usize>The index of the transformation in the composition that this transformation targets (if any). For example, a tone mark transformation targets an earlier vowel.
is_upper_case: boolWhether the resulting character should be rendered as uppercase.
Trait Implementations§
Source§impl Clone for Transformation
impl Clone for Transformation
Source§fn clone(&self) -> Transformation
fn clone(&self) -> Transformation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Transformation
impl Debug for Transformation
Source§impl Default for Transformation
impl Default for Transformation
Source§fn default() -> Transformation
fn default() -> Transformation
Returns the “default value” for a type. Read more
Source§impl Hash for Transformation
impl Hash for Transformation
Source§impl PartialEq for Transformation
impl PartialEq for Transformation
impl Copy for Transformation
impl Eq for Transformation
impl StructuralPartialEq for Transformation
Auto Trait Implementations§
impl Freeze for Transformation
impl RefUnwindSafe for Transformation
impl Send for Transformation
impl Sync for Transformation
impl Unpin for Transformation
impl UnsafeUnpin for Transformation
impl UnwindSafe for Transformation
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