Enum bdk::wallet::tx_builder::TxOrdering
source · pub enum TxOrdering {
Shuffle,
Untouched,
Bip69Lexicographic,
}
Expand description
Ordering of the transaction’s inputs and outputs
Variants
Shuffle
Randomized (default)
Untouched
Unchanged
Bip69Lexicographic
BIP69 / Lexicographic
Implementations
sourceimpl TxOrdering
impl TxOrdering
sourcepub fn sort_tx(&self, tx: &mut Transaction)
pub fn sort_tx(&self, tx: &mut Transaction)
Sort transaction inputs and outputs by TxOrdering
variant
Trait Implementations
sourceimpl Clone for TxOrdering
impl Clone for TxOrdering
sourcefn clone(&self) -> TxOrdering
fn clone(&self) -> TxOrdering
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for TxOrdering
impl Debug for TxOrdering
sourceimpl Default for TxOrdering
impl Default for TxOrdering
sourceimpl Hash for TxOrdering
impl Hash for TxOrdering
sourceimpl Ord for TxOrdering
impl Ord for TxOrdering
sourcefn cmp(&self, other: &TxOrdering) -> Ordering
fn cmp(&self, other: &TxOrdering) -> Ordering
1.21.0 · sourcefn 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
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<TxOrdering> for TxOrdering
impl PartialEq<TxOrdering> for TxOrdering
sourcefn eq(&self, other: &TxOrdering) -> bool
fn eq(&self, other: &TxOrdering) -> bool
sourceimpl PartialOrd<TxOrdering> for TxOrdering
impl PartialOrd<TxOrdering> for TxOrdering
sourcefn partial_cmp(&self, other: &TxOrdering) -> Option<Ordering>
fn partial_cmp(&self, other: &TxOrdering) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for TxOrdering
impl Eq for TxOrdering
impl StructuralEq for TxOrdering
impl StructuralPartialEq for TxOrdering
Auto Trait Implementations
impl RefUnwindSafe for TxOrdering
impl Send for TxOrdering
impl Sync for TxOrdering
impl Unpin for TxOrdering
impl UnwindSafe for TxOrdering
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more