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: sweep.rs
    path of file: ./repos/mooneye-gb/core/src/hardware/apu
    
    the code of the file until where you have to start completion: // This file is part of Mooneye GB.
// Copyright (C) 2014-2020 Joonas Javanainen <joonas.javanainen@gmail.com>
//
// Mooneye GB is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as publi
    
  pub fn from_u8(value: u8) -> Option<Time> {
    use self::Time::*;
    match value {
      0 => Some(None),
      1 => Some(Div1),
      2 => Some(Div2),
      3 => Some(Div3),
      4 => Some(Div4),
      5 => Some(Div5),
      6 => Some(Div6),
      7 => Some(Div7),
      _ => Option::None,
    }
  }