Trait dock_core::util::batch_update::CanUpdate
source · pub trait CanUpdate<Entity>: Sized {
// Provided methods
fn can_add(&self, _new: &Entity) -> bool { ... }
fn can_replace(&self, _new: &Entity, _current: &Entity) -> bool { ... }
fn can_remove(&self, _entity: &Entity) -> bool { ... }
}
Expand description
Checks whether an actor can update an entity.
Provided Methods§
sourcefn can_replace(&self, _new: &Entity, _current: &Entity) -> bool
fn can_replace(&self, _new: &Entity, _current: &Entity) -> bool
Checks whether the provided entity can replace the existing one.
sourcefn can_remove(&self, _entity: &Entity) -> bool
fn can_remove(&self, _entity: &Entity) -> bool
Checks whether the existing entity can be removed.