Struct dep_obj::ItemChange
source · [−]pub struct ItemChange<ItemType: Convenient> {
pub item: ItemType,
pub action: ItemChangeAction<ItemType>,
}
Fields
item: ItemType
action: ItemChangeAction<ItemType>
Implementations
sourceimpl<ItemType: Convenient> ItemChange<ItemType>
impl<ItemType: Convenient> ItemChange<ItemType>
pub fn is_insert(&self) -> bool
pub fn is_remove(&self) -> bool
pub fn is_update_insert(&self) -> bool
pub fn is_update_remove(&self) -> bool
pub fn is_move_insert(&self) -> bool
pub fn is_move_remove(&self) -> bool
pub fn as_insert_prev(&self) -> Option<&Option<ItemType>>
pub fn as_update_insert_prev(&self) -> Option<&Option<ItemType>>
pub fn as_insert_or_update_insert_prev(&self) -> Option<&Option<ItemType>>
pub fn as_move_insert_prev(&self) -> Option<&Option<ItemType>>
Trait Implementations
sourceimpl<ItemType: Clone + Convenient> Clone for ItemChange<ItemType>
impl<ItemType: Clone + Convenient> Clone for ItemChange<ItemType>
sourcefn clone(&self) -> ItemChange<ItemType>
fn clone(&self) -> ItemChange<ItemType>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<ItemType: Debug + Convenient> Debug for ItemChange<ItemType>
impl<ItemType: Debug + Convenient> Debug for ItemChange<ItemType>
sourceimpl<ItemType: Hash + Convenient> Hash for ItemChange<ItemType>
impl<ItemType: Hash + Convenient> Hash for ItemChange<ItemType>
sourceimpl<ItemType: Ord + Convenient> Ord for ItemChange<ItemType>
impl<ItemType: Ord + Convenient> Ord for ItemChange<ItemType>
sourceimpl<ItemType: PartialEq + Convenient> PartialEq<ItemChange<ItemType>> for ItemChange<ItemType>
impl<ItemType: PartialEq + Convenient> PartialEq<ItemChange<ItemType>> for ItemChange<ItemType>
sourcefn eq(&self, other: &ItemChange<ItemType>) -> bool
fn eq(&self, other: &ItemChange<ItemType>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ItemChange<ItemType>) -> bool
fn ne(&self, other: &ItemChange<ItemType>) -> bool
This method tests for !=
.
sourceimpl<ItemType: PartialOrd + Convenient> PartialOrd<ItemChange<ItemType>> for ItemChange<ItemType>
impl<ItemType: PartialOrd + Convenient> PartialOrd<ItemChange<ItemType>> for ItemChange<ItemType>
sourcefn partial_cmp(&self, other: &ItemChange<ItemType>) -> Option<Ordering>
fn partial_cmp(&self, other: &ItemChange<ItemType>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl<ItemType: Eq + Convenient> Eq for ItemChange<ItemType>
impl<ItemType: Convenient> StructuralEq for ItemChange<ItemType>
impl<ItemType: Convenient> StructuralPartialEq for ItemChange<ItemType>
Auto Trait Implementations
impl<ItemType> RefUnwindSafe for ItemChange<ItemType> where
ItemType: RefUnwindSafe,
impl<ItemType> Send for ItemChange<ItemType> where
ItemType: Send,
impl<ItemType> Sync for ItemChange<ItemType> where
ItemType: Sync,
impl<ItemType> Unpin for ItemChange<ItemType> where
ItemType: Unpin,
impl<ItemType> UnwindSafe for ItemChange<ItemType> where
ItemType: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more