pub fn align_to<T: ops::Div + ops::Mul + Clone>(num: T, alignment: T) -> T
    where T: From< <T as ops::Div>::Output >,
          T: From< <T as ops::Mul>::Output >
{
    T::from(alignment.clone() * T::from(num / alignment))
}
// hmm, find time to do this w/o so much boilerplate ...
// lol seems crate for it, or maybe even in standard library .. check it
hmm, find time to do this w/o so much boilerplate
lol seems crate for it, or maybe even in standard library .. check it
hmm find time to do this w / o so much boilerplate lol seems crate for it or maybe even in standard library .. check it
pub fn align_to<T: ops::Div + ops::Mul + Clone>(num: T, alignment: T) -> T
    where T: From< <T as ops::Div>::Output >,
          T: From< <T as ops::Mul>::Output >
{
    T::from(alignment.clone() * T::from(num / alignment))
}
pub fn align_to < T : ops :: Div + ops :: Mul + Clone > ( num : T , alignment : T ) -> T where T : From < < T as ops :: Div > :: Output > , T : From < < T as ops :: Mul > :: Output > { T :: from ( alignment . clone ( ) * T :: from ( num / alignment ) ) }
hmm, find time to do this w/o so much boilerplate ...
lol seems crate for it, or maybe even in standard library .. check it
hmm find time to do this w / o so much boilerplate ... lol seems crate for it or maybe even in standard library .. check it
num
T
alignment
T
num
T
alignment
T