Advertisement
Guest User

Untitled

a guest
Sep 17th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. #![no_std]
  2.  
  3. trait Float {
  4. fn ceil(self) -> Self;
  5. }
  6.  
  7.  
  8. impl Float for f64 {
  9. fn ceil(self) -> f64 { blah::ceil(self) }
  10. }
  11.  
  12. mod blah {
  13. pub fn ceil(x: f64) -> f64 { f64::ceil(x) }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement