pub struct P2WSHAddrIndex(/* private fields */);Methods from Deref<Target = TypeIndex>§
pub const COINBASE: Self
pub fn increment(&mut self)
pub fn copy_then_increment(&mut self) -> Self
pub fn to_be_bytes(&self) -> [u8; 4]
pub fn to_ne_bytes(&self) -> [u8; 4]
Trait Implementations§
Source§impl Add<usize> for P2WSHAddrIndex
impl Add<usize> for P2WSHAddrIndex
Source§impl Bytes for P2WSHAddrIndex
impl Bytes for P2WSHAddrIndex
Source§const IS_NATIVE_LAYOUT: bool
const IS_NATIVE_LAYOUT: bool
Whether the byte representation from
to_bytes is identical to the
in-memory representation of Self. When true, bulk operations can use
memcpy instead of per-element deserialization. Read moreSource§impl CheckedSub for P2WSHAddrIndex
impl CheckedSub for P2WSHAddrIndex
fn checked_sub(self, rhs: Self) -> Option<Self>
Source§impl Clone for P2WSHAddrIndex
impl Clone for P2WSHAddrIndex
Source§fn clone(&self) -> P2WSHAddrIndex
fn clone(&self) -> P2WSHAddrIndex
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for P2WSHAddrIndex
Source§impl Debug for P2WSHAddrIndex
impl Debug for P2WSHAddrIndex
Source§impl Default for P2WSHAddrIndex
impl Default for P2WSHAddrIndex
Source§fn default() -> P2WSHAddrIndex
fn default() -> P2WSHAddrIndex
Returns the “default value” for a type. Read more
Source§impl Deref for P2WSHAddrIndex
impl Deref for P2WSHAddrIndex
Source§impl DerefMut for P2WSHAddrIndex
impl DerefMut for P2WSHAddrIndex
Source§impl<'de> Deserialize<'de> for P2WSHAddrIndex
impl<'de> Deserialize<'de> for P2WSHAddrIndex
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 P2WSHAddrIndex
impl Display for P2WSHAddrIndex
impl Eq for P2WSHAddrIndex
Source§impl Formattable for P2WSHAddrIndex
impl Formattable for P2WSHAddrIndex
Source§impl From<P2WSHAddrIndex> for TypeIndex
impl From<P2WSHAddrIndex> for TypeIndex
Source§fn from(value: P2WSHAddrIndex) -> Self
fn from(value: P2WSHAddrIndex) -> Self
Converts to this type from the input type.
Source§impl From<P2WSHAddrIndex> for u32
impl From<P2WSHAddrIndex> for u32
Source§fn from(value: P2WSHAddrIndex) -> Self
fn from(value: P2WSHAddrIndex) -> Self
Converts to this type from the input type.
Source§impl From<P2WSHAddrIndex> for u64
impl From<P2WSHAddrIndex> for u64
Source§fn from(value: P2WSHAddrIndex) -> Self
fn from(value: P2WSHAddrIndex) -> Self
Converts to this type from the input type.
Source§impl From<P2WSHAddrIndex> for usize
impl From<P2WSHAddrIndex> for usize
Source§fn from(value: P2WSHAddrIndex) -> Self
fn from(value: P2WSHAddrIndex) -> Self
Converts to this type from the input type.
Source§impl From<P2WSHAddrIndex> for StoredU16
impl From<P2WSHAddrIndex> for StoredU16
Source§fn from(value: P2WSHAddrIndex) -> Self
fn from(value: P2WSHAddrIndex) -> Self
Converts to this type from the input type.
Source§impl From<P2WSHAddrIndex> for StoredU32
impl From<P2WSHAddrIndex> for StoredU32
Source§fn from(value: P2WSHAddrIndex) -> Self
fn from(value: P2WSHAddrIndex) -> Self
Converts to this type from the input type.
Source§impl From<P2WSHAddrIndex> for StoredU64
impl From<P2WSHAddrIndex> for StoredU64
Source§fn from(value: P2WSHAddrIndex) -> Self
fn from(value: P2WSHAddrIndex) -> Self
Converts to this type from the input type.
Source§impl From<TypeIndex> for P2WSHAddrIndex
impl From<TypeIndex> for P2WSHAddrIndex
Source§impl From<u32> for P2WSHAddrIndex
impl From<u32> for P2WSHAddrIndex
Source§impl From<usize> for P2WSHAddrIndex
impl From<usize> for P2WSHAddrIndex
Source§impl JsonSchema for P2WSHAddrIndex
impl JsonSchema for P2WSHAddrIndex
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl Ord for P2WSHAddrIndex
impl Ord for P2WSHAddrIndex
Source§fn cmp(&self, other: &P2WSHAddrIndex) -> Ordering
fn cmp(&self, other: &P2WSHAddrIndex) -> Ordering
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for P2WSHAddrIndex
impl PartialEq for P2WSHAddrIndex
Source§impl PartialOrd for P2WSHAddrIndex
impl PartialOrd for P2WSHAddrIndex
Source§impl Pco for P2WSHAddrIndex
impl Pco for P2WSHAddrIndex
const IS_TRANSPARENT: bool
type NumberType = <TypeIndex as Pco>::NumberType
fn to_number(self) -> Self::NumberType
fn from_number(value: Self::NumberType) -> Result<Self>
Source§impl PrintableIndex for P2WSHAddrIndex
impl PrintableIndex for P2WSHAddrIndex
Source§impl Serialize for P2WSHAddrIndex
impl Serialize for P2WSHAddrIndex
impl StructuralPartialEq for P2WSHAddrIndex
Source§impl VecIndex for P2WSHAddrIndex
impl VecIndex for P2WSHAddrIndex
Auto Trait Implementations§
impl Freeze for P2WSHAddrIndex
impl RefUnwindSafe for P2WSHAddrIndex
impl Send for P2WSHAddrIndex
impl Sync for P2WSHAddrIndex
impl Unpin for P2WSHAddrIndex
impl UnsafeUnpin for P2WSHAddrIndex
impl UnwindSafe for P2WSHAddrIndex
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<T> BytesVecValue for T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§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<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