Enum number_prefix::Result [] [src]

pub enum Result<F> {
    Standalone(F),
    Prefixed(Prefix, F),
}

The result of trying to apply a prefix to a floating-point value.

Variants

Standalone(F)

A standalone value is returned when the number is too small to have any prefixes applied to it. This is commonly a special case, so is handled separately.

Prefixed(Prefix, F)

A prefixed value is large enough for prefixes. This holds the prefix, as well as the resulting value.

Trait Implementations

impl<F: Debug> Debug for Result<F>
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl<F: Clone> Clone for Result<F>
[src]

fn clone(&self) -> Result<F>

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl<F: Eq> Eq for Result<F>
[src]

impl<F: PartialEq> PartialEq for Result<F>
[src]

fn eq(&self, __arg_0: &Result<F>) -> bool

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

fn ne(&self, __arg_0: &Result<F>) -> bool

This method tests for !=.