Enum bitcoin::taproot::IncompleteBuilderError
source · #[non_exhaustive]pub enum IncompleteBuilderError {
NotFinalized(TaprootBuilder),
HiddenParts(TaprootBuilder),
}
Expand description
Error happening when TapTree
is constructed from a TaprootBuilder
having hidden branches or not being finalized.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NotFinalized(TaprootBuilder)
Indicates an attempt to construct a tap tree from a builder containing incomplete branches.
HiddenParts(TaprootBuilder)
Indicates an attempt to construct a tap tree from a builder containing hidden parts.
Implementations§
source§impl IncompleteBuilderError
impl IncompleteBuilderError
sourcepub fn into_builder(self) -> TaprootBuilder
pub fn into_builder(self) -> TaprootBuilder
Converts error into the original incomplete TaprootBuilder
instance.
Trait Implementations§
source§impl Clone for IncompleteBuilderError
impl Clone for IncompleteBuilderError
source§fn clone(&self) -> IncompleteBuilderError
fn clone(&self) -> IncompleteBuilderError
Returns a copy 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 IncompleteBuilderError
impl Debug for IncompleteBuilderError
source§impl Display for IncompleteBuilderError
impl Display for IncompleteBuilderError
source§impl Error for IncompleteBuilderError
impl Error for IncompleteBuilderError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<Infallible> for IncompleteBuilderError
impl From<Infallible> for IncompleteBuilderError
source§fn from(never: Infallible) -> Self
fn from(never: Infallible) -> Self
Converts to this type from the input type.
source§impl PartialEq<IncompleteBuilderError> for IncompleteBuilderError
impl PartialEq<IncompleteBuilderError> for IncompleteBuilderError
source§fn eq(&self, other: &IncompleteBuilderError) -> bool
fn eq(&self, other: &IncompleteBuilderError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for IncompleteBuilderError
impl StructuralEq for IncompleteBuilderError
impl StructuralPartialEq for IncompleteBuilderError
Auto Trait Implementations§
impl RefUnwindSafe for IncompleteBuilderError
impl Send for IncompleteBuilderError
impl Sync for IncompleteBuilderError
impl Unpin for IncompleteBuilderError
impl UnwindSafe for IncompleteBuilderError
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