pub enum EntityListError<I: IPoliciedID> {
EmptyList,
ListBroken,
NodeIsSentinel,
RepeatedNode,
RepeatedList,
SelfNotAttached(I),
ItemFalselyAttached(I),
ItemFalselyDetached(I),
}Expand description
Error kinds returned by EntityList operations.
Variants§
EmptyList
The list is empty.
ListBroken
The list structure is broken (inconsistent links).
NodeIsSentinel
A sentinel node was used where a normal node was expected.
RepeatedNode
The same node was added multiple times.
RepeatedList
Operations are done in the same list which is not allowed.
SelfNotAttached(I)
The node was expected to be attached but is not.
ItemFalselyAttached(I)
The node was expected to be detached but is attached.
ItemFalselyDetached(I)
The node was expected to be attached but is detached.
Trait Implementations§
Source§impl<I: Clone + IPoliciedID> Clone for EntityListError<I>
impl<I: Clone + IPoliciedID> Clone for EntityListError<I>
Source§fn clone(&self) -> EntityListError<I>
fn clone(&self) -> EntityListError<I>
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<I: Debug + IPoliciedID> Debug for EntityListError<I>
impl<I: Debug + IPoliciedID> Debug for EntityListError<I>
Source§impl<I: IPoliciedID> Display for EntityListError<I>
impl<I: IPoliciedID> Display for EntityListError<I>
Source§impl<I: IPoliciedID> Error for EntityListError<I>
impl<I: IPoliciedID> Error for EntityListError<I>
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<I: PartialEq + IPoliciedID> PartialEq for EntityListError<I>
impl<I: PartialEq + IPoliciedID> PartialEq for EntityListError<I>
impl<I: Copy + IPoliciedID> Copy for EntityListError<I>
impl<I: Eq + IPoliciedID> Eq for EntityListError<I>
impl<I: IPoliciedID> StructuralPartialEq for EntityListError<I>
Auto Trait Implementations§
impl<I> Freeze for EntityListError<I>where
I: Freeze,
impl<I> RefUnwindSafe for EntityListError<I>where
I: RefUnwindSafe,
impl<I> Send for EntityListError<I>where
I: Send,
impl<I> Sync for EntityListError<I>where
I: Sync,
impl<I> Unpin for EntityListError<I>where
I: Unpin,
impl<I> UnwindSafe for EntityListError<I>where
I: UnwindSafe,
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