#[non_exhaustive]pub enum DuplicationError {
Access(Error),
DuplicateSource(Entity),
}Expand description
Failure to read an explicit selected-component duplication plan.
See World::plan_duplication for validation order and a runnable recipe.
Spawn admission uses the existing separate SpawnError.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Access(Error)
Invalid selection, stale source, missing component or conflicting borrow.
DuplicateSource(Entity)
Each source must occur once so the returned map has unique old identities.
Trait Implementations§
Source§impl Clone for DuplicationError
impl Clone for DuplicationError
Source§fn clone(&self) -> DuplicationError
fn clone(&self) -> DuplicationError
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 Debug for DuplicationError
impl Debug for DuplicationError
Source§impl Display for DuplicationError
impl Display for DuplicationError
Source§impl Error for DuplicationError
impl Error for DuplicationError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl PartialEq for DuplicationError
impl PartialEq for DuplicationError
impl Eq for DuplicationError
impl StructuralPartialEq for DuplicationError
Auto Trait Implementations§
impl Freeze for DuplicationError
impl RefUnwindSafe for DuplicationError
impl Send for DuplicationError
impl Sync for DuplicationError
impl Unpin for DuplicationError
impl UnwindSafe for DuplicationError
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