pub struct TestPosition<T, const DECIMALS: u8> { /* private fields */ }Available on crate features
test only.Expand description
Test Position
Implementations§
Source§impl<T: Unsigned, const DECIMALS: u8> TestPosition<T, DECIMALS>
impl<T: Unsigned, const DECIMALS: u8> TestPosition<T, DECIMALS>
Sourcepub fn ops<'a>(
&'a mut self,
market: &'a mut TestMarket<T, DECIMALS>,
) -> TestPositionOps<'a, T, DECIMALS>
pub fn ops<'a>( &'a mut self, market: &'a mut TestMarket<T, DECIMALS>, ) -> TestPositionOps<'a, T, DECIMALS>
Create a TestPositionOps for ops.
Trait Implementations§
Source§impl<T: Clone, const DECIMALS: u8> Clone for TestPosition<T, DECIMALS>
impl<T: Clone, const DECIMALS: u8> Clone for TestPosition<T, DECIMALS>
Source§fn clone(&self) -> TestPosition<T, DECIMALS>
fn clone(&self) -> TestPosition<T, DECIMALS>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Default, const DECIMALS: u8> Default for TestPosition<T, DECIMALS>
impl<T: Default, const DECIMALS: u8> Default for TestPosition<T, DECIMALS>
Source§fn default() -> TestPosition<T, DECIMALS>
fn default() -> TestPosition<T, DECIMALS>
Returns the “default value” for a type. Read more
impl<T: Copy, const DECIMALS: u8> Copy for TestPosition<T, DECIMALS>
Auto Trait Implementations§
impl<T, const DECIMALS: u8> Freeze for TestPosition<T, DECIMALS>where
T: Freeze,
impl<T, const DECIMALS: u8> RefUnwindSafe for TestPosition<T, DECIMALS>where
T: RefUnwindSafe,
impl<T, const DECIMALS: u8> Send for TestPosition<T, DECIMALS>where
T: Send,
impl<T, const DECIMALS: u8> Sync for TestPosition<T, DECIMALS>where
T: Sync,
impl<T, const DECIMALS: u8> Unpin for TestPosition<T, DECIMALS>where
T: Unpin,
impl<T, const DECIMALS: u8> UnwindSafe for TestPosition<T, DECIMALS>where
T: 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