pub struct WriteBatch { /* private fields */ }
Expand description

A WriteBatch contains entries to be written to a MemTable (for example) in a compact form.

The storage format is (with the respective length in bytes)

[tag: 1, keylen: ~var, key: keylen, vallen: ~var, val: vallen]

Implementations

Initializes a WriteBatch with a serialized WriteBatch.

Adds an entry to a WriteBatch, to be added to the database.

Marks an entry to be deleted from the database.

Clear the contents of a WriteBatch.

Returns how many operations are in a batch.

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 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.