pub struct BySpendableType<T> {
pub p2pk65: T,
pub p2pk33: T,
pub p2pkh: T,
pub p2ms: T,
pub p2sh: T,
pub p2wpkh: T,
pub p2wsh: T,
pub p2tr: T,
pub p2a: T,
pub unknown: T,
pub empty: T,
}Fields§
§p2pk65: T§p2pk33: T§p2pkh: T§p2ms: T§p2sh: T§p2wpkh: T§p2wsh: T§p2tr: T§p2a: T§unknown: T§empty: TImplementations§
Source§impl BySpendableType<CohortName>
impl BySpendableType<CohortName>
pub const fn names() -> &'static BySpendableType<CohortName>
Source§impl<T> BySpendableType<T>
impl<T> BySpendableType<T>
pub fn new<F>(create: F) -> BySpendableType<T>
pub fn try_new<F, E>(create: F) -> Result<BySpendableType<T>, E>
pub fn get_mut(&mut self, output_type: OutputType) -> &mut T
pub fn iter(&self) -> impl Iterator<Item = &T>
pub fn iter_mut(&mut self) -> impl Iterator<Item = &mut T>
pub fn par_iter_mut(&mut self) -> impl ParallelIterator<Item = &mut T>
pub fn iter_typed(&self) -> impl Iterator<Item = (OutputType, &T)>
pub fn iter_typed_mut(&mut self) -> impl Iterator<Item = (OutputType, &mut T)>
Trait Implementations§
Source§impl<T> Add for BySpendableType<T>where
T: Add<Output = T>,
impl<T> Add for BySpendableType<T>where
T: Add<Output = T>,
Source§type Output = BySpendableType<T>
type Output = BySpendableType<T>
The resulting type after applying the
+ operator.Source§fn add(self, rhs: BySpendableType<T>) -> <BySpendableType<T> as Add>::Output
fn add(self, rhs: BySpendableType<T>) -> <BySpendableType<T> as Add>::Output
Performs the
+ operation. Read moreSource§impl<T> AddAssign for BySpendableType<T>where
T: AddAssign,
impl<T> AddAssign for BySpendableType<T>where
T: AddAssign,
Source§fn add_assign(&mut self, rhs: BySpendableType<T>)
fn add_assign(&mut self, rhs: BySpendableType<T>)
Performs the
+= operation. Read moreSource§impl<T> Clone for BySpendableType<T>where
T: Clone,
impl<T> Clone for BySpendableType<T>where
T: Clone,
Source§fn clone(&self) -> BySpendableType<T>
fn clone(&self) -> BySpendableType<T>
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<T> Debug for BySpendableType<T>where
T: Debug,
impl<T> Debug for BySpendableType<T>where
T: Debug,
Source§impl<T> Default for BySpendableType<T>where
T: Default,
impl<T> Default for BySpendableType<T>where
T: Default,
Source§fn default() -> BySpendableType<T>
fn default() -> BySpendableType<T>
Returns the “default value” for a type. Read more
Source§impl<T> Serialize for BySpendableType<T>where
T: Serialize,
impl<T> Serialize for BySpendableType<T>where
T: Serialize,
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl<T> Traversable for BySpendableType<T>
impl<T> Traversable for BySpendableType<T>
fn to_tree_node(&self) -> TreeNode
fn iter_any_exportable(&self) -> impl Iterator<Item = &dyn AnyExportableVec>
Auto Trait Implementations§
impl<T> Freeze for BySpendableType<T>where
T: Freeze,
impl<T> RefUnwindSafe for BySpendableType<T>where
T: RefUnwindSafe,
impl<T> Send for BySpendableType<T>where
T: Send,
impl<T> Sync for BySpendableType<T>where
T: Sync,
impl<T> Unpin for BySpendableType<T>where
T: Unpin,
impl<T> UnwindSafe for BySpendableType<T>where
T: UnwindSafe,
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,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more