I am trying to implement a Point2 in rust, I want it to functional like this in C++:
template class Point2 { template