[][src]Enum flo_rope::api::RopeAction

pub enum RopeAction<Cell, Attribute> {
    Replace(Range<usize>, Vec<Cell>),
    SetAttributes(Range<usize>, Attribute),
    ReplaceAttributes(Range<usize>, Vec<Cell>, Attribute),
}

The editing action that can be performed on a rope

Variants

Replace(Range<usize>, Vec<Cell>)

Replaces a range of text in this rope. The attributes applied to the new text will be the same as those applied to the first character in the replaced range.

SetAttributes(Range<usize>, Attribute)

Sets the attributes for a range of text in this rope

ReplaceAttributes(Range<usize>, Vec<Cell>, Attribute)

Sets both the attributes and the value for a range of cells

Trait Implementations

impl<Cell: Clone, Attribute: Clone> Clone for RopeAction<Cell, Attribute>[src]

impl<Cell: Debug, Attribute: Debug> Debug for RopeAction<Cell, Attribute>[src]

impl<Cell: PartialEq, Attribute: PartialEq> PartialEq<RopeAction<Cell, Attribute>> for RopeAction<Cell, Attribute>[src]

impl<Cell, Attribute> StructuralPartialEq for RopeAction<Cell, Attribute>[src]

Auto Trait Implementations

impl<Cell, Attribute> RefUnwindSafe for RopeAction<Cell, Attribute> where
    Attribute: RefUnwindSafe,
    Cell: RefUnwindSafe

impl<Cell, Attribute> Send for RopeAction<Cell, Attribute> where
    Attribute: Send,
    Cell: Send

impl<Cell, Attribute> Sync for RopeAction<Cell, Attribute> where
    Attribute: Sync,
    Cell: Sync

impl<Cell, Attribute> Unpin for RopeAction<Cell, Attribute> where
    Attribute: Unpin,
    Cell: Unpin

impl<Cell, Attribute> UnwindSafe for RopeAction<Cell, Attribute> where
    Attribute: UnwindSafe,
    Cell: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.