Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #![no_std]
- trait Float {
- fn ceil(self) -> Self;
- }
- impl Float for f64 {
- fn ceil(self) -> f64 { blah::ceil(self) }
- }
- mod blah {
- pub fn ceil(x: f64) -> f64 { f64::ceil(x) }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement