struct PreparedElement {
syntax: SyntaxElement,
annotations: Vec<TrackedAnnotation>,
}Expand description
A replacement payload paired with the annotation below it.
The syntax element remains an immutable snapshot of its source tree. Annotation paths are relative to the payload root and are rebased by splice
Fields§
§syntax: SyntaxElement§annotations: Vec<TrackedAnnotation>Implementations§
Source§impl PreparedElement
impl PreparedElement
fn into_green(self) -> NodeOrToken<GreenNode, GreenToken>
Auto Trait Implementations§
impl !RefUnwindSafe for PreparedElement
impl !Send for PreparedElement
impl !Sync for PreparedElement
impl !UnwindSafe for PreparedElement
impl Freeze for PreparedElement
impl Unpin for PreparedElement
impl UnsafeUnpin for PreparedElement
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> ⓘ
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