pub struct ScoreWithRef<T, S> {
pub score: S,
pub transaction: Transaction<T>,
}Expand description
A score with a reference to the transaction.
Fields§
§score: SScore
transaction: Transaction<T>Shared transaction
Implementations§
Source§impl<T, S> ScoreWithRef<T, S>
impl<T, S> ScoreWithRef<T, S>
Sourcepub fn new(score: S, transaction: Transaction<T>) -> Self
pub fn new(score: S, transaction: Transaction<T>) -> Self
Creates a new ScoreWithRef
Trait Implementations§
Source§impl<T, S: Clone> Clone for ScoreWithRef<T, S>
impl<T, S: Clone> Clone for ScoreWithRef<T, S>
Source§impl<S: Ord, T> Ord for ScoreWithRef<T, S>
impl<S: Ord, T> Ord for ScoreWithRef<T, S>
Source§impl<S: Ord, T> PartialEq for ScoreWithRef<T, S>
impl<S: Ord, T> PartialEq for ScoreWithRef<T, S>
Source§impl<S: Ord, T> PartialOrd for ScoreWithRef<T, S>
impl<S: Ord, T> PartialOrd for ScoreWithRef<T, S>
impl<S: Ord, T> Eq for ScoreWithRef<T, S>
Auto Trait Implementations§
impl<T, S> Freeze for ScoreWithRef<T, S>where
S: Freeze,
impl<T, S> RefUnwindSafe for ScoreWithRef<T, S>where
S: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, S> Send for ScoreWithRef<T, S>
impl<T, S> Sync for ScoreWithRef<T, S>
impl<T, S> Unpin for ScoreWithRef<T, S>where
S: Unpin,
impl<T, S> UnsafeUnpin for ScoreWithRef<T, S>where
S: UnsafeUnpin,
impl<T, S> UnwindSafe for ScoreWithRef<T, S>where
S: UnwindSafe,
T: RefUnwindSafe,
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