pub struct MintPair(/* private fields */);Expand description
The two mints a swap trades, without a direction: a maker quotes a pair both ways, so
(a, b) and (b, a) are the same pair. Normalized on construction and on deserialization,
which is what makes the set lookup direction-agnostic.
Implementations§
Trait Implementations§
impl Copy for MintPair
Source§impl<'de> Deserialize<'de> for MintPair
impl<'de> Deserialize<'de> for MintPair
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for MintPair
Source§impl FromStr for MintPair
<base>,<quote> in base58 — the spelling a CLI flag or env var carries.
impl FromStr for MintPair
<base>,<quote> in base58 — the spelling a CLI flag or env var carries.
Source§impl Ord for MintPair
impl Ord for MintPair
1.21.0 (const: unstable) · Source§fn 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
Source§impl PartialOrd for MintPair
impl PartialOrd for MintPair
impl StructuralPartialEq for MintPair
Auto Trait Implementations§
impl Freeze for MintPair
impl RefUnwindSafe for MintPair
impl Send for MintPair
impl Sync for MintPair
impl Unpin for MintPair
impl UnsafeUnpin for MintPair
impl UnwindSafe for MintPair
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more