Struct yrs::DeleteSet

source ·
pub struct DeleteSet(_);
Expand description

DeleteSet contains information about all blocks (described by clock ranges) that have been subjected to delete process.

Implementations§

Creates a new empty delete set instance.

Inserts an information about delete block (identified by id and having a specified length) inside of a current delete set.

Returns number of clients stored;

Checks if delete set contains any clock ranges.

Checks if given block id is considered deleted from the perspective of current delete set.

Returns an iterator over all client-range pairs registered in this delete set.

Merges another delete set into a current one, combining their information about deleted clock ranges.

Squashes the contents of a current delete set. This operation means, that in case when delete set contains any overlapping ranges within, they will be squashed together to optimize the space and make future encoding more compact.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Helper function for decoding 1st version of lib0 encoding.
Helper function for decoding 2nd version of lib0 encoding.
Returns the “default value” for a type. Read more
Formats the value using the given formatter. Read more
Helper function for encoding 1st version of lib0 encoding.
Helper function for encoding 1st version of lib0 encoding.
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.