Struct optra::DeleteOperation [] [src]

pub struct DeleteOperation { /* fields omitted */ }

Represents an operation which removes data from a file

Methods

impl DeleteOperation
[src]

Creates a new DeleteOperation that woll delete length bytes at position in a file

Gets the number of bytes that will be removed when the delete operation is applied

Compress this operation and write to writer. The output can then be expanded back into an equivilent operation using expand_from()

Expand this operation from previously compressed data in reader. The data in reader should have been written using compress_to()

Trait Implementations

impl PartialEq for DeleteOperation
[src]

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

This method tests for !=.

impl Eq for DeleteOperation
[src]

impl Clone for DeleteOperation
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Operation for DeleteOperation
[src]

Gets the position this operation will be perfomed at

Gets the size change this operation will perform. For insert operations, it's the length of the data they will insert. For delete operations, it's the length of the data they will delete Read more

Gets the current local timestamp of this operation

Sets the local timestamp of this operation

impl Debug for DeleteOperation
[src]

Formats the value using the given formatter.