pub struct PoolRef<'a> {
pub balance: &'a Uint256,
pub shares: &'a Uint256,
}Expand description
This serves the same purpose as Pool, but can be constructed directly from immutable references.
Fields§
§balance: &'a Uint256Auto Trait Implementations§
impl<'a> Freeze for PoolRef<'a>
impl<'a> RefUnwindSafe for PoolRef<'a>
impl<'a> Send for PoolRef<'a>
impl<'a> Sync for PoolRef<'a>
impl<'a> Unpin for PoolRef<'a>
impl<'a> UnwindSafe for PoolRef<'a>
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