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§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<P2AAddressIndex> for TypeIndex
impl From<P2AAddressIndex> for TypeIndex
Source§fn from(value: P2AAddressIndex) -> TypeIndex
fn from(value: P2AAddressIndex) -> TypeIndex
Converts to this type from the input type.
Source§impl From<P2PK33AddressIndex> for TypeIndex
impl From<P2PK33AddressIndex> for TypeIndex
Source§fn from(value: P2PK33AddressIndex) -> TypeIndex
fn from(value: P2PK33AddressIndex) -> TypeIndex
Converts to this type from the input type.
Source§impl From<P2PK65AddressIndex> for TypeIndex
impl From<P2PK65AddressIndex> for TypeIndex
Source§fn from(value: P2PK65AddressIndex) -> TypeIndex
fn from(value: P2PK65AddressIndex) -> TypeIndex
Converts to this type from the input type.
Source§impl From<P2PKHAddressIndex> for TypeIndex
impl From<P2PKHAddressIndex> for TypeIndex
Source§fn from(value: P2PKHAddressIndex) -> TypeIndex
fn from(value: P2PKHAddressIndex) -> TypeIndex
Converts to this type from the input type.
Source§impl From<P2SHAddressIndex> for TypeIndex
impl From<P2SHAddressIndex> for TypeIndex
Source§fn from(value: P2SHAddressIndex) -> TypeIndex
fn from(value: P2SHAddressIndex) -> TypeIndex
Converts to this type from the input type.
Source§impl From<P2TRAddressIndex> for TypeIndex
impl From<P2TRAddressIndex> for TypeIndex
Source§fn from(value: P2TRAddressIndex) -> TypeIndex
fn from(value: P2TRAddressIndex) -> TypeIndex
Converts to this type from the input type.
Source§impl From<P2WPKHAddressIndex> for TypeIndex
impl From<P2WPKHAddressIndex> for TypeIndex
Source§fn from(value: P2WPKHAddressIndex) -> TypeIndex
fn from(value: P2WPKHAddressIndex) -> TypeIndex
Converts to this type from the input type.
Source§impl From<P2WSHAddressIndex> for TypeIndex
impl From<P2WSHAddressIndex> for TypeIndex
Source§fn from(value: P2WSHAddressIndex) -> TypeIndex
fn from(value: P2WSHAddressIndex) -> TypeIndex
Converts to this type from the input type.
Source§impl From<TypeIndex> for EmptyAddressIndex
impl From<TypeIndex> for EmptyAddressIndex
Source§fn from(value: TypeIndex) -> EmptyAddressIndex
fn from(value: TypeIndex) -> EmptyAddressIndex
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 LoadedAddressIndex
impl From<TypeIndex> for LoadedAddressIndex
Source§fn from(value: TypeIndex) -> LoadedAddressIndex
fn from(value: TypeIndex) -> LoadedAddressIndex
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 P2AAddressIndex
impl From<TypeIndex> for P2AAddressIndex
Source§fn from(value: TypeIndex) -> P2AAddressIndex
fn from(value: TypeIndex) -> P2AAddressIndex
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 P2PK33AddressIndex
impl From<TypeIndex> for P2PK33AddressIndex
Source§fn from(value: TypeIndex) -> P2PK33AddressIndex
fn from(value: TypeIndex) -> P2PK33AddressIndex
Converts to this type from the input type.
Source§impl From<TypeIndex> for P2PK65AddressIndex
impl From<TypeIndex> for P2PK65AddressIndex
Source§fn from(value: TypeIndex) -> P2PK65AddressIndex
fn from(value: TypeIndex) -> P2PK65AddressIndex
Converts to this type from the input type.
Source§impl From<TypeIndex> for P2PKHAddressIndex
impl From<TypeIndex> for P2PKHAddressIndex
Source§fn from(value: TypeIndex) -> P2PKHAddressIndex
fn from(value: TypeIndex) -> P2PKHAddressIndex
Converts to this type from the input type.
Source§impl From<TypeIndex> for P2SHAddressIndex
impl From<TypeIndex> for P2SHAddressIndex
Source§fn from(value: TypeIndex) -> P2SHAddressIndex
fn from(value: TypeIndex) -> P2SHAddressIndex
Converts to this type from the input type.
Source§impl From<TypeIndex> for P2TRAddressIndex
impl From<TypeIndex> for P2TRAddressIndex
Source§fn from(value: TypeIndex) -> P2TRAddressIndex
fn from(value: TypeIndex) -> P2TRAddressIndex
Converts to this type from the input type.
Source§impl From<TypeIndex> for P2WPKHAddressIndex
impl From<TypeIndex> for P2WPKHAddressIndex
Source§fn from(value: TypeIndex) -> P2WPKHAddressIndex
fn from(value: TypeIndex) -> P2WPKHAddressIndex
Converts to this type from the input type.
Source§impl From<TypeIndex> for P2WSHAddressIndex
impl From<TypeIndex> for P2WSHAddressIndex
Source§fn from(value: TypeIndex) -> P2WSHAddressIndex
fn from(value: TypeIndex) -> P2WSHAddressIndex
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 EmptyAddressIndex
impl TransparentPco<<TypeIndex as Pco>::NumberType> for EmptyOutputIndex
impl TransparentPco<<TypeIndex as Pco>::NumberType> for LoadedAddressIndex
impl TransparentPco<<TypeIndex as Pco>::NumberType> for OpReturnIndex
impl TransparentPco<<TypeIndex as Pco>::NumberType> for P2AAddressIndex
impl TransparentPco<<TypeIndex as Pco>::NumberType> for P2MSOutputIndex
impl TransparentPco<<TypeIndex as Pco>::NumberType> for P2PK33AddressIndex
impl TransparentPco<<TypeIndex as Pco>::NumberType> for P2PK65AddressIndex
impl TransparentPco<<TypeIndex as Pco>::NumberType> for P2PKHAddressIndex
impl TransparentPco<<TypeIndex as Pco>::NumberType> for P2SHAddressIndex
impl TransparentPco<<TypeIndex as Pco>::NumberType> for P2TRAddressIndex
impl TransparentPco<<TypeIndex as Pco>::NumberType> for P2WPKHAddressIndex
impl TransparentPco<<TypeIndex as Pco>::NumberType> for P2WSHAddressIndex
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 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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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