pub struct PairOutputIndex(/* private fields */);Expand description
Index for 2-output transactions (oracle pair candidates)
This indexes all transactions with exactly 2 outputs, which are candidates for the UTXOracle algorithm (payment + change pattern).
Implementations§
Source§impl PairOutputIndex
impl PairOutputIndex
pub const ZERO: PairOutputIndex
pub fn new(index: u32) -> PairOutputIndex
pub fn incremented(self) -> PairOutputIndex
Trait Implementations§
Source§impl Add<usize> for PairOutputIndex
impl Add<usize> for PairOutputIndex
Source§impl Bytes for PairOutputIndex
impl Bytes for PairOutputIndex
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 to_bytes(&self) -> <PairOutputIndex as Bytes>::Array
fn to_bytes(&self) -> <PairOutputIndex as Bytes>::Array
Serializes this value to bytes. Read more
Source§fn from_bytes(bytes: &[u8]) -> Result<PairOutputIndex, Error>
fn from_bytes(bytes: &[u8]) -> Result<PairOutputIndex, Error>
Deserializes a value from bytes. Read more
Source§impl CheckedSub for PairOutputIndex
impl CheckedSub for PairOutputIndex
fn checked_sub(self, rhs: PairOutputIndex) -> Option<PairOutputIndex>
Source§impl Clone for PairOutputIndex
impl Clone for PairOutputIndex
Source§fn clone(&self) -> PairOutputIndex
fn clone(&self) -> PairOutputIndex
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 PairOutputIndex
impl Debug for PairOutputIndex
Source§impl Default for PairOutputIndex
impl Default for PairOutputIndex
Source§fn default() -> PairOutputIndex
fn default() -> PairOutputIndex
Returns the “default value” for a type. Read more
Source§impl Deref for PairOutputIndex
impl Deref for PairOutputIndex
Source§impl DerefMut for PairOutputIndex
impl DerefMut for PairOutputIndex
Source§impl<'de> Deserialize<'de> for PairOutputIndex
impl<'de> Deserialize<'de> for PairOutputIndex
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PairOutputIndex, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PairOutputIndex, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for PairOutputIndex
impl Display for PairOutputIndex
Source§impl Formattable for PairOutputIndex
impl Formattable for PairOutputIndex
Source§impl From<PairOutputIndex> for u32
impl From<PairOutputIndex> for u32
Source§fn from(value: PairOutputIndex) -> u32
fn from(value: PairOutputIndex) -> u32
Converts to this type from the input type.
Source§impl From<PairOutputIndex> for u64
impl From<PairOutputIndex> for u64
Source§fn from(value: PairOutputIndex) -> u64
fn from(value: PairOutputIndex) -> u64
Converts to this type from the input type.
Source§impl From<PairOutputIndex> for usize
impl From<PairOutputIndex> for usize
Source§fn from(value: PairOutputIndex) -> usize
fn from(value: PairOutputIndex) -> usize
Converts to this type from the input type.
Source§impl From<u32> for PairOutputIndex
impl From<u32> for PairOutputIndex
Source§fn from(value: u32) -> PairOutputIndex
fn from(value: u32) -> PairOutputIndex
Converts to this type from the input type.
Source§impl From<u64> for PairOutputIndex
impl From<u64> for PairOutputIndex
Source§fn from(value: u64) -> PairOutputIndex
fn from(value: u64) -> PairOutputIndex
Converts to this type from the input type.
Source§impl From<usize> for PairOutputIndex
impl From<usize> for PairOutputIndex
Source§fn from(value: usize) -> PairOutputIndex
fn from(value: usize) -> PairOutputIndex
Converts to this type from the input type.
Source§impl Hash for PairOutputIndex
impl Hash for PairOutputIndex
Source§impl JsonSchema for PairOutputIndex
impl JsonSchema for PairOutputIndex
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 PairOutputIndex
impl Ord for PairOutputIndex
Source§fn cmp(&self, other: &PairOutputIndex) -> Ordering
fn cmp(&self, other: &PairOutputIndex) -> 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 PairOutputIndex
impl PartialEq for PairOutputIndex
Source§impl PartialOrd for PairOutputIndex
impl PartialOrd for PairOutputIndex
Source§impl Pco for PairOutputIndex
impl Pco for PairOutputIndex
type NumberType = <u32 as Pco>::NumberType
Source§impl PrintableIndex for PairOutputIndex
impl PrintableIndex for PairOutputIndex
Source§impl Serialize for PairOutputIndex
impl Serialize for PairOutputIndex
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 PairOutputIndex
impl Eq for PairOutputIndex
impl StructuralPartialEq for PairOutputIndex
impl TransparentPco<<u32 as Pco>::NumberType> for PairOutputIndex
Auto Trait Implementations§
impl Freeze for PairOutputIndex
impl RefUnwindSafe for PairOutputIndex
impl Send for PairOutputIndex
impl Sync for PairOutputIndex
impl Unpin for PairOutputIndex
impl UnwindSafe for PairOutputIndex
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