Trait piet::RoundInto

source ·
pub trait RoundInto<T> {
    fn round_into(self) -> T;
}
Expand description

The companion to RoundFrom.

As with From and Into, a blanket implementation is provided; for the most part, implement RoundFrom.

Required Methods§

source

fn round_into(self) -> T

Performs the conversion.

Implementors§

source§

impl<T, U> RoundInto<U> for Twhere
    U: RoundFrom<T>,