pub struct OrderedRawChildren { /* private fields */ }Expand description
Raw XML children grouped by their schema boundary.
Implementations§
Source§impl OrderedRawChildren
impl OrderedRawChildren
Sourcepub fn push(&mut self, boundary: usize, raw_xml: Vec<u8>)
pub fn push(&mut self, boundary: usize, raw_xml: Vec<u8>)
Records a raw child at a caller-defined schema boundary.
Sourcepub fn at(&self, boundary: usize) -> impl Iterator<Item = &[u8]>
pub fn at(&self, boundary: usize) -> impl Iterator<Item = &[u8]>
Returns raw children recorded at a schema boundary.
Sourcepub fn shift_boundaries_from(&mut self, boundary: usize)
pub fn shift_boundaries_from(&mut self, boundary: usize)
Moves raw children at and after one boundary to make room for a new modelled child without changing their relative order.
Sourcepub fn at_reconciled<'a>(
&'a self,
boundary: usize,
offset: usize,
original_to_current: &'a [Option<usize>],
current_len: usize,
) -> impl Iterator<Item = &'a [u8]>
pub fn at_reconciled<'a>( &'a self, boundary: usize, offset: usize, original_to_current: &'a [Option<usize>], current_len: usize, ) -> impl Iterator<Item = &'a [u8]>
Returns raw children at their effective boundary after edits to a public collection. Each original boundary is anchored to the next surviving original item, or to the trailing boundary when none remains.
Trait Implementations§
Source§impl Clone for OrderedRawChildren
impl Clone for OrderedRawChildren
Source§fn clone(&self) -> OrderedRawChildren
fn clone(&self) -> OrderedRawChildren
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 OrderedRawChildren
impl Debug for OrderedRawChildren
Source§impl Default for OrderedRawChildren
impl Default for OrderedRawChildren
Source§fn default() -> OrderedRawChildren
fn default() -> OrderedRawChildren
Returns the “default value” for a type. Read more
impl Eq for OrderedRawChildren
Source§impl PartialEq for OrderedRawChildren
impl PartialEq for OrderedRawChildren
impl StructuralPartialEq for OrderedRawChildren
Auto Trait Implementations§
impl Freeze for OrderedRawChildren
impl RefUnwindSafe for OrderedRawChildren
impl Send for OrderedRawChildren
impl Sync for OrderedRawChildren
impl Unpin for OrderedRawChildren
impl UnsafeUnpin for OrderedRawChildren
impl UnwindSafe for OrderedRawChildren
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