pub struct RopeBindingMut<Cell, Attribute> where
    Cell: 'static + Send + Unpin + Clone + PartialEq,
    Attribute: 'static + Send + Sync + Unpin + Clone + PartialEq + Default
{ /* private fields */ }
Expand description

A rope binding binds a vector of cells and attributes

A RopeBindingMut supplies the same functionality as a RopeBinding except it also provides the editing functions for changing the underlying data.

Implementations

Creates a new rope binding from a stream of changes

Returns the number of cells in this rope

Reads the cell values for a range in this rope

Returns the attributes set at the specified location and their extent

Performs the specified editing action to this rope

Replaces a range of cells. The attributes applied to the new cells will be the same as the attributes that were applied to the first cell in the replacement range

Sets the attributes for a range of cells

Replaces a range of cells and sets the attributes for them.

Trait Implementations

Trait implemented by something that is bound to a value

Retrieves the value stored by this binding

Creates a stream that follows the changes to this rope

Creates a stream that follows the changes to this rope

The stream will continue even if the rope binding is dropped (this is possible for RopeBinding as RopeBinding itself might be following a stream)

Supplies a function to be notified when this item is changed

This event is only fired after the value has been read since the most recent change. Note that this means if the value is never read, this event may never fire. This behaviour is desirable when deferring updates as it prevents large cascades of ‘changed’ events occurring for complicated dependency trees.

The releasable that’s returned has keep_alive turned off by default, so be sure to store it in a variable or call keep_alive() to keep it around (if the event never seems to fire, this is likely to be the problem)

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Executes the destructor for this type. 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

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.