[][src]Struct xi_rope::delta::Transformer

pub struct Transformer<'a, N: NodeInfo + 'a> { /* fields omitted */ }

A mapping from coordinates in the source sequence to coordinates in the sequence after the delta is applied.

Methods

impl<'a, N: NodeInfo + 'a> Transformer<'a, N>[src]

pub fn new(delta: &'a Delta<N>) -> Self[src]

Create a new transformer from a delta.

pub fn transform(&mut self, ix: usize, after: bool) -> usize[src]

Transform a single coordinate. The after parameter indicates whether it it should land before or after an inserted region.

pub fn interval_untouched<T: IntervalBounds>(&mut self, iv: T) -> bool[src]

Determine whether a given interval is untouched by the transformation.

Auto Trait Implementations

impl<'a, N> Sync for Transformer<'a, N> where
    N: Send + Sync,
    <N as NodeInfo>::L: Send + Sync

impl<'a, N> Send for Transformer<'a, N> where
    N: Send + Sync,
    <N as NodeInfo>::L: Send + Sync

impl<'a, N> Unpin for Transformer<'a, N>

impl<'a, N> RefUnwindSafe for Transformer<'a, N> where
    N: RefUnwindSafe,
    <N as NodeInfo>::L: RefUnwindSafe

impl<'a, N> UnwindSafe for Transformer<'a, N> where
    N: RefUnwindSafe,
    <N as NodeInfo>::L: RefUnwindSafe

Blanket Implementations

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

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

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.

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

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

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