pub enum HierarchyError {
MissingEntity(Entity),
Cycle(Entity),
DimensionMismatch(Entity),
}Expand description
Invalid hierarchy edits or malformed manually inserted parent components.
Variants§
MissingEntity(Entity)
An entity no longer exists.
Cycle(Entity)
The parent chain contains a cycle.
DimensionMismatch(Entity)
Child and parent must have transforms of the same dimension.
Trait Implementations§
Source§impl Clone for HierarchyError
impl Clone for HierarchyError
impl Copy for HierarchyError
Source§impl Debug for HierarchyError
impl Debug for HierarchyError
Source§impl Display for HierarchyError
impl Display for HierarchyError
impl Eq for HierarchyError
Source§impl Error for HierarchyError
impl Error for HierarchyError
1.30.0 · 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 HierarchyError
impl PartialEq for HierarchyError
impl StructuralPartialEq for HierarchyError
Auto Trait Implementations§
impl Freeze for HierarchyError
impl RefUnwindSafe for HierarchyError
impl Send for HierarchyError
impl Sync for HierarchyError
impl Unpin for HierarchyError
impl UnsafeUnpin for HierarchyError
impl UnwindSafe for HierarchyError
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