BySpendableType

Struct BySpendableType 

Source
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: T

Implementations§

Source§

impl BySpendableType<CohortName>

Source

pub const fn names() -> &'static BySpendableType<CohortName>

Source§

impl<T> BySpendableType<T>

Source

pub fn new<F>(create: F) -> BySpendableType<T>
where F: FnMut(Filter, &'static str) -> T,

Source

pub fn try_new<F, E>(create: F) -> Result<BySpendableType<T>, E>
where F: FnMut(Filter, &'static str) -> Result<T, E>,

Source

pub fn get_mut(&mut self, output_type: OutputType) -> &mut T

Source

pub fn iter(&self) -> impl Iterator<Item = &T>

Source

pub fn iter_mut(&mut self) -> impl Iterator<Item = &mut T>

Source

pub fn par_iter_mut(&mut self) -> impl ParallelIterator<Item = &mut T>
where T: Send + Sync,

Source

pub fn iter_typed(&self) -> impl Iterator<Item = (OutputType, &T)>

Source

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>,

Source§

type Output = BySpendableType<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: BySpendableType<T>) -> <BySpendableType<T> as Add>::Output

Performs the + operation. Read more
Source§

impl<T> AddAssign for BySpendableType<T>
where T: AddAssign,

Source§

fn add_assign(&mut self, rhs: BySpendableType<T>)

Performs the += operation. Read more
Source§

impl<T> Clone for BySpendableType<T>
where T: Clone,

Source§

fn clone(&self) -> BySpendableType<T>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<T> Debug for BySpendableType<T>
where T: Debug,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<T> Default for BySpendableType<T>
where T: Default,

Source§

fn default() -> BySpendableType<T>

Returns the “default value” for a type. Read more
Source§

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,

Serialize this value into the given Serde serializer. Read more
Source§

impl<T> Traversable for BySpendableType<T>
where T: Traversable + Send + Sync,

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> VecValue for T
where T: Debug + Clone + Send + Sync + 'static,