#[non_exhaustive]pub struct Replacement {
pub span: Span,
pub text: String,
}Expand description
One text edit of a Suggestion: replace the source bytes in span
with text. An empty span inserts; an empty text deletes.
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.span: SpanThe UTF-8 byte range of the source to replace.
text: StringThe new text.
Implementations§
Trait Implementations§
Source§impl Clone for Replacement
impl Clone for Replacement
Source§impl Debug for Replacement
impl Debug for Replacement
impl Eq for Replacement
Source§impl Hash for Replacement
impl Hash for Replacement
Source§impl PartialEq for Replacement
impl PartialEq for Replacement
impl StructuralPartialEq for Replacement
Auto Trait Implementations§
impl Freeze for Replacement
impl RefUnwindSafe for Replacement
impl Send for Replacement
impl Sync for Replacement
impl Unpin for Replacement
impl UnsafeUnpin for Replacement
impl UnwindSafe for Replacement
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