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
Source§fn clone(&self) -> LiquidityPool
fn clone(&self) -> LiquidityPool
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl 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
Source§fn cmp(&self, other: &LiquidityPool) -> Ordering
fn cmp(&self, other: &LiquidityPool) -> Ordering
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 PartialEq for LiquidityPool
impl PartialEq for LiquidityPool
Source§fn eq(&self, other: &LiquidityPool) -> bool
fn eq(&self, other: &LiquidityPool) -> bool
Tests for
self and other values to be equal, and is used by ==.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