Struct psbt::KeyPair

source ·
pub struct KeyPair<T: KeyType, K, V> {
    pub key_type: T,
    pub key_data: K,
    pub value_data: V,
}

Fields§

§key_type: T§key_data: K§value_data: V

Implementations§

source§

impl<T: KeyType, K, V> KeyPair<T, K, V>

source

pub fn new(key_type: T, key_data: K, value_data: V) -> Self

source§

impl<'a, T: KeyType> KeyPair<T, Box<dyn Encode + 'a>, Box<dyn Encode + 'a>>

source

pub fn boxed<K: Encode + 'a, V: Encode + 'a>( key_type: T, key_data: K, value_data: V ) -> Self

Trait Implementations§

source§

impl<T: Debug + KeyType, K: Debug, V: Debug> Debug for KeyPair<T, K, V>

source§

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

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

impl<T: KeyType, K: Encode, V: Encode> Encode for KeyPair<T, K, V>

source§

fn encode(&self, writer: &mut dyn Write) -> Result<usize, IoError>

Auto Trait Implementations§

§

impl<T, K, V> RefUnwindSafe for KeyPair<T, K, V>

§

impl<T, K, V> Send for KeyPair<T, K, V>
where K: Send, T: Send, V: Send,

§

impl<T, K, V> Sync for KeyPair<T, K, V>
where K: Sync, T: Sync, V: Sync,

§

impl<T, K, V> Unpin for KeyPair<T, K, V>
where K: Unpin, T: Unpin, V: Unpin,

§

impl<T, K, V> UnwindSafe for KeyPair<T, K, V>
where K: UnwindSafe, T: UnwindSafe, V: 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> 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> Same for T

§

type Output = T

Should always be Self
source§

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

§

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

§

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.