面试题答案
一键面试struct Point {
x: i32,
y: i32,
}
fn are_points_equal(point1: &Point, point2: &Point) -> bool {
point1.x == point2.x && point1.y == point2.y
}
struct Point {
x: i32,
y: i32,
}
fn are_points_equal(point1: &Point, point2: &Point) -> bool {
point1.x == point2.x && point1.y == point2.y
}