pub struct SubstituteOutcome {
pub replacements: usize,
pub lines_changed: usize,
pub last_row: Option<usize>,
}Expand description
Result of apply_substitute.
Fields§
§replacements: usizeTotal number of individual replacements made across all lines.
lines_changed: usizeNumber of lines that had at least one replacement.
last_row: Option<usize>0-based row of the last changed line (where the cursor lands). None
when nothing changed. Used by the ex layer to print the line for the
p / # / l flags.
Trait Implementations§
Source§impl Clone for SubstituteOutcome
impl Clone for SubstituteOutcome
Source§fn clone(&self) -> SubstituteOutcome
fn clone(&self) -> SubstituteOutcome
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 moreimpl Copy for SubstituteOutcome
Source§impl Debug for SubstituteOutcome
impl Debug for SubstituteOutcome
Source§impl Default for SubstituteOutcome
impl Default for SubstituteOutcome
Source§fn default() -> SubstituteOutcome
fn default() -> SubstituteOutcome
Returns the “default value” for a type. Read more
impl Eq for SubstituteOutcome
Source§impl PartialEq for SubstituteOutcome
impl PartialEq for SubstituteOutcome
impl StructuralPartialEq for SubstituteOutcome
Auto Trait Implementations§
impl Freeze for SubstituteOutcome
impl RefUnwindSafe for SubstituteOutcome
impl Send for SubstituteOutcome
impl Sync for SubstituteOutcome
impl Unpin for SubstituteOutcome
impl UnsafeUnpin for SubstituteOutcome
impl UnwindSafe for SubstituteOutcome
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