aoc::util::slice

Trait SliceOps2

Source
pub trait SliceOps2<T: Integer<T>> {
    // Required method
    fn fold_decimal(self) -> T;
}

Required Methods§

Source

fn fold_decimal(self) -> T

Folds a slice of digits into an integer.

Implementations on Foreign Types§

Source§

impl<T: Integer<T>> SliceOps2<T> for &[T]

Source§

fn fold_decimal(self) -> T

Implementors§