Rust solution
IntuitionApproachComplexity
Time complexity:

Space complexity:
Code
# Intuition
<!-- Describe your first thoughts on how to solve this problem. -->

# Approach
<!-- Describe your approach to solving the problem. -->

# Complexity
- Time complexity:
<!-- Add your time complexity here, e.g. $$O(n)$$ -->

- Space complexity:
<!-- Add your space complexity here, e.g. $$O(n)$$ -->

# Code
```rust []
impl Solution {
    pub fn area_of_max_diagonal(dimensions: Vec<Vec<i32>>) -> i32 {
        let mut diagonal: i32 = 0;
        let mut area: i32 = 0;
        for i in dimensions {
            let d = i[0]*i[0] + i[1]*i[1];
            let s = i[0]*i[1];
            if d > diagonal {diagonal = d; area = s;}
            else if d == diagonal && s > area {area = s;}
        }
        area
    }
}
```
['Rust']