[−][src]Struct xi_rope::delta::Transformer
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,
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,
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,
N: RefUnwindSafe,
<N as NodeInfo>::L: RefUnwindSafe,
impl<'a, N> UnwindSafe for Transformer<'a, N> where
N: RefUnwindSafe,
<N as NodeInfo>::L: RefUnwindSafe,
N: RefUnwindSafe,
<N as NodeInfo>::L: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,