fn calc_volume(&self) -> i32 {
          (self.r_max as i32 - self.r_min as i32 + 1)
        * (self.g_max as i32 - self.g_min as i32 + 1)
        * (self.b_max as i32 - self.b_min as i32 + 1)
    }
/// Get 3 dimensional volume of the color space.
Get 3 dimensional volume of the color space.
Get 3 dimensional volume of the color space .
fn calc_volume(&self) -> i32 {
          (self.r_max as i32 - self.r_min as i32 + 1)
        * (self.g_max as i32 - self.g_min as i32 + 1)
        * (self.b_max as i32 - self.b_min as i32 + 1)
    }
fn calc_volume ( & self ) -> i32 { ( self . r_max as i32 - self . r_min as i32 + 1 ) * ( self . g_max as i32 - self . g_min as i32 + 1 ) * ( self . b_max as i32 - self . b_min as i32 + 1 ) }
Get 3 dimensional volume of the color space.
Get 3 dimensional volume of the color space .
&self
&self