pub struct StoredUsize(/* private fields */);Implementations§
Trait Implementations§
Source§impl Add for StoredUsize
impl Add for StoredUsize
Source§impl AddAssign for StoredUsize
impl AddAssign for StoredUsize
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+= operation. Read moreSource§impl CheckedSub for StoredUsize
impl CheckedSub for StoredUsize
fn checked_sub(self, rhs: Self) -> Option<Self>
Source§impl Clone for StoredUsize
impl Clone for StoredUsize
Source§fn clone(&self) -> StoredUsize
fn clone(&self) -> StoredUsize
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StoredUsize
impl Debug for StoredUsize
Source§impl Default for StoredUsize
impl Default for StoredUsize
Source§fn default() -> StoredUsize
fn default() -> StoredUsize
Returns the “default value” for a type. Read more
Source§impl Deref for StoredUsize
impl Deref for StoredUsize
Source§impl DerefMut for StoredUsize
impl DerefMut for StoredUsize
Source§impl Div<usize> for StoredUsize
impl Div<usize> for StoredUsize
Source§impl From<DateIndex> for StoredUsize
impl From<DateIndex> for StoredUsize
Source§impl From<EmptyOutputIndex> for StoredUsize
impl From<EmptyOutputIndex> for StoredUsize
Source§fn from(value: EmptyOutputIndex) -> Self
fn from(value: EmptyOutputIndex) -> Self
Converts to this type from the input type.
Source§impl From<Height> for StoredUsize
impl From<Height> for StoredUsize
Source§impl From<InputIndex> for StoredUsize
impl From<InputIndex> for StoredUsize
Source§fn from(value: InputIndex) -> Self
fn from(value: InputIndex) -> Self
Converts to this type from the input type.
Source§impl From<MonthIndex> for StoredUsize
impl From<MonthIndex> for StoredUsize
Source§fn from(value: MonthIndex) -> Self
fn from(value: MonthIndex) -> Self
Converts to this type from the input type.
Source§impl From<OpReturnIndex> for StoredUsize
impl From<OpReturnIndex> for StoredUsize
Source§fn from(value: OpReturnIndex) -> Self
fn from(value: OpReturnIndex) -> Self
Converts to this type from the input type.
Source§impl From<OutputIndex> for StoredUsize
impl From<OutputIndex> for StoredUsize
Source§fn from(value: OutputIndex) -> Self
fn from(value: OutputIndex) -> Self
Converts to this type from the input type.
Source§impl From<P2AAddressIndex> for StoredUsize
impl From<P2AAddressIndex> for StoredUsize
Source§fn from(value: P2AAddressIndex) -> Self
fn from(value: P2AAddressIndex) -> Self
Converts to this type from the input type.
Source§impl From<P2MSOutputIndex> for StoredUsize
impl From<P2MSOutputIndex> for StoredUsize
Source§fn from(value: P2MSOutputIndex) -> Self
fn from(value: P2MSOutputIndex) -> Self
Converts to this type from the input type.
Source§impl From<P2PK33AddressIndex> for StoredUsize
impl From<P2PK33AddressIndex> for StoredUsize
Source§fn from(value: P2PK33AddressIndex) -> Self
fn from(value: P2PK33AddressIndex) -> Self
Converts to this type from the input type.
Source§impl From<P2PK65AddressIndex> for StoredUsize
impl From<P2PK65AddressIndex> for StoredUsize
Source§fn from(value: P2PK65AddressIndex) -> Self
fn from(value: P2PK65AddressIndex) -> Self
Converts to this type from the input type.
Source§impl From<P2PKHAddressIndex> for StoredUsize
impl From<P2PKHAddressIndex> for StoredUsize
Source§fn from(value: P2PKHAddressIndex) -> Self
fn from(value: P2PKHAddressIndex) -> Self
Converts to this type from the input type.
Source§impl From<P2SHAddressIndex> for StoredUsize
impl From<P2SHAddressIndex> for StoredUsize
Source§fn from(value: P2SHAddressIndex) -> Self
fn from(value: P2SHAddressIndex) -> Self
Converts to this type from the input type.
Source§impl From<P2TRAddressIndex> for StoredUsize
impl From<P2TRAddressIndex> for StoredUsize
Source§fn from(value: P2TRAddressIndex) -> Self
fn from(value: P2TRAddressIndex) -> Self
Converts to this type from the input type.
Source§impl From<P2WPKHAddressIndex> for StoredUsize
impl From<P2WPKHAddressIndex> for StoredUsize
Source§fn from(value: P2WPKHAddressIndex) -> Self
fn from(value: P2WPKHAddressIndex) -> Self
Converts to this type from the input type.
Source§impl From<P2WSHAddressIndex> for StoredUsize
impl From<P2WSHAddressIndex> for StoredUsize
Source§fn from(value: P2WSHAddressIndex) -> Self
fn from(value: P2WSHAddressIndex) -> Self
Converts to this type from the input type.
Source§impl From<StoredUsize> for Height
impl From<StoredUsize> for Height
Source§fn from(value: StoredUsize) -> Self
fn from(value: StoredUsize) -> Self
Converts to this type from the input type.
Source§impl From<StoredUsize> for f64
impl From<StoredUsize> for f64
Source§fn from(value: StoredUsize) -> Self
fn from(value: StoredUsize) -> Self
Converts to this type from the input type.
Source§impl From<StoredUsize> for usize
impl From<StoredUsize> for usize
Source§fn from(value: StoredUsize) -> Self
fn from(value: StoredUsize) -> Self
Converts to this type from the input type.
Source§impl From<TxIndex> for StoredUsize
impl From<TxIndex> for StoredUsize
Source§impl From<UnknownOutputIndex> for StoredUsize
impl From<UnknownOutputIndex> for StoredUsize
Source§fn from(value: UnknownOutputIndex) -> Self
fn from(value: UnknownOutputIndex) -> Self
Converts to this type from the input type.
Source§impl From<YearIndex> for StoredUsize
impl From<YearIndex> for StoredUsize
Source§impl From<f64> for StoredUsize
impl From<f64> for StoredUsize
Source§impl From<usize> for StoredUsize
impl From<usize> for StoredUsize
Source§impl FromBytes for StoredUsize
impl FromBytes for StoredUsize
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 FromZeros for StoredUsize
impl FromZeros for StoredUsize
Source§impl IntoBytes for StoredUsize
impl IntoBytes for StoredUsize
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 StoredUsizewhere
Self: Sized,
impl KnownLayout for StoredUsizewhere
Self: Sized,
Source§type PointerMetadata = ()
type PointerMetadata = ()
The type of metadata stored in a pointer to
Self. Read moreSource§impl Ord for StoredUsize
impl Ord for StoredUsize
Source§fn cmp(&self, other: &StoredUsize) -> Ordering
fn cmp(&self, other: &StoredUsize) -> Ordering
1.21.0 · 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 PartialEq for StoredUsize
impl PartialEq for StoredUsize
Source§impl PartialOrd for StoredUsize
impl PartialOrd for StoredUsize
Source§impl Printable for StoredUsize
impl Printable for StoredUsize
Source§impl Serialize for StoredUsize
impl Serialize for StoredUsize
Source§impl TryFromBytes for StoredUsizewhere
usize: TryFromBytes,
impl TryFromBytes for StoredUsizewhere
usize: 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 StoredUsize
impl Eq for StoredUsize
impl Immutable for StoredUsize
impl StructuralPartialEq for StoredUsize
Auto Trait Implementations§
impl Freeze for StoredUsize
impl RefUnwindSafe for StoredUsize
impl Send for StoredUsize
impl Sync for StoredUsize
impl Unpin for StoredUsize
impl UnwindSafe for StoredUsize
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.