use Real;
use Num;
/// A trait for numeric types used to count votes.
///
/// Generally seen as the generic `C` in this codebase, this type should be automatically implemented for all numeric types you wish to use.
/// It is used to provide trait specialization so differnetial logic can applied to integer or fractional (float) based vote counting.
///
/// You should pobably not implement this trait. If you have a numeric type that does not implement `Numeric`,
/// you should instead implement [`num_traits::Num`](/num-traits/latest/num_traits/trait.Num.html)
/// (and optionally [`num_traits::real::Real`](/num-traits/latest/num_traits/real/trait.Real.html) for types that support fractions.)
// Default implemention of numeric, assumes everything is an integer (non-fraction).
// Specialize Numeric using Real.
// Real covers all floats, as well as things like num_rational::Ratio and num_rational::BigRational.
// TODO: no_std: should swap Real for num_traits::float::FloatCore
// TODO: rational: Check that Ratio implements Real