pub enum StackParentError {
Empty,
SelfParent,
Missing(String),
Closed(String),
Cycle(Vec<String>),
TooDeep,
}Expand description
Why a proposed parent is not a legal place to stack a branch.
Variants§
Empty
The parent name is empty.
SelfParent
A branch can’t be its own parent.
Missing(String)
The parent branch isn’t known.
Closed(String)
The parent branch is closed (merged or abandoned).
Cycle(Vec<String>)
Following parents from the proposed parent comes back to the branch (or loops), so the stack would never reach the trunk.
TooDeep
The chain is longer than MAX_STACK_DEPTH.
Trait Implementations§
Source§impl Clone for StackParentError
impl Clone for StackParentError
Source§impl Debug for StackParentError
impl Debug for StackParentError
Source§impl Display for StackParentError
impl Display for StackParentError
impl Eq for StackParentError
Source§impl PartialEq for StackParentError
impl PartialEq for StackParentError
impl StructuralPartialEq for StackParentError
Auto Trait Implementations§
impl Forget for StackParentError
impl Freeze for StackParentError
impl Move for StackParentError
impl RefUnwindSafe for StackParentError
impl Send for StackParentError
impl Sync for StackParentError
impl Unpin for StackParentError
impl UnsafeUnpin for StackParentError
impl UnwindSafe for StackParentError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more