#[non_exhaustive]pub struct RuleTransition {
pub rule: &'static str,
pub changes: Vec<ConditionChange>,
}Expand description
The changes one rule made, in Shaper::trace.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.rule: &'static strThe rule name (see Shaper::rule_names).
changes: Vec<ConditionChange>Every token whose condition changed, in token order.
Trait Implementations§
Source§impl Clone for RuleTransition
impl Clone for RuleTransition
Source§fn clone(&self) -> RuleTransition
fn clone(&self) -> RuleTransition
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 moreSource§impl Debug for RuleTransition
impl Debug for RuleTransition
impl Eq for RuleTransition
Source§impl PartialEq for RuleTransition
impl PartialEq for RuleTransition
impl StructuralPartialEq for RuleTransition
Auto Trait Implementations§
impl Freeze for RuleTransition
impl RefUnwindSafe for RuleTransition
impl Send for RuleTransition
impl Sync for RuleTransition
impl Unpin for RuleTransition
impl UnsafeUnpin for RuleTransition
impl UnwindSafe for RuleTransition
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