Struct bc::InternalPk
source · pub struct InternalPk(_);Implementations§
source§impl InternalPk
impl InternalPk
pub fn to_output_key( &self, merkle_root: Option<impl IntoTapHash> ) -> XOnlyPublicKey
Trait Implementations§
source§impl AsMut<<InternalPk as Wrapper>::Inner> for InternalPk
impl AsMut<<InternalPk as Wrapper>::Inner> for InternalPk
source§impl AsRef<<InternalPk as Wrapper>::Inner> for InternalPk
impl AsRef<<InternalPk as Wrapper>::Inner> for InternalPk
source§impl Borrow<<InternalPk as Wrapper>::Inner> for InternalPk
impl Borrow<<InternalPk as Wrapper>::Inner> for InternalPk
source§impl BorrowMut<<InternalPk as Wrapper>::Inner> for InternalPk
impl BorrowMut<<InternalPk as Wrapper>::Inner> for InternalPk
source§impl Clone for InternalPk
impl Clone for InternalPk
source§fn clone(&self) -> InternalPk
fn clone(&self) -> InternalPk
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 InternalPk
impl Debug for InternalPk
source§impl Deref for InternalPk
impl Deref for InternalPk
source§impl DerefMut for InternalPk
impl DerefMut for InternalPk
source§impl<'de> Deserialize<'de> for InternalPk
impl<'de> Deserialize<'de> for InternalPk
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for InternalPk
impl Display for InternalPk
source§impl From<InternalPk> for XOnlyPublicKey
impl From<InternalPk> for XOnlyPublicKey
source§fn from(wrapped: InternalPk) -> Self
fn from(wrapped: InternalPk) -> Self
Converts to this type from the input type.
source§impl From<XOnlyPublicKey> for InternalPk
impl From<XOnlyPublicKey> for InternalPk
source§fn from(v: XOnlyPublicKey) -> Self
fn from(v: XOnlyPublicKey) -> Self
Converts to this type from the input type.
source§impl FromStr for InternalPk
impl FromStr for InternalPk
source§impl Hash for InternalPk
impl Hash for InternalPk
source§impl LowerHex for InternalPk
impl LowerHex for InternalPk
source§impl Ord for InternalPk
impl Ord for InternalPk
source§fn cmp(&self, other: &InternalPk) -> Ordering
fn cmp(&self, other: &InternalPk) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<InternalPk> for InternalPk
impl PartialEq<InternalPk> for InternalPk
source§fn eq(&self, other: &InternalPk) -> bool
fn eq(&self, other: &InternalPk) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<InternalPk> for InternalPk
impl PartialOrd<InternalPk> for InternalPk
source§fn partial_cmp(&self, other: &InternalPk) -> Option<Ordering>
fn partial_cmp(&self, other: &InternalPk) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl Serialize for InternalPk
impl Serialize for InternalPk
source§impl StrictDecode for InternalPk
impl StrictDecode for InternalPk
fn strict_decode(reader: &mut impl TypedRead) -> Result<Self, DecodeError>
fn strict_read(lim: usize, reader: impl Read) -> Result<Self, DecodeError>
source§impl StrictDumb for InternalPk
impl StrictDumb for InternalPk
fn strict_dumb() -> Self
source§impl StrictEncode for InternalPk
impl StrictEncode for InternalPk
fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
fn strict_write(&self, lim: usize, writer: impl Write) -> Result<usize, Error>
source§impl StrictTuple for InternalPk
impl StrictTuple for InternalPk
const FIELD_COUNT: u8 = 1u8
fn strict_check_fields()
fn strict_type_info() -> TypeInfo<Self>
source§impl StrictType for InternalPk
impl StrictType for InternalPk
const STRICT_LIB_NAME: &'static str = LIB_NAME_BITCOIN
fn strict_name() -> Option<TypeName>
source§impl Wrapper for InternalPk
impl Wrapper for InternalPk
§type Inner = XOnlyPublicKey
type Inner = XOnlyPublicKey
Inner type wrapped by the current newtype
source§fn from_inner(inner: Self::Inner) -> Self
fn from_inner(inner: Self::Inner) -> Self
Instantiates wrapper type with the inner data
source§fn as_inner(&self) -> &Self::Inner
fn as_inner(&self) -> &Self::Inner
Returns reference to the inner representation for the wrapper type
source§fn into_inner(self) -> Self::Inner
fn into_inner(self) -> Self::Inner
Unwraps the wrapper returning the inner type
source§impl WrapperMut for InternalPk
impl WrapperMut for InternalPk
source§fn as_inner_mut(&mut self) -> &mut <Self as Wrapper>::Inner
fn as_inner_mut(&mut self) -> &mut <Self as Wrapper>::Inner
Returns a mutable reference to the inner representation for the wrapper
type
impl Copy for InternalPk
impl Eq for InternalPk
impl StrictProduct for InternalPk
impl StructuralEq for InternalPk
impl StructuralPartialEq for InternalPk
Auto Trait Implementations§
impl RefUnwindSafe for InternalPk
impl Send for InternalPk
impl Sync for InternalPk
impl Unpin for InternalPk
impl UnwindSafe for InternalPk
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.