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§fn from_bytes(bytes: &[u8]) -> Result<TypeIndex, Error>
fn from_bytes(bytes: &[u8]) -> Result<TypeIndex, Error>
Deserializes a value from bytes. Read more
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
Source§impl<'de> Deserialize<'de> for TypeIndex
impl<'de> Deserialize<'de> for TypeIndex
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TypeIndex, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TypeIndex, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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) -> TypeIndex
fn from(value: P2AAddrIndex) -> TypeIndex
Converts to this type from the input type.
Source§impl From<P2PK33AddrIndex> for TypeIndex
impl From<P2PK33AddrIndex> for TypeIndex
Source§fn from(value: P2PK33AddrIndex) -> TypeIndex
fn from(value: P2PK33AddrIndex) -> TypeIndex
Converts to this type from the input type.
Source§impl From<P2PK65AddrIndex> for TypeIndex
impl From<P2PK65AddrIndex> for TypeIndex
Source§fn from(value: P2PK65AddrIndex) -> TypeIndex
fn from(value: P2PK65AddrIndex) -> TypeIndex
Converts to this type from the input type.
Source§impl From<P2PKHAddrIndex> for TypeIndex
impl From<P2PKHAddrIndex> for TypeIndex
Source§fn from(value: P2PKHAddrIndex) -> TypeIndex
fn from(value: P2PKHAddrIndex) -> TypeIndex
Converts to this type from the input type.
Source§impl From<P2SHAddrIndex> for TypeIndex
impl From<P2SHAddrIndex> for TypeIndex
Source§fn from(value: P2SHAddrIndex) -> TypeIndex
fn from(value: P2SHAddrIndex) -> TypeIndex
Converts to this type from the input type.
Source§impl From<P2TRAddrIndex> for TypeIndex
impl From<P2TRAddrIndex> for TypeIndex
Source§fn from(value: P2TRAddrIndex) -> TypeIndex
fn from(value: P2TRAddrIndex) -> TypeIndex
Converts to this type from the input type.
Source§impl From<P2WPKHAddrIndex> for TypeIndex
impl From<P2WPKHAddrIndex> for TypeIndex
Source§fn from(value: P2WPKHAddrIndex) -> TypeIndex
fn from(value: P2WPKHAddrIndex) -> TypeIndex
Converts to this type from the input type.
Source§impl From<P2WSHAddrIndex> for TypeIndex
impl From<P2WSHAddrIndex> for TypeIndex
Source§fn from(value: P2WSHAddrIndex) -> TypeIndex
fn from(value: P2WSHAddrIndex) -> TypeIndex
Converts to this type from the input type.
Source§impl From<TypeIndex> for EmptyAddrIndex
impl From<TypeIndex> for EmptyAddrIndex
Source§fn from(value: TypeIndex) -> EmptyAddrIndex
fn from(value: TypeIndex) -> EmptyAddrIndex
Converts to this type from the input type.
Source§impl From<TypeIndex> for EmptyOutputIndex
impl From<TypeIndex> for EmptyOutputIndex
Source§fn from(value: TypeIndex) -> EmptyOutputIndex
fn from(value: TypeIndex) -> EmptyOutputIndex
Converts to this type from the input type.
Source§impl From<TypeIndex> for FundedAddrIndex
impl From<TypeIndex> for FundedAddrIndex
Source§fn from(value: TypeIndex) -> FundedAddrIndex
fn from(value: TypeIndex) -> FundedAddrIndex
Converts to this type from the input type.
Source§impl From<TypeIndex> for OpReturnIndex
impl From<TypeIndex> for OpReturnIndex
Source§fn from(value: TypeIndex) -> OpReturnIndex
fn from(value: TypeIndex) -> OpReturnIndex
Converts to this type from the input type.
Source§impl From<TypeIndex> for P2AAddrIndex
impl From<TypeIndex> for P2AAddrIndex
Source§fn from(value: TypeIndex) -> P2AAddrIndex
fn from(value: TypeIndex) -> P2AAddrIndex
Converts to this type from the input type.
Source§impl From<TypeIndex> for P2MSOutputIndex
impl From<TypeIndex> for P2MSOutputIndex
Source§fn from(value: TypeIndex) -> P2MSOutputIndex
fn from(value: TypeIndex) -> P2MSOutputIndex
Converts to this type from the input type.
Source§impl From<TypeIndex> for P2PK33AddrIndex
impl From<TypeIndex> for P2PK33AddrIndex
Source§fn from(value: TypeIndex) -> P2PK33AddrIndex
fn from(value: TypeIndex) -> P2PK33AddrIndex
Converts to this type from the input type.
Source§impl From<TypeIndex> for P2PK65AddrIndex
impl From<TypeIndex> for P2PK65AddrIndex
Source§fn from(value: TypeIndex) -> P2PK65AddrIndex
fn from(value: TypeIndex) -> P2PK65AddrIndex
Converts to this type from the input type.
Source§impl From<TypeIndex> for P2PKHAddrIndex
impl From<TypeIndex> for P2PKHAddrIndex
Source§fn from(value: TypeIndex) -> P2PKHAddrIndex
fn from(value: TypeIndex) -> P2PKHAddrIndex
Converts to this type from the input type.
Source§impl From<TypeIndex> for P2SHAddrIndex
impl From<TypeIndex> for P2SHAddrIndex
Source§fn from(value: TypeIndex) -> P2SHAddrIndex
fn from(value: TypeIndex) -> P2SHAddrIndex
Converts to this type from the input type.
Source§impl From<TypeIndex> for P2TRAddrIndex
impl From<TypeIndex> for P2TRAddrIndex
Source§fn from(value: TypeIndex) -> P2TRAddrIndex
fn from(value: TypeIndex) -> P2TRAddrIndex
Converts to this type from the input type.
Source§impl From<TypeIndex> for P2WPKHAddrIndex
impl From<TypeIndex> for P2WPKHAddrIndex
Source§fn from(value: TypeIndex) -> P2WPKHAddrIndex
fn from(value: TypeIndex) -> P2WPKHAddrIndex
Converts to this type from the input type.
Source§impl From<TypeIndex> for P2WSHAddrIndex
impl From<TypeIndex> for P2WSHAddrIndex
Source§fn from(value: TypeIndex) -> P2WSHAddrIndex
fn from(value: TypeIndex) -> P2WSHAddrIndex
Converts to this type from the input type.
Source§impl From<TypeIndex> for UnknownOutputIndex
impl From<TypeIndex> for UnknownOutputIndex
Source§fn from(value: TypeIndex) -> UnknownOutputIndex
fn from(value: TypeIndex) -> UnknownOutputIndex
Converts to this type from the input type.
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
Source§impl PartialOrd for TypeIndex
impl PartialOrd for TypeIndex
Source§impl Pco for TypeIndex
impl Pco for TypeIndex
type NumberType = <u32 as Pco>::NumberType
Source§impl Serialize for TypeIndex
impl Serialize for TypeIndex
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
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
impl Copy for TypeIndex
impl Eq for TypeIndex
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
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
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