Struct transaction_pool::scoring::ScoreWithRef[][src]

pub struct ScoreWithRef<T, S> {
    pub score: S,
    pub transaction: Transaction<T>,
}

A score with a reference to the transaction.

Fields

Score

Shared transaction

Methods

impl<T, S> ScoreWithRef<T, S>
[src]

Creates a new ScoreWithRef

Trait Implementations

impl<T: Debug, S: Debug> Debug for ScoreWithRef<T, S>
[src]

Formats the value using the given formatter. Read more

impl<T, S: Clone> Clone for ScoreWithRef<T, S>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<S: Ord, T> Ord for ScoreWithRef<T, S>
[src]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl<S: Ord, T> PartialOrd for ScoreWithRef<T, S>
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl<S: Ord, T> PartialEq for ScoreWithRef<T, S>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<S: Ord, T> Eq for ScoreWithRef<T, S>
[src]

Auto Trait Implementations

impl<T, S> Send for ScoreWithRef<T, S> where
    S: Send,
    T: Send + Sync

impl<T, S> Sync for ScoreWithRef<T, S> where
    S: Sync,
    T: Send + Sync