[][src]Enum diffus::edit::collection::Edit

pub enum Edit<T, D> {
    Copy(T),
    Change(D),
    Insert(T),
    Remove(T),
}

Variants

Copy(T)
Change(D)
Insert(T)
Remove(T)

Methods

impl<T: Same, D> Edit<T, D>[src]

pub fn is_copy(&self) -> bool[src]

pub fn is_insert(&self) -> bool[src]

pub fn is_remove(&self) -> bool[src]

pub fn copy(&self) -> Option<&T>[src]

pub fn insert(&self) -> Option<&T>[src]

pub fn remove(&self) -> Option<&T>[src]

pub fn change(&self) -> Option<&D>[src]

Trait Implementations

impl<T: Eq, D: Eq> Eq for Edit<T, D>[src]

impl<T: PartialEq, D: PartialEq> PartialEq<Edit<T, D>> for Edit<T, D>[src]

impl<T: Debug, D: Debug> Debug for Edit<T, D>[src]

Auto Trait Implementations

impl<T, D> Send for Edit<T, D> where
    D: Send,
    T: Send

impl<T, D> Sync for Edit<T, D> where
    D: Sync,
    T: Sync

impl<T, D> Unpin for Edit<T, D> where
    D: Unpin,
    T: Unpin

impl<T, D> UnwindSafe for Edit<T, D> where
    D: UnwindSafe,
    T: UnwindSafe

impl<T, D> RefUnwindSafe for Edit<T, D> where
    D: RefUnwindSafe,
    T: 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> Borrow<T> for T where
    T: ?Sized
[src]

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

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