pub struct Pair<C: Currency> {
pub source: C,
pub target: C,
}Expand description
Currency pair, as provided by Provider.
Fields§
§source: C§target: CTrait Implementations§
Source§impl<C: Ord + Currency> Ord for Pair<C>
impl<C: Ord + Currency> Ord for Pair<C>
Source§impl<C: PartialOrd + Currency> PartialOrd for Pair<C>
impl<C: PartialOrd + Currency> PartialOrd for Pair<C>
impl<C: Eq + Currency> Eq for Pair<C>
impl<C: Currency> StructuralPartialEq for Pair<C>
Auto Trait Implementations§
impl<C> Freeze for Pair<C>where
C: Freeze,
impl<C> RefUnwindSafe for Pair<C>where
C: RefUnwindSafe,
impl<C> Send for Pair<C>where
C: Send,
impl<C> Sync for Pair<C>where
C: Sync,
impl<C> Unpin for Pair<C>where
C: Unpin,
impl<C> UnwindSafe for Pair<C>where
C: UnwindSafe,
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