Function size
Source pub const fn size<T>(width: T, height: T) -> Size<T>
Expand description
Constructs a new Size<T> with the provided width and height.
§Arguments
width - The width component of the Size.
height - The height component of the Size.
§Examples
use gpui::size;
let my_size = size(10, 20);
assert_eq!(my_size.width, 10);
assert_eq!(my_size.height, 20);