pub struct ApplyResult {
pub text: String,
pub first_changed_line: Option<u32>,
pub warnings: Vec<String>,
}Expand description
Result of applying a parsed set of edits to a text body.
Fields§
§text: StringThe resulting text after all edits are applied.
first_changed_line: Option<u32>1-indexed line number of the first changed line, if any.
warnings: Vec<String>Warning messages generated during apply (boundary repair, landing correction, etc.).
Trait Implementations§
Source§impl Clone for ApplyResult
impl Clone for ApplyResult
Source§fn clone(&self) -> ApplyResult
fn clone(&self) -> ApplyResult
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 ApplyResult
impl Debug for ApplyResult
Source§impl Default for ApplyResult
impl Default for ApplyResult
Source§fn default() -> ApplyResult
fn default() -> ApplyResult
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ApplyResult
impl RefUnwindSafe for ApplyResult
impl Send for ApplyResult
impl Sync for ApplyResult
impl Unpin for ApplyResult
impl UnsafeUnpin for ApplyResult
impl UnwindSafe for ApplyResult
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