Struct similar::algorithms::Capture[][src]

pub struct Capture(_);

A DiffHook that captures all diff operations.

Implementations

impl Capture[src]

pub fn new() -> Capture[src]

Creates a new capture hook.

pub fn into_ops(self) -> Vec<DiffOp>[src]

Converts the capture hook into a vector of ops.

pub fn into_grouped_ops(self, n: usize) -> Vec<Vec<DiffOp>>[src]

Isolate change clusters by eliminating ranges with no changes.

This is equivalent to calling group_diff_ops on Capture::into_ops.

pub fn ops(&self) -> &[DiffOp][src]

Accesses the captured operations.

Trait Implementations

impl Clone for Capture[src]

impl Default for Capture[src]

impl DiffHook for Capture[src]

type Error = Infallible

Auto Trait Implementations

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.