pub struct SwapState<I = i32> {
pub amount_specified_remaining: I256,
pub amount_calculated: I256,
pub sqrt_price_x96: U160,
pub tick_current: I,
pub liquidity: u128,
}Fields§
§amount_specified_remaining: I256§amount_calculated: I256§sqrt_price_x96: U160§tick_current: I§liquidity: u128Trait Implementations§
impl<I: Copy> Copy for SwapState<I>
Auto Trait Implementations§
impl<I> Freeze for SwapState<I>where
I: Freeze,
impl<I> RefUnwindSafe for SwapState<I>where
I: RefUnwindSafe,
impl<I> Send for SwapState<I>where
I: Send,
impl<I> Sync for SwapState<I>where
I: Sync,
impl<I> Unpin for SwapState<I>where
I: Unpin,
impl<I> UnsafeUnpin for SwapState<I>where
I: UnsafeUnpin,
impl<I> UnwindSafe for SwapState<I>where
I: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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