pub enum WeakEdgeMutationError {
Allocation(EdgeAllocationError),
UnknownEdge(EdgeId),
WrongKind {
edge: EdgeId,
actual: EdgeKind,
},
TargetChanged {
expected: ManagedId,
actual: ManagedId,
},
}Expand description
A failed checked mutation of a weak edge.
Variants§
Allocation(EdgeAllocationError)
Allocating a stable identity for a new edge failed.
UnknownEdge(EdgeId)
The requested identity is not a live weak edge of this node.
WrongKind
The identity is live, but has different collection semantics.
Fields
TargetChanged
The edge exists, but no longer names the caller’s expected target.
Trait Implementations§
Source§impl Clone for WeakEdgeMutationError
impl Clone for WeakEdgeMutationError
Source§fn clone(&self) -> WeakEdgeMutationError
fn clone(&self) -> WeakEdgeMutationError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for WeakEdgeMutationError
Source§impl Debug for WeakEdgeMutationError
impl Debug for WeakEdgeMutationError
Source§impl Display for WeakEdgeMutationError
impl Display for WeakEdgeMutationError
impl Eq for WeakEdgeMutationError
Source§impl Error for WeakEdgeMutationError
impl Error for WeakEdgeMutationError
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 From<EdgeAllocationError> for WeakEdgeMutationError
impl From<EdgeAllocationError> for WeakEdgeMutationError
Source§fn from(error: EdgeAllocationError) -> Self
fn from(error: EdgeAllocationError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for WeakEdgeMutationError
impl PartialEq for WeakEdgeMutationError
impl StructuralPartialEq for WeakEdgeMutationError
Auto Trait Implementations§
impl Freeze for WeakEdgeMutationError
impl RefUnwindSafe for WeakEdgeMutationError
impl Send for WeakEdgeMutationError
impl Sync for WeakEdgeMutationError
impl Unpin for WeakEdgeMutationError
impl UnsafeUnpin for WeakEdgeMutationError
impl UnwindSafe for WeakEdgeMutationError
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