pub fn try_cast<T1: NumCast + Copy>(&self) -> Option<Rect<T1, Unit>> {
        match (self.origin.try_cast(), self.size.try_cast()) {
            (Some(origin), Some(size)) => Some(Rect::new(origin, size)),
            _ => None,
        }
    }
/// Fallible 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.
Fallible 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.
Fallible 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 try_cast<T1: NumCast + Copy>(&self) -> Option<Rect<T1, Unit>> {
        match (self.origin.try_cast(), self.size.try_cast()) {
            (Some(origin), Some(size)) => Some(Rect::new(origin, size)),
            _ => None,
        }
    }
pub fn try_cast < T1 : NumCast + Copy > ( & self ) -> Option < Rect < T1 , Unit > > { match ( self . origin . try_cast ( ) , self . size . try_cast ( ) ) { ( Some ( origin ) , Some ( size ) ) => Some ( Rect :: new ( origin , size ) ) , _ => None , } }
Fallible cast from one numeric representation to another, preserving the units.
Fallible cast from one numeric representation to another preserving the units .
&self
&self