pub enum InsertMode {
Replace,
Keep,
}Expand description
What to do on insertion if a component already exists.
Variants§
Replace
Any existing components of a matching type will be overwritten.
Keep
Any existing components of a matching type will be left unchanged.
Trait Implementations§
Source§impl Clone for InsertMode
impl Clone for InsertMode
Source§fn clone(&self) -> InsertMode
fn clone(&self) -> InsertMode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl PartialEq for InsertMode
impl PartialEq for InsertMode
impl Copy for InsertMode
impl Eq for InsertMode
impl StructuralPartialEq for InsertMode
Auto Trait Implementations§
impl Freeze for InsertMode
impl RefUnwindSafe for InsertMode
impl Send for InsertMode
impl Sync for InsertMode
impl Unpin for InsertMode
impl UnwindSafe for InsertMode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
Source§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.