pub fn cast<T1: NumCast + Copy>(&self) -> Rect<T1, Unit> {
        Rect::new(
            self.origin.cast(),
            self.size.cast(),
        )
    }
/// Cast from one numeric representation to another, preserving the units.
///
/// When casting from floating point to integer coordinates, the decimals are truncated
/// as one would expect from a simple cast, but this behavior does not always make sense
/// geometrically. Consider using round(), round_in or round_out() before casting.
Cast from one numeric representation to another, preserving the units.
When casting from floating point to integer coordinates, the decimals are truncated
as one would expect from a simple cast, but this behavior does not always make sense
geometrically. Consider using round(), round_in or round_out() before casting.
Cast from one numeric representation to another preserving the units . When casting from floating point to integer coordinates the decimals are truncated as one would expect from a simple cast but this behavior does not always make sense geometrically . Consider using round () round_in or round_out () before casting .
pub fn cast<T1: NumCast + Copy>(&self) -> Rect<T1, Unit> {
        Rect::new(
            self.origin.cast(),
            self.size.cast(),
        )
    }
pub fn cast < T1 : NumCast + Copy > ( & self ) -> Rect < T1 , Unit > { Rect :: new ( self . origin . cast ( ) , self . size . cast ( ) , ) }
Cast from one numeric representation to another, preserving the units.
Cast from one numeric representation to another preserving the units .
&self
&self