pub fn trits_to_int<I, T: RawEncoding + ?Sized>(
    trits: &Trits<T>
) -> Result<I, Error> where
    I: Clone + CheckedAdd + CheckedSub + PartialOrd + Num
Expand description

Attempt to convert the given trit slice into a number. If the numeric representation of the trit slice is too large or small to fit the numeric type, or does not contain any trits, an error will be returned.