Struct num_runtime_fmt::numeric_trait::impls::DecIter[][src]

pub struct DecIter(_);

Iterator over the decimal digits of a number.

This implementation defers to the standard format! macro to determine the digits of the number.

Implementations

impl DecIter[src]

pub fn new<N>(n: N) -> (DecIter, Option<DecIter>) where
    N: ToString
[src]

Create iterators over the digits of a number left and right of the decimal respectively.

Note that n must not be negative in order for this to work properly. If n has a type which can possibly be negative, take its absolute value manually.

This implementation defers to the standard format! machinery to actually encode the number as decimal.

The left iterator handles digits of magnitude >= 1; the right iterator handles fractional digits.

Trait Implementations

impl Iterator for DecIter[src]

type Item = char

The type of the elements being iterated over.

Auto Trait Implementations

impl RefUnwindSafe for DecIter

impl Send for DecIter

impl Sync for DecIter

impl Unpin for DecIter

impl UnwindSafe for DecIter

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<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T> Itertools for T where
    T: Iterator + ?Sized
[src]

impl<'a, I, T> Pad<'a, T> for I where
    T: 'a + Copy,
    I: IntoIterator<Item = T>,
    <I as IntoIterator>::IntoIter: 'a, 
[src]

impl<'a, I, T, O> Separate<'a, I, T, O> for I where
    T: 'a + Copy + PartialEq<T>,
    I: 'a + IntoIterator<Item = T>,
    O: FromIterator<T>,
    <I as IntoIterator>::IntoIter: 'a, 
[src]

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.