Type Alias zebra_chain::amount::Result

source ·
pub type Result<T, E = Error> = Result<T, E>;
Expand description

The result of an amount operation.

Aliased Type§

enum Result<T, E = Error> {
    Ok(T),
    Err(E),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(E)

Contains the error value

Trait Implementations§

source§

impl<C> Add<Amount<C>> for Result<Amount<C>>
where C: Constraint,

§

type Output = Result<Amount<C>, Error>

The resulting type after applying the + operator.
source§

fn add(self, rhs: Amount<C>) -> Self::Output

Performs the + operation. Read more
source§

impl<C> AddAssign<Amount<C>> for Result<Amount<C>>
where Amount<C>: Copy, C: Constraint,

source§

fn add_assign(&mut self, rhs: Amount<C>)

Performs the += operation. Read more
source§

impl<C> Sub<Amount<C>> for Result<Amount<C>>
where C: Constraint,

§

type Output = Result<Amount<C>, Error>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: Amount<C>) -> Self::Output

Performs the - operation. Read more
source§

impl<C> SubAssign<Amount<C>> for Result<Amount<C>>
where Amount<C>: Copy, C: Constraint,

source§

fn sub_assign(&mut self, rhs: Amount<C>)

Performs the -= operation. Read more
source§

impl<'amt, C> Sum<&'amt Amount<C>> for Result<Amount<C>>
where C: Constraint + Copy + 'amt,

source§

fn sum<I: Iterator<Item = &'amt Amount<C>>>(iter: I) -> Self

Method which takes an iterator and generates Self from the elements by “summing up” the items.
source§

impl<C> Sum<Amount<C>> for Result<Amount<C>>
where C: Constraint,

source§

fn sum<I: Iterator<Item = Amount<C>>>(iter: I) -> Self

Method which takes an iterator and generates Self from the elements by “summing up” the items.