#[non_exhaustive]pub struct Rewritten {
pub by: String,
pub width: u16,
pub before: String,
pub after: String,
}Expand description
One rewrite of a derivation: what made it, and the subexpression before and after, as text that parses in any context (symbols with their widths).
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.by: StringThe rule (group::rule), the pass, or the whole-root stage that made it.
width: u16The width of both sides.
before: StringThe subexpression rewritten.
after: StringWhat it became.
Trait Implementations§
impl Eq for Rewritten
impl StructuralPartialEq for Rewritten
Auto Trait Implementations§
impl Forget for Rewritten
impl Freeze for Rewritten
impl Move for Rewritten
impl RefUnwindSafe for Rewritten
impl Send for Rewritten
impl Sync for Rewritten
impl Unpin for Rewritten
impl UnsafeUnpin for Rewritten
impl UnwindSafe for Rewritten
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