Enum Change
pub enum Change {
Added(Vec<Out>),
Removed(u32),
Retain(u32),
}Expand description
A single change done over an array-component of shared data type.
Variants§
Added(Vec<Out>)
Determines a change that resulted in adding a consecutive number of new elements:
- For Array it’s a range of inserted elements.
- For [XmlElement] it’s a range of inserted child XML nodes.
Removed(u32)
Determines a change that resulted in removing a consecutive range of existing elements, either XML child nodes for [XmlElement] or various elements stored in an Array.
Retain(u32)
Determines a number of consecutive unchanged elements. Used to recognize non-edited spaces between Change::Added and/or Change::Removed chunks.
Trait Implementations§
impl StructuralPartialEq for Change
Auto Trait Implementations§
impl Freeze for Change
impl !RefUnwindSafe for Change
impl Send for Change
impl Sync for Change
impl Unpin for Change
impl !UnwindSafe for 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more