pub enum CutError {
UnsplittableTree,
DfsTraversal(DfsTraversalError),
}
Expand description
Errors happening during tree cut operation (see TaprootScriptTree::cut
).
Variants§
UnsplittableTree
unable to instill subtree into taproot script tree since the cut point contains leaf or hidden node and thus can’t be split into two subtrees.
DfsTraversal(DfsTraversalError)
unable to cut subtree from taproot script tree since {0}
Trait Implementations§
Source§impl Error for CutError
impl Error for CutError
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<DfsTraversalError> for CutError
impl From<DfsTraversalError> for CutError
Source§fn from(v: DfsTraversalError) -> Self
fn from(v: DfsTraversalError) -> Self
Converts to this type from the input type.
Source§impl From<UnsplittableTree> for CutError
impl From<UnsplittableTree> for CutError
Source§fn from(v: UnsplittableTree) -> Self
fn from(v: UnsplittableTree) -> Self
Converts to this type from the input type.
Source§impl Ord for CutError
impl Ord for CutError
Source§impl PartialOrd for CutError
impl PartialOrd for CutError
impl Eq for CutError
impl StructuralPartialEq for CutError
Auto Trait Implementations§
impl Freeze for CutError
impl RefUnwindSafe for CutError
impl Send for CutError
impl Sync for CutError
impl Unpin for CutError
impl UnwindSafe for CutError
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