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: expression.rs
    path of file: ./repos/prusti-dev/vir/src/low/operations
    
    the code of the file until where you have to start completion: use super::ty::Typed;
use crate::low::ast::expression::{
    visitors::{default_fold_expression, ExpressionFolder},
    *,
};
use rustc_hash::FxHashMap;

impl From<VariableDecl> for Expression {
    fn from(variable: VariableDecl) -> Self {
        Self::local_no_pos(variable)
    }
}

impl BinaryOpKind {
    pub fn get_result_type(self, argument_type: &Type) -> &Type {
        match self {
            BinaryOpKind::EqCm
    
    pub fn replace_discriminant(self, new_discriminant: &Expression) -> Self {
        struct DiscriminantReplacer<'a> {
            new_discriminant: &'a Expression,
        }
        impl<'a> ExpressionFolder for DiscriminantReplacer<'a> {
            fn fold_expression(&mut self, expression: Expression) -> Expression {
                if expression.is_discriminant() {
                    self.new_discriminant.clone()
                } else {
                    default_fold_expression(self, expression)
                }
            }
        }
        let mut replacer = DiscriminantReplacer { new_discriminant };
        replacer.fold_expression(self)
    }