Where are the maths function for primitive types

I need something like log and floor for usize, u64. Where can I find them?

Floor for an integer is just itself. For the logarithm, there are the nightly-only ilog*() methods. On stable, you can use leading_zeros(). See docs..

Thank you.