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: regular.rs
    path of file: ./repos/kalker/kalk/src/kalk_value
    
    the code of the file until where you have to start completion: use crate::kalk_value::*;

impl KalkValue {
    pub fn to_f64(&self) -> f64 {
        if let KalkValue
    
    pub fn values(self) -> (f64, f64) {
        if let KalkValue::Number(real, imaginary, _) = self {
            (real, imaginary)
        } else {
            (0f64, 0f64)
        }
    }