Struct bitcoin_amount::Amount[][src]

pub struct Amount(_);

A bitcoin amount integer type.

Methods

impl Amount
[src]

Creates an Amount from the given type.

Creates a new Amount from a satoshi amount.

Returns the additive identity of Amount.

Returns the multiplicative identity of Amount.

Maximum value that can fit in an Amount.

Minimum value that can fit in an Amount.

Converts this Amount to the inner satoshis.

Trait Implementations

impl Debug for Amount
[src]

Formats the value using the given formatter. Read more

impl Clone for Amount
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Amount
[src]

impl Eq for Amount
[src]

impl PartialEq for Amount
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Ord for Amount
[src]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl PartialOrd for Amount
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Add for Amount
[src]

The resulting type after applying the + operator.

Performs the + operation.

impl Div for Amount
[src]

The resulting type after applying the / operator.

Performs the / operation.

impl Mul for Amount
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl Sub for Amount
[src]

The resulting type after applying the - operator.

Performs the - operation.

impl FromStr for Amount
[src]

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

Auto Trait Implementations

impl Send for Amount

impl Sync for Amount