[][src]Struct cents::Cents

pub struct Cents { /* fields omitted */ }

Methods

impl Cents[src]

pub fn new(dollars: i64, cents: u8) -> Self[src]

Trait Implementations

impl Add<Cents> for Cents[src]

type Output = Self

The resulting type after applying the + operator.

impl Add<u64> for Cents[src]

type Output = Self

The resulting type after applying the + operator.

impl AddAssign<Cents> for Cents[src]

impl AddAssign<u64> for Cents[src]

impl Clone for Cents[src]

impl Copy for Cents[src]

impl Debug for Cents[src]

impl Eq for Cents[src]

impl<'_> From<&'_ BigInt> for Cents[src]

impl<'_> From<&'_ Cents> for BigInt[src]

impl From<BigInt> for Cents[src]

impl From<Cents> for u64[src]

impl From<Cents> for BigInt[src]

impl From<u64> for Cents[src]

impl Mul<Cents> for Cents[src]

type Output = Self

The resulting type after applying the * operator.

impl Mul<u64> for Cents[src]

type Output = Self

The resulting type after applying the * operator.

impl Ord for Cents[src]

impl PartialEq<Cents> for Cents[src]

impl PartialOrd<Cents> for Cents[src]

impl Sub<Cents> for Cents[src]

type Output = Cents

The resulting type after applying the - operator.

Auto Trait Implementations

impl RefUnwindSafe for Cents

impl Send for Cents

impl Sync for Cents

impl Unpin for Cents

impl UnwindSafe for Cents

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.