[][src]Struct merx::asset::asset::Debt

#[repr(align(8))]pub struct Debt<T: CheckedOps>(_);

Wrap a numeric value smaller than 0.

Debt(-4) + Debt(-6) = Debt(-10)

Debt(-4) + Credit(6) = Credit(2)

Trait Implementations

impl<T: CheckedOps> Add<Credit<T>> for Debt<T>[src]

type Output = Option<Asset<T>>

The resulting type after applying the + operator.

impl<T: CheckedOps> Add<Debt<T>> for Debt<T>[src]

type Output = Option<Debt<T>>

The resulting type after applying the + operator.

impl<T: Clone + CheckedOps> Clone for Debt<T>[src]

impl<T: Copy + CheckedOps> Copy for Debt<T>[src]

impl<T: Debug + CheckedOps> Debug for Debt<T>[src]

impl<T: Default + CheckedOps> Default for Debt<T>[src]

impl<T: Eq + CheckedOps> Eq for Debt<T>[src]

impl<T: Hash + CheckedOps> Hash for Debt<T>[src]

impl<T: Ord + CheckedOps> Ord for Debt<T>[src]

impl<T: PartialEq + CheckedOps> PartialEq<Debt<T>> for Debt<T>[src]

impl<T: PartialOrd + CheckedOps> PartialOrd<Debt<T>> for Debt<T>[src]

impl<T: CheckedOps> StructuralEq for Debt<T>[src]

impl<T: CheckedOps> StructuralPartialEq for Debt<T>[src]

impl<T: CheckedOps> Sub<Debt<T>> for Credit<T>[src]

type Output = Option<Asset<T>>

The resulting type after applying the - operator.

Auto Trait Implementations

impl<T> RefUnwindSafe for Debt<T> where
    T: RefUnwindSafe

impl<T> Send for Debt<T> where
    T: Send

impl<T> Sync for Debt<T> where
    T: Sync

impl<T> Unpin for Debt<T> where
    T: Unpin

impl<T> UnwindSafe for Debt<T> where
    T: UnwindSafe

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<T> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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.