Skip to main content

ChangeHandlerWithDocsDiff

Struct ChangeHandlerWithDocsDiff 

Source
#[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§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CompatExt for T

Source§

fn compat(self) -> Compat<T>

Applies the Compat adapter by value. Read more
Source§

fn compat_ref(&self) -> Compat<&T>

Applies the Compat adapter by shared reference. Read more
Source§

fn compat_mut(&mut self) -> Compat<&mut T>

Applies the Compat adapter by mutable reference. Read more
Source§

impl<T> FitForCArc for T

Source§

impl<T> FitForCBox for T

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ManuallyDropMut for T

Source§

type Ret = ManuallyDrop<T>

Source§

fn manually_drop_mut<'__>(&'__ mut self) -> &'__ mut ManuallyDrop<T>

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<F> ZeroSizedElseWrathOfTheGඞds for F