pub struct Edge {
pub neighbor: u64,
pub pool_id: u64,
pub pool_kind: PoolKind,
}Expand description
A pool edge in the external (database) form. Retained for API
compatibility; the internal adjacency list uses the compact [CompactEdge]
(8 bytes, two u32 indices) for cache density.
Fields§
§neighbor: u64The token ID this edge leads to.
pool_id: u64The pool ID providing this liquidity connection.
pool_kind: PoolKindWhich pool-table family this pool belongs to.
Trait Implementations§
impl Copy for Edge
impl Eq for Edge
impl StructuralPartialEq for Edge
Auto Trait Implementations§
impl Freeze for Edge
impl RefUnwindSafe for Edge
impl Send for Edge
impl Sync for Edge
impl Unpin for Edge
impl UnsafeUnpin for Edge
impl UnwindSafe for Edge
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