Trait ToInt
scales::prelude
pub trait ToInt<I> { pub fn to_int(self) -> I; }
Something that can be converted to an integral number.
pub fn to_int(self) -> I
Convert self into an integral number.
impl<F, I> ToInt<I> for F where I: FromFloat<F>,