#[non_exhaustive]pub enum PoolKind {
V2,
V3,
V4,
}Expand description
Discriminant for the three pool-table families.
V2 corresponds to UniswapV2PoolTableBase (Uniswap V2 and V2-style
forks); V3 corresponds to UniswapV3PoolTableBase (Uniswap V3 and
V3-style forks); V4 corresponds to UniswapV4PoolTable.
All V2/V3 subtypes share the pools database table (single ID
sequence), so a pool_id is unique within V2 and within V3 — no
collision between the two. V4 pools use a separate managed_pools
table, so the PoolKind discriminant disambiguates V4 IDs from V2/V3
IDs.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Trait Implementations§
impl Copy for PoolKind
impl Eq for PoolKind
impl StructuralPartialEq for PoolKind
Auto Trait Implementations§
impl Freeze for PoolKind
impl RefUnwindSafe for PoolKind
impl Send for PoolKind
impl Sync for PoolKind
impl Unpin for PoolKind
impl UnsafeUnpin for PoolKind
impl UnwindSafe for PoolKind
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