Struct yrs::DeleteSet[][src]

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.

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.

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.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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.