pub enum ApplyError {
UnknownNode(NodeId),
DuplicateNode(NodeId),
NotAChild(NodeId),
BadAnchor(NodeId),
Cycle(NodeId),
TooManyNodes(usize),
TooDeep(usize),
IdOutOfRange(NodeId),
}Expand description
An op referenced a node in an impossible way. This is a renderer bug; the op is skipped and the tree stays consistent.
Variants§
UnknownNode(NodeId)
The id is unknown (never created or already released).
DuplicateNode(NodeId)
The id is already in use.
NotAChild(NodeId)
The child is not a child of the given parent.
BadAnchor(NodeId)
The before sibling is not a child of the given parent.
Cycle(NodeId)
The insert would create a cycle.
TooManyNodes(usize)
Creating the node would exceed the node quota (Core::set_max_nodes).
TooDeep(usize)
The insert would nest views deeper than the depth quota
(MAX_TREE_DEPTH).
IdOutOfRange(NodeId)
A new id far beyond the ids in use (ids index a table, so they must stay dense).
Implementations§
Trait Implementations§
Source§impl Clone for ApplyError
impl Clone for ApplyError
impl Copy for ApplyError
Source§impl Debug for ApplyError
impl Debug for ApplyError
impl Eq for ApplyError
Source§impl PartialEq for ApplyError
impl PartialEq for ApplyError
impl StructuralPartialEq for ApplyError
Auto Trait Implementations§
impl Forget for ApplyError
impl Freeze for ApplyError
impl Move for ApplyError
impl RefUnwindSafe for ApplyError
impl Send for ApplyError
impl Sync for ApplyError
impl Unpin for ApplyError
impl UnsafeUnpin for ApplyError
impl UnwindSafe for ApplyError
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