[][src]Struct tastyworks::common::Decimal

pub struct Decimal(pub Rational64);

Implementations

impl Decimal[src]

pub fn abs(&self) -> Decimal[src]

Trait Implementations

impl Clone for Decimal[src]

impl Copy for Decimal[src]

impl Debug for Decimal[src]

impl Default for Decimal[src]

impl Display for Decimal[src]

impl Eq for Decimal[src]

impl FromStr for Decimal[src]

type Err = Box<dyn Error>

The associated error which can be returned from parsing.

impl PartialEq<Decimal> for Decimal[src]

impl StructuralEq for Decimal[src]

impl StructuralPartialEq for Decimal[src]

Auto Trait Implementations

impl RefUnwindSafe for Decimal

impl Send for Decimal

impl Sync for Decimal

impl Unpin for Decimal

impl UnwindSafe for Decimal

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,