pub struct Notional(pub u128);Expand description
Represents a notional value (price * quantity)
Tuple Fields§
§0: u128Implementations§
Source§impl Notional
impl Notional
pub fn saturating_add(self, rhs: Self) -> Self
Trait Implementations§
Source§impl AddAssign for Notional
impl AddAssign for Notional
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+= operation. Read moreSource§impl<'de> Deserialize<'de> for Notional
impl<'de> Deserialize<'de> for Notional
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for Notional
impl Ord for Notional
Source§impl PartialOrd for Notional
impl PartialOrd for Notional
Source§impl SubAssign for Notional
impl SubAssign for Notional
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-= operation. Read moreimpl Copy for Notional
impl Eq for Notional
impl StructuralPartialEq for Notional
Auto Trait Implementations§
impl Freeze for Notional
impl RefUnwindSafe for Notional
impl Send for Notional
impl Sync for Notional
impl Unpin for Notional
impl UnsafeUnpin for Notional
impl UnwindSafe for Notional
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