[−][src]Enum diffus::edit::collection::Edit
Variants
Copy(&'a T)
Insert(&'a T)
Remove(&'a T)
Methods
impl<'a, T: Same + ?Sized, Diff> Edit<'a, T, Diff>
[src]
pub fn is_copy(&self) -> bool
[src]
pub fn is_insert(&self) -> bool
[src]
pub fn is_remove(&self) -> bool
[src]
pub fn is_change(&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<&Diff>
[src]
Trait Implementations
impl<'a, T: Eq + ?Sized, Diff: Eq> Eq for Edit<'a, T, Diff>
[src]
impl<'a, T: PartialEq + ?Sized, Diff: PartialEq> PartialEq<Edit<'a, T, Diff>> for Edit<'a, T, Diff>
[src]
fn eq(&self, other: &Edit<'a, T, Diff>) -> bool
[src]
fn ne(&self, other: &Edit<'a, T, Diff>) -> bool
[src]
impl<'a, T: Debug + ?Sized, Diff: Debug> Debug for Edit<'a, T, Diff>
[src]
impl<'a, T: ?Sized, Diff> StructuralPartialEq for Edit<'a, T, Diff>
[src]
impl<'a, T: ?Sized, Diff> StructuralEq for Edit<'a, T, Diff>
[src]
Auto Trait Implementations
impl<'a, T: ?Sized, Diff> Send for Edit<'a, T, Diff> where
Diff: Send,
T: Sync,
Diff: Send,
T: Sync,
impl<'a, T: ?Sized, Diff> Sync for Edit<'a, T, Diff> where
Diff: Sync,
T: Sync,
Diff: Sync,
T: Sync,
impl<'a, T: ?Sized, Diff> Unpin for Edit<'a, T, Diff> where
Diff: Unpin,
Diff: Unpin,
impl<'a, T: ?Sized, Diff> UnwindSafe for Edit<'a, T, Diff> where
Diff: UnwindSafe,
T: RefUnwindSafe,
Diff: UnwindSafe,
T: RefUnwindSafe,
impl<'a, T: ?Sized, Diff> RefUnwindSafe for Edit<'a, T, Diff> where
Diff: RefUnwindSafe,
T: RefUnwindSafe,
Diff: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
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> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,