pub struct LiquidityPool(pub [u8; 32]);Expand description
A liquidity pool identifier (L...).
Tuple Fields§
§0: [u8; 32]Implementations§
Source§impl LiquidityPool
impl LiquidityPool
pub const ENCODED_LEN: usize
pub fn to_string(&self) -> HeaplessString<{ Self::ENCODED_LEN }>
pub fn from_string(s: &str) -> Result<Self, DecodeError>
pub fn from_slice(s: &[u8]) -> Result<Self, DecodeError>
Trait Implementations§
Source§impl Clone for LiquidityPool
impl Clone for LiquidityPool
impl Copy for LiquidityPool
Source§impl Debug for LiquidityPool
impl Debug for LiquidityPool
Source§impl Display for LiquidityPool
impl Display for LiquidityPool
impl Eq for LiquidityPool
Source§impl FromStr for LiquidityPool
impl FromStr for LiquidityPool
Source§impl Hash for LiquidityPool
impl Hash for LiquidityPool
Source§impl Ord for LiquidityPool
impl Ord for LiquidityPool
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for LiquidityPool
impl PartialEq for LiquidityPool
Source§impl PartialOrd for LiquidityPool
impl PartialOrd for LiquidityPool
impl StructuralPartialEq for LiquidityPool
Auto Trait Implementations§
impl Freeze for LiquidityPool
impl RefUnwindSafe for LiquidityPool
impl Send for LiquidityPool
impl Sync for LiquidityPool
impl Unpin for LiquidityPool
impl UnsafeUnpin for LiquidityPool
impl UnwindSafe for LiquidityPool
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