pub struct TaprootTreeError {
pub left_hash: TapNodeHash,
pub right_hash: TapNodeHash,
pub dfs_path: DfsPath,
}
Expand description
Taproot tree or subtree construction error: improper lexicographi ordering of the nodes.
Fields§
§left_hash: TapNodeHash
Node hash of the left-side child node.
right_hash: TapNodeHash
Node hash of the right-side child node.
dfs_path: DfsPath
Path of the node in DFS (depth-first search) order.
Trait Implementations§
Source§impl Clone for TaprootTreeError
impl Clone for TaprootTreeError
Source§fn clone(&self) -> TaprootTreeError
fn clone(&self) -> TaprootTreeError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TaprootTreeError
impl Debug for TaprootTreeError
Source§impl Display for TaprootTreeError
impl Display for TaprootTreeError
Source§impl Error for TaprootTreeError
impl Error for TaprootTreeError
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<TaprootTreeError> for String
impl From<TaprootTreeError> for String
Source§fn from(err: TaprootTreeError) -> Self
fn from(err: TaprootTreeError) -> Self
Converts to this type from the input type.
Source§impl Hash for TaprootTreeError
impl Hash for TaprootTreeError
Source§impl Ord for TaprootTreeError
impl Ord for TaprootTreeError
Source§fn cmp(&self, other: &TaprootTreeError) -> Ordering
fn cmp(&self, other: &TaprootTreeError) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TaprootTreeError
impl PartialEq for TaprootTreeError
Source§impl PartialOrd for TaprootTreeError
impl PartialOrd for TaprootTreeError
impl Eq for TaprootTreeError
impl StructuralPartialEq for TaprootTreeError
Auto Trait Implementations§
impl Freeze for TaprootTreeError
impl RefUnwindSafe for TaprootTreeError
impl Send for TaprootTreeError
impl Sync for TaprootTreeError
impl Unpin for TaprootTreeError
impl UnwindSafe for TaprootTreeError
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