You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: circle.rs
    path of file: ./repos/rust_rpg_toolkit/src/math
    
    the code of the file until where you have to start completion: use serde::{Deserialize, Serialize};

use macroquad::math::{vec2, Rect, Vec2};

#[derive(Debug, Copy, Clone, Serialize, Deserialize)]
pub struct Circle {
    pub x: f32,
    pub y: f32,
    #[serde(rename = "radius", alias = "r")]
    pub r: f32,
}

impl Circle {
    pub fn new(x: f32, y: f32, r: f32) -> Self {
        Ci
    
    pub fn overlaps_rect(&self, rect: &Rect) -> bool {
        let dist_x = (self.x - rect.x).abs();
        let dist_y = (self.y - rect.y).abs();
        if dist_x > rect.w / 2.0 + self.r || dist_y > rect.h / 2.0 + self.r {
            return false;
        }
        if dist_x <= rect.w / 2.0 || dist_y <= rect.h / 2.0 {
            return true;
        }
        let lhs = dist_x - rect.w / 2.0;
        let rhs = dist_y - rect.h / 2.0;
        let dist_sq = (lhs * lhs) + (rhs * rhs);
        dist_sq <= self.r * self.r
    }