pub struct TypeIndex(/* private fields */);
Implementations§
Source§impl TypeIndex
impl TypeIndex
pub fn increment(&mut self)
pub fn incremented(self) -> Self
pub fn copy_then_increment(&mut self) -> Self
Trait Implementations§
Source§impl CheckedSub for TypeIndex
impl CheckedSub for TypeIndex
fn checked_sub(self, rhs: Self) -> Option<Self>
Source§impl From<P2AAddressIndex> for TypeIndex
impl From<P2AAddressIndex> for TypeIndex
Source§fn from(value: P2AAddressIndex) -> Self
fn from(value: P2AAddressIndex) -> Self
Converts to this type from the input type.
Source§impl From<P2PK33AddressIndex> for TypeIndex
impl From<P2PK33AddressIndex> for TypeIndex
Source§fn from(value: P2PK33AddressIndex) -> Self
fn from(value: P2PK33AddressIndex) -> Self
Converts to this type from the input type.
Source§impl From<P2PK65AddressIndex> for TypeIndex
impl From<P2PK65AddressIndex> for TypeIndex
Source§fn from(value: P2PK65AddressIndex) -> Self
fn from(value: P2PK65AddressIndex) -> Self
Converts to this type from the input type.
Source§impl From<P2PKHAddressIndex> for TypeIndex
impl From<P2PKHAddressIndex> for TypeIndex
Source§fn from(value: P2PKHAddressIndex) -> Self
fn from(value: P2PKHAddressIndex) -> Self
Converts to this type from the input type.
Source§impl From<P2SHAddressIndex> for TypeIndex
impl From<P2SHAddressIndex> for TypeIndex
Source§fn from(value: P2SHAddressIndex) -> Self
fn from(value: P2SHAddressIndex) -> Self
Converts to this type from the input type.
Source§impl From<P2TRAddressIndex> for TypeIndex
impl From<P2TRAddressIndex> for TypeIndex
Source§fn from(value: P2TRAddressIndex) -> Self
fn from(value: P2TRAddressIndex) -> Self
Converts to this type from the input type.
Source§impl From<P2WPKHAddressIndex> for TypeIndex
impl From<P2WPKHAddressIndex> for TypeIndex
Source§fn from(value: P2WPKHAddressIndex) -> Self
fn from(value: P2WPKHAddressIndex) -> Self
Converts to this type from the input type.
Source§impl From<P2WSHAddressIndex> for TypeIndex
impl From<P2WSHAddressIndex> for TypeIndex
Source§fn from(value: P2WSHAddressIndex) -> Self
fn from(value: P2WSHAddressIndex) -> Self
Converts to this type from the input type.
Source§impl From<TypeIndex> for EmptyAddressIndex
impl From<TypeIndex> for EmptyAddressIndex
Source§impl From<TypeIndex> for EmptyOutputIndex
impl From<TypeIndex> for EmptyOutputIndex
Source§impl From<TypeIndex> for LoadedAddressIndex
impl From<TypeIndex> for LoadedAddressIndex
Source§impl From<TypeIndex> for OpReturnIndex
impl From<TypeIndex> for OpReturnIndex
Source§impl From<TypeIndex> for P2AAddressIndex
impl From<TypeIndex> for P2AAddressIndex
Source§impl From<TypeIndex> for P2MSOutputIndex
impl From<TypeIndex> for P2MSOutputIndex
Source§impl From<TypeIndex> for P2PK33AddressIndex
impl From<TypeIndex> for P2PK33AddressIndex
Source§impl From<TypeIndex> for P2PK65AddressIndex
impl From<TypeIndex> for P2PK65AddressIndex
Source§impl From<TypeIndex> for P2PKHAddressIndex
impl From<TypeIndex> for P2PKHAddressIndex
Source§impl From<TypeIndex> for P2SHAddressIndex
impl From<TypeIndex> for P2SHAddressIndex
Source§impl From<TypeIndex> for P2TRAddressIndex
impl From<TypeIndex> for P2TRAddressIndex
Source§impl From<TypeIndex> for P2WPKHAddressIndex
impl From<TypeIndex> for P2WPKHAddressIndex
Source§impl From<TypeIndex> for P2WSHAddressIndex
impl From<TypeIndex> for P2WSHAddressIndex
Source§impl From<TypeIndex> for UnknownOutputIndex
impl From<TypeIndex> for UnknownOutputIndex
Source§impl FromBytes for TypeIndex
impl FromBytes for TypeIndex
Source§fn ref_from_bytes(
source: &[u8],
) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout + Immutable,
fn ref_from_bytes(
source: &[u8],
) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout + Immutable,
Source§fn ref_from_prefix(
source: &[u8],
) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout + Immutable,
fn ref_from_prefix(
source: &[u8],
) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout + Immutable,
Source§fn ref_from_suffix(
source: &[u8],
) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: Immutable + KnownLayout,
fn ref_from_suffix(
source: &[u8],
) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: Immutable + KnownLayout,
Interprets the suffix of the given bytes as a
&Self
. Read moreSource§fn mut_from_bytes(
source: &mut [u8],
) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
fn mut_from_bytes(
source: &mut [u8],
) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
Source§fn mut_from_prefix(
source: &mut [u8],
) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
fn mut_from_prefix(
source: &mut [u8],
) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
Source§fn mut_from_suffix(
source: &mut [u8],
) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
fn mut_from_suffix(
source: &mut [u8],
) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
Source§impl IntoBytes for TypeIndex
impl IntoBytes for TypeIndex
Source§fn as_mut_bytes(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
fn as_mut_bytes(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
Gets the bytes of this value mutably. Read more
Source§fn write_to(&self, dst: &mut [u8]) -> Result<(), SizeError<&Self, &mut [u8]>>where
Self: Immutable,
fn write_to(&self, dst: &mut [u8]) -> Result<(), SizeError<&Self, &mut [u8]>>where
Self: Immutable,
Source§impl KnownLayout for TypeIndexwhere
Self: Sized,
impl KnownLayout for TypeIndexwhere
Self: Sized,
Source§type PointerMetadata = ()
type PointerMetadata = ()
The type of metadata stored in a pointer to
Self
. Read moreSource§fn size_for_metadata(meta: Self::PointerMetadata) -> Option<usize>
fn size_for_metadata(meta: Self::PointerMetadata) -> Option<usize>
Computes the size of an object of type
Self
with the given pointer
metadata. Read moreSource§impl Ord for TypeIndex
impl Ord for TypeIndex
Source§impl PartialOrd for TypeIndex
impl PartialOrd for TypeIndex
Source§impl StoredCompressed for TypeIndex
impl StoredCompressed for TypeIndex
type NumberType = <u32 as StoredCompressed>::NumberType
Source§impl TryFromBytes for TypeIndexwhere
u32: TryFromBytes,
impl TryFromBytes for TypeIndexwhere
u32: TryFromBytes,
Source§fn try_ref_from_bytes(
source: &[u8],
) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout + Immutable,
fn try_ref_from_bytes(
source: &[u8],
) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout + Immutable,
Source§fn try_ref_from_prefix(
source: &[u8],
) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout + Immutable,
fn try_ref_from_prefix(
source: &[u8],
) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout + Immutable,
Source§fn try_ref_from_suffix(
source: &[u8],
) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout + Immutable,
fn try_ref_from_suffix(
source: &[u8],
) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout + Immutable,
Source§fn try_mut_from_bytes(
bytes: &mut [u8],
) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout + IntoBytes,
fn try_mut_from_bytes(
bytes: &mut [u8],
) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout + IntoBytes,
Source§fn try_mut_from_prefix(
source: &mut [u8],
) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout + IntoBytes,
fn try_mut_from_prefix(
source: &mut [u8],
) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout + IntoBytes,
Source§fn try_mut_from_suffix(
source: &mut [u8],
) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout + IntoBytes,
fn try_mut_from_suffix(
source: &mut [u8],
) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout + IntoBytes,
Source§fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
Source§fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
Source§fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
impl Copy for TypeIndex
impl Eq for TypeIndex
impl Immutable for TypeIndex
impl StructuralPartialEq for TypeIndex
impl TransparentStoredCompressed<<TypeIndex as StoredCompressed>::NumberType> for EmptyAddressIndex
impl TransparentStoredCompressed<<TypeIndex as StoredCompressed>::NumberType> for EmptyOutputIndex
impl TransparentStoredCompressed<<TypeIndex as StoredCompressed>::NumberType> for LoadedAddressIndex
impl TransparentStoredCompressed<<TypeIndex as StoredCompressed>::NumberType> for OpReturnIndex
impl TransparentStoredCompressed<<TypeIndex as StoredCompressed>::NumberType> for P2AAddressIndex
impl TransparentStoredCompressed<<TypeIndex as StoredCompressed>::NumberType> for P2MSOutputIndex
impl TransparentStoredCompressed<<TypeIndex as StoredCompressed>::NumberType> for P2PK33AddressIndex
impl TransparentStoredCompressed<<TypeIndex as StoredCompressed>::NumberType> for P2PK65AddressIndex
impl TransparentStoredCompressed<<TypeIndex as StoredCompressed>::NumberType> for P2PKHAddressIndex
impl TransparentStoredCompressed<<TypeIndex as StoredCompressed>::NumberType> for P2SHAddressIndex
impl TransparentStoredCompressed<<TypeIndex as StoredCompressed>::NumberType> for P2TRAddressIndex
impl TransparentStoredCompressed<<TypeIndex as StoredCompressed>::NumberType> for P2WPKHAddressIndex
impl TransparentStoredCompressed<<TypeIndex as StoredCompressed>::NumberType> for P2WSHAddressIndex
impl TransparentStoredCompressed<<TypeIndex as StoredCompressed>::NumberType> for UnknownOutputIndex
impl TransparentStoredCompressed<<u32 as StoredCompressed>::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 StoredCompressed>::NumberType> for Twhere
T: StoredCompressed,
impl<T> FromInnerSlice<<T as StoredCompressed>::NumberType> for Twhere
T: StoredCompressed,
fn from_inner_slice(vec: Vec<<T as StoredCompressed>::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