pub struct SubstituteOutcome {
pub replacements: usize,
pub lines_changed: 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.
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 moreSource§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
Source§impl PartialEq for SubstituteOutcome
impl PartialEq for SubstituteOutcome
Source§fn eq(&self, other: &SubstituteOutcome) -> bool
fn eq(&self, other: &SubstituteOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SubstituteOutcome
impl Eq 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