pub struct TypeIndex(/* private fields */);Expand description
Index within its type (e.g., 0 for first P2WPKH address)
Implementations§
Trait Implementations§
Source§impl Bytes for TypeIndex
impl Bytes for TypeIndex
Source§type Array = <u32 as Bytes>::Array
type Array = <u32 as Bytes>::Array
The byte array type returned by
to_bytes.
For fixed-size types, this is [u8; N] where N is the size of the type.Source§const IS_NATIVE_LAYOUT: bool = false
const IS_NATIVE_LAYOUT: bool = false
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 TypeIndex
impl CheckedSub for TypeIndex
fn checked_sub(self, rhs: Self) -> Option<Self>
impl Copy for TypeIndex
Source§impl<'de> Deserialize<'de> for TypeIndex
impl<'de> Deserialize<'de> for TypeIndex
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
impl Eq for TypeIndex
Source§impl Formattable for TypeIndex
impl Formattable for TypeIndex
Source§impl From<P2AAddrIndex> for TypeIndex
impl From<P2AAddrIndex> for TypeIndex
Source§fn from(value: P2AAddrIndex) -> Self
fn from(value: P2AAddrIndex) -> Self
Converts to this type from the input type.
Source§impl From<P2PK33AddrIndex> for TypeIndex
impl From<P2PK33AddrIndex> for TypeIndex
Source§fn from(value: P2PK33AddrIndex) -> Self
fn from(value: P2PK33AddrIndex) -> Self
Converts to this type from the input type.
Source§impl From<P2PK65AddrIndex> for TypeIndex
impl From<P2PK65AddrIndex> for TypeIndex
Source§fn from(value: P2PK65AddrIndex) -> Self
fn from(value: P2PK65AddrIndex) -> Self
Converts to this type from the input type.
Source§impl From<P2PKHAddrIndex> for TypeIndex
impl From<P2PKHAddrIndex> for TypeIndex
Source§fn from(value: P2PKHAddrIndex) -> Self
fn from(value: P2PKHAddrIndex) -> Self
Converts to this type from the input type.
Source§impl From<P2SHAddrIndex> for TypeIndex
impl From<P2SHAddrIndex> for TypeIndex
Source§fn from(value: P2SHAddrIndex) -> Self
fn from(value: P2SHAddrIndex) -> Self
Converts to this type from the input type.
Source§impl From<P2TRAddrIndex> for TypeIndex
impl From<P2TRAddrIndex> for TypeIndex
Source§fn from(value: P2TRAddrIndex) -> Self
fn from(value: P2TRAddrIndex) -> Self
Converts to this type from the input type.
Source§impl From<P2WPKHAddrIndex> for TypeIndex
impl From<P2WPKHAddrIndex> for TypeIndex
Source§fn from(value: P2WPKHAddrIndex) -> Self
fn from(value: P2WPKHAddrIndex) -> Self
Converts to this type from the input type.
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<TypeIndex> for EmptyAddrIndex
impl From<TypeIndex> for EmptyAddrIndex
Source§impl From<TypeIndex> for EmptyOutputIndex
impl From<TypeIndex> for EmptyOutputIndex
Source§impl From<TypeIndex> for FundedAddrIndex
impl From<TypeIndex> for FundedAddrIndex
Source§impl From<TypeIndex> for OpReturnIndex
impl From<TypeIndex> for OpReturnIndex
Source§impl From<TypeIndex> for P2AAddrIndex
impl From<TypeIndex> for P2AAddrIndex
Source§impl From<TypeIndex> for P2MSOutputIndex
impl From<TypeIndex> for P2MSOutputIndex
Source§impl From<TypeIndex> for P2PK33AddrIndex
impl From<TypeIndex> for P2PK33AddrIndex
Source§impl From<TypeIndex> for P2PK65AddrIndex
impl From<TypeIndex> for P2PK65AddrIndex
Source§impl From<TypeIndex> for P2PKHAddrIndex
impl From<TypeIndex> for P2PKHAddrIndex
Source§impl From<TypeIndex> for P2SHAddrIndex
impl From<TypeIndex> for P2SHAddrIndex
Source§impl From<TypeIndex> for P2TRAddrIndex
impl From<TypeIndex> for P2TRAddrIndex
Source§impl From<TypeIndex> for P2WPKHAddrIndex
impl From<TypeIndex> for P2WPKHAddrIndex
Source§impl From<TypeIndex> for P2WSHAddrIndex
impl From<TypeIndex> for P2WSHAddrIndex
Source§impl From<TypeIndex> for UnknownOutputIndex
impl From<TypeIndex> for UnknownOutputIndex
Source§impl JsonSchema for TypeIndex
impl JsonSchema for TypeIndex
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 TypeIndex
impl Ord for TypeIndex
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
Source§impl PartialOrd for TypeIndex
impl PartialOrd for TypeIndex
Source§impl Pco for TypeIndex
impl Pco for TypeIndex
type NumberType = <u32 as Pco>::NumberType
impl StructuralPartialEq for TypeIndex
impl TransparentPco<<TypeIndex as Pco>::NumberType> for EmptyAddrIndex
impl TransparentPco<<TypeIndex as Pco>::NumberType> for EmptyOutputIndex
impl TransparentPco<<TypeIndex as Pco>::NumberType> for FundedAddrIndex
impl TransparentPco<<TypeIndex as Pco>::NumberType> for OpReturnIndex
impl TransparentPco<<TypeIndex as Pco>::NumberType> for P2AAddrIndex
impl TransparentPco<<TypeIndex as Pco>::NumberType> for P2MSOutputIndex
impl TransparentPco<<TypeIndex as Pco>::NumberType> for P2PK33AddrIndex
impl TransparentPco<<TypeIndex as Pco>::NumberType> for P2PK65AddrIndex
impl TransparentPco<<TypeIndex as Pco>::NumberType> for P2PKHAddrIndex
impl TransparentPco<<TypeIndex as Pco>::NumberType> for P2SHAddrIndex
impl TransparentPco<<TypeIndex as Pco>::NumberType> for P2TRAddrIndex
impl TransparentPco<<TypeIndex as Pco>::NumberType> for P2WPKHAddrIndex
impl TransparentPco<<TypeIndex as Pco>::NumberType> for P2WSHAddrIndex
impl TransparentPco<<TypeIndex as Pco>::NumberType> for UnknownOutputIndex
impl TransparentPco<<u32 as Pco>::NumberType> for TypeIndex
Auto Trait Implementations§
impl Freeze for TypeIndex
impl RefUnwindSafe for TypeIndex
impl Send for TypeIndex
impl Sync for TypeIndex
impl Unpin for TypeIndex
impl UnsafeUnpin for TypeIndex
impl UnwindSafe for TypeIndex
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> FromInnerSlice<<T as Pco>::NumberType> for Twhere
T: PcoVecValue,
impl<T> FromInnerSlice<<T as Pco>::NumberType> for Twhere
T: PcoVecValue,
const _SIZE_CHECK: ()
const _ALIGN_CHECK: ()
fn from_inner_slice(vec: Vec<<T as Pco>::NumberType>) -> Vec<T>
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