pub struct DeltaBatch<'a> { /* private fields */ }Expand description
Collection of parse deltas with batch operations
Provides utilities for working with multiple deltas efficiently, including filtering, merging, and validation.
Implementations§
Source§impl<'a> DeltaBatch<'a>
impl<'a> DeltaBatch<'a>
Sourcepub const fn from_deltas(deltas: Vec<ParseDelta<'a>>) -> Self
pub const fn from_deltas(deltas: Vec<ParseDelta<'a>>) -> Self
Create batch from existing deltas
Sourcepub fn push(&mut self, delta: ParseDelta<'a>)
pub fn push(&mut self, delta: ParseDelta<'a>)
Add delta to batch
Sourcepub fn extend(&mut self, other_deltas: impl IntoIterator<Item = ParseDelta<'a>>)
pub fn extend(&mut self, other_deltas: impl IntoIterator<Item = ParseDelta<'a>>)
Extend batch with multiple deltas
Sourcepub fn deltas(&self) -> &[ParseDelta<'a>]
pub fn deltas(&self) -> &[ParseDelta<'a>]
Get all deltas
Sourcepub fn into_deltas(self) -> Vec<ParseDelta<'a>>
pub fn into_deltas(self) -> Vec<ParseDelta<'a>>
Convert to vector of deltas
Sourcepub fn structural_only(&self) -> Self
pub fn structural_only(&self) -> Self
Get only structural deltas (add/update/remove)
Sourcepub fn errors_only(&self) -> Self
pub fn errors_only(&self) -> Self
Get only error deltas
Sourcepub fn has_errors(&self) -> bool
pub fn has_errors(&self) -> bool
Check if batch contains any errors
Trait Implementations§
Source§impl<'a> Clone for DeltaBatch<'a>
impl<'a> Clone for DeltaBatch<'a>
Source§fn clone(&self) -> DeltaBatch<'a>
fn clone(&self) -> DeltaBatch<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for DeltaBatch<'a>
impl<'a> Debug for DeltaBatch<'a>
Source§impl Default for DeltaBatch<'_>
impl Default for DeltaBatch<'_>
Source§impl<'a> FromIterator<ParseDelta<'a>> for DeltaBatch<'a>
impl<'a> FromIterator<ParseDelta<'a>> for DeltaBatch<'a>
Source§fn from_iter<T: IntoIterator<Item = ParseDelta<'a>>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = ParseDelta<'a>>>(iter: T) -> Self
Creates a value from an iterator. Read more
Auto Trait Implementations§
impl<'a> Freeze for DeltaBatch<'a>
impl<'a> RefUnwindSafe for DeltaBatch<'a>
impl<'a> Send for DeltaBatch<'a>
impl<'a> Sync for DeltaBatch<'a>
impl<'a> Unpin for DeltaBatch<'a>
impl<'a> UnwindSafe for DeltaBatch<'a>
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