Trait easy_cast::CastFloat [−][src]
Required methods
fn cast_nearest(self) -> T
[src]
Cast to the nearest integer
Half-way cases are rounded away from 0
.
fn cast_floor(self) -> T
[src]
Cast the floor to an integer
Returns the largest integer less than or equal to self
.
fn cast_ceil(self) -> T
[src]
Cast the ceiling to an integer
Returns the smallest integer greater than or equal to self
.