Enum bitcoin_scripts::taproot::CutError
source · [−]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
sourceimpl Error for CutError
impl Error for CutError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<DfsTraversalError> for CutError
impl From<DfsTraversalError> for CutError
sourcefn from(v: DfsTraversalError) -> Self
fn from(v: DfsTraversalError) -> Self
Converts to this type from the input type.
sourceimpl From<UnsplittableTree> for CutError
impl From<UnsplittableTree> for CutError
sourcefn from(v: UnsplittableTree) -> Self
fn from(v: UnsplittableTree) -> Self
Converts to this type from the input type.
sourceimpl Ord for CutError
impl Ord for CutError
sourceimpl PartialOrd<CutError> for CutError
impl PartialOrd<CutError> for CutError
sourcefn partial_cmp(&self, other: &CutError) -> Option<Ordering>
fn partial_cmp(&self, other: &CutError) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Eq for CutError
impl StructuralEq for CutError
impl StructuralPartialEq for CutError
Auto Trait Implementations
impl RefUnwindSafe for CutError
impl Send for CutError
impl Sync for CutError
impl Unpin for CutError
impl UnwindSafe for CutError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more