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: format.rs
    path of file: ./repos/rant/src/stdlib
    
    the code of the file until where you have to start completion: use super::*;
use crate::format::*;

/// `[$ws-fmt: mode? (string); custom-value? (any)]`
///
/// Gets or sets the whitespace normalization mode for the current scope.
pub fn ws_fmt(vm: &mut VM, (mode, custom): (Option<String>, Option<RantValue>)) -> RantStdResult {
  if let Some(mode) = mode.as_deref() {
    let mode = match mode {
      "default" =>    WhitespaceNormalizationMode::Default,
      "ignore-all" => Whites
    
pub fn num_fmt_sign(vm: &mut VM, (sign_style, depth): (Option<SignStyle>, Option<usize>)) -> RantStdResult {
  let actual_depth = depth.unwrap_or(0).saturating_add(1);

  if let Some(sign_style) = sign_style {
    if let Some(frame) = vm.parent_frame_mut(actual_depth) {
      let output = frame.output_mut();
      output.format_mut().number_format.sign = sign_style;
      output.update_number_format();
    }
  } else {
    let cur_sign_style = match vm.parent_frame(actual_depth) {
      Some(frame) => frame.output().format().number_format.sign,
      None => Default::default()
    }.try_into_rant().into_runtime_result()?;
    vm.cur_frame_mut().write(cur_sign_style);
  }

  Ok(())
}