pub const fn point<T: Clone + Debug + Default + PartialEq>(
x: T,
y: T,
) -> Point<T>Expand description
Creates a Point from its x and y coordinates.
Same as Point::new.
ยงExamples
use gpui::point;
let p = point(10, 20);
assert_eq!(p.x, 10);
assert_eq!(p.y, 20);