#[repr(C)]pub struct ChangeHandlerWithDocsDiff {
pub documents: Vec<Box<Document>>,
pub is_initial: bool,
pub old_documents: Option<Vec<Box<Document>>>,
pub insertions: Option<Box<usize>>,
pub deletions: Option<Box<usize>>,
pub updates: Option<Box<usize>>,
pub moves: Option<Box<usize>>,
}Fields§
§documents: Vec<Box<Document>>The vec must be freed with ditto_sparse_vec_documents_free. The Documents contained by
the vec are owned by the recipient of the diff and should be freed independently of the
vec.
is_initial: bool§old_documents: Option<Vec<Box<Document>>>The vec, if present, must be freed with ditto_sparse_vec_documents_free. The Documents
contained by the vec are owned by the recipient of the diff and should be freed
independently of the vec.
insertions: Option<Box<usize>>Must be freed using ditto_free_indices.
deletions: Option<Box<usize>>Must be freed using ditto_free_indices.
updates: Option<Box<usize>>Must be freed using ditto_free_indices.
moves: Option<Box<usize>>Must be freed using ditto_free_indices.
Auto Trait Implementations§
impl Freeze for ChangeHandlerWithDocsDiff
impl RefUnwindSafe for ChangeHandlerWithDocsDiff
impl Send for ChangeHandlerWithDocsDiff
impl Sync for ChangeHandlerWithDocsDiff
impl Unpin for ChangeHandlerWithDocsDiff
impl UnwindSafe for ChangeHandlerWithDocsDiff
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