pub fn new(position: impl Into<Point>, size: impl Into<Size>) -> Self {
        Rectangle {
            position: position.into(),
            size: size.into(),
        }
    }
/// Create a new rectangle with the given parameters.
Create a new rectangle with the given parameters.
Create a new rectangle with the given parameters .
pub fn new(position: impl Into<Point>, size: impl Into<Size>) -> Self {
        Rectangle {
            position: position.into(),
            size: size.into(),
        }
    }
pub fn new ( position : impl Into < Point > , size : impl Into < Size > ) -> Self { Rectangle { position : position . into ( ) , size : size . into ( ) , } }
Create a new rectangle with the given parameters.
Create a new rectangle with the given parameters .
position
impl Into<Point>
size
impl Into<Size>