pub(crate) struct SyntaxFixups {
pub(crate) append: FxHashMap<SyntaxElement, Vec<Leaf>>,
pub(crate) remove: FxHashSet<SyntaxElement>,
pub(crate) undo_info: SyntaxFixupUndoInfo,
}Expand description
The result of calculating fixes for a syntax node – a bunch of changes (appending to and replacing nodes), the information that is needed to reverse those changes afterwards, and a token map.
Fields§
§append: FxHashMap<SyntaxElement, Vec<Leaf>>§remove: FxHashSet<SyntaxElement>§undo_info: SyntaxFixupUndoInfoTrait Implementations§
Source§impl Debug for SyntaxFixups
impl Debug for SyntaxFixups
Source§impl Default for SyntaxFixups
impl Default for SyntaxFixups
Source§fn default() -> SyntaxFixups
fn default() -> SyntaxFixups
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SyntaxFixups
impl !RefUnwindSafe for SyntaxFixups
impl !Send for SyntaxFixups
impl !Sync for SyntaxFixups
impl Unpin for SyntaxFixups
impl UnsafeUnpin for SyntaxFixups
impl !UnwindSafe for SyntaxFixups
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more