pub struct PreparedChange<'change> {
pub source_range: Range<usize>,
pub output_range: Range<usize>,
pub before: &'change str,
pub after: &'change str,
pub input_order: usize,
/* private fields */
}Expand description
One normalized edit with exact source and resulting byte ranges.
Fields§
§source_range: Range<usize>§output_range: Range<usize>§before: &'change str§after: &'change str§input_order: usizeImplementations§
Source§impl PreparedChange<'_>
impl PreparedChange<'_>
Sourcepub fn provenance(&self) -> &Provenance
pub fn provenance(&self) -> &Provenance
Primary provenance retained from the first equivalent prepared edit.
Sourcepub fn provenances(&self) -> impl Iterator<Item = &Provenance>
pub fn provenances(&self) -> impl Iterator<Item = &Provenance>
Every distinct provenance retained across equivalent unioned edits.
pub fn provenance_count(&self) -> usize
Trait Implementations§
Source§impl<'change> Clone for PreparedChange<'change>
impl<'change> Clone for PreparedChange<'change>
Source§fn clone(&self) -> PreparedChange<'change>
fn clone(&self) -> PreparedChange<'change>
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<'change> Debug for PreparedChange<'change>
impl<'change> Debug for PreparedChange<'change>
impl<'change> Eq for PreparedChange<'change>
Source§impl<'change> PartialEq for PreparedChange<'change>
impl<'change> PartialEq for PreparedChange<'change>
impl<'change> StructuralPartialEq for PreparedChange<'change>
Auto Trait Implementations§
impl<'change> Freeze for PreparedChange<'change>
impl<'change> RefUnwindSafe for PreparedChange<'change>
impl<'change> Send for PreparedChange<'change>
impl<'change> Sync for PreparedChange<'change>
impl<'change> Unpin for PreparedChange<'change>
impl<'change> UnsafeUnpin for PreparedChange<'change>
impl<'change> UnwindSafe for PreparedChange<'change>
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