Expand description
Output without native assets (e.g. Bitcoin)
The algorithm of selection always chooses the largest output. It is expected to use fewer outputs.
Fields
value: u64
Coin value.
data: Option<D>
Optional data such as transaction hash, index and any other data needed later. The output should be able to make a transaction input after selection.
Trait Implementations
sourceimpl<I> Select for Output<I>
impl<I> Select for Output<I>
sourcefn checked_add(&self, rhs: &Self) -> Option<Self>
fn checked_add(&self, rhs: &Self) -> Option<Self>
Computes self + rhs
, returning None
if overflow occurred.
sourcefn checked_sub(&self, rhs: &Self) -> Option<Self>
fn checked_sub(&self, rhs: &Self) -> Option<Self>
Computes self - rhs
, returning None
if overflow occurred.
sourcefn saturating_sub(&self, rhs: &Self) -> Self
fn saturating_sub(&self, rhs: &Self) -> Self
Computes self - rhs
, saturating at the lowest bound if overflow occurred.
impl<D> StructuralPartialEq for Output<D>
Auto Trait Implementations
impl<D> RefUnwindSafe for Output<D> where
D: RefUnwindSafe,
impl<D> Send for Output<D> where
D: Send,
impl<D> Sync for Output<D> where
D: Sync,
impl<D> Unpin for Output<D> where
D: Unpin,
impl<D> UnwindSafe for Output<D> where
D: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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