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: value.rs
    path of file: ./repos/sauron/crates/sauron-core/src/html/attributes
    
    the code of the file until where you have to start completion: use std::fmt;

/// Wraps different primitive variants used as values in html
/// This is needed since html attributes can have different value types
/// such as checked(bool), name(String), tab_index(i32)
/// Note: memory size of Value is 32 bytes, in comparison String is 24 bytes
#[derive(Debug, Clone)]
pub enum Value {
    /// bool value
    Bool(bool),
    /// &'static str value
    Str(
    
    pub fn as_i32(&self) -> Option<i32> {
        match self {
            Self::Bool(_) => None,
            Self::String(_v) => None,
            Self::Str(_v) => None,
            Self::Vec(_v) => None,
            Self::U8(v) => Some(i32::from(*v)),
            Self::U16(v) => Some(i32::from(*v)),
            Self::U32(v) => Some(*v as i32),
            Self::U64(v) => Some(*v as i32),
            Self::U128(v) => Some(*v as i32),
            Self::Usize(v) => Some(*v as i32),
            Self::I8(v) => Some(i32::from(*v)),
            Self::I16(v) => Some(i32::from(*v)),
            Self::I32(v) => Some(*v),
            Self::I64(v) => Some(*v as i32),
            Self::I128(v) => Some(*v as i32),
            Self::Isize(v) => Some(*v as i32),
            Self::F32(v) => Some(*v as i32),
            Self::F64(v) => Some(*v as i32),
        }
    }