Enum IncompleteBuilderError
#[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§
§impl IncompleteBuilderError
impl IncompleteBuilderError
pub fn into_builder(self) -> TaprootBuilder
pub fn into_builder(self) -> TaprootBuilder
Converts error into the original incomplete TaprootBuilder
instance.
Trait Implementations§
§impl Clone for IncompleteBuilderError
impl Clone for IncompleteBuilderError
§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 more§impl Debug for IncompleteBuilderError
impl Debug for IncompleteBuilderError
§impl Display for IncompleteBuilderError
impl Display for IncompleteBuilderError
§impl Error for IncompleteBuilderError
impl Error for IncompleteBuilderError
§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()
§impl From<Infallible> for IncompleteBuilderError
impl From<Infallible> for IncompleteBuilderError
§fn from(never: Infallible) -> IncompleteBuilderError
fn from(never: Infallible) -> IncompleteBuilderError
Converts to this type from the input type.
§impl PartialEq for IncompleteBuilderError
impl PartialEq for IncompleteBuilderError
impl Eq for IncompleteBuilderError
impl StructuralPartialEq for IncompleteBuilderError
Auto Trait Implementations§
impl Freeze for IncompleteBuilderError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more