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: table_collapsed.rs
    path of file: ./repos/tabled/toml_to_table/src/table
    
    the code of the file until where you have to start completion: use std::iter::repeat;

use tabled::{
    grid::{
        config::{AlignmentHorizontal, AlignmentVertical},
        dimension::{DimensionPriority, PoolTableDimension},
        util::string::{count_lines, get_lines, str
    
fn convert_value_to_table_value(value: &Value, ctx: CollapseCtx) -> TableValue {
    match value {
        Value::Table(map) => match ctx.map_orientation {
            Orientation::Row => convert_map_to_row(map, ctx),
            Orientation::Column => convert_map_to_column(map, ctx),
        },
        Value::Array(list) => convert_list(list, ctx),
        Value::Boolean(boolean) => TableValue::Cell(boolean.to_string()),
        Value::Float(float) => TableValue::Cell(float.to_string()),
        Value::Integer(int) => TableValue::Cell(int.to_string()),
        Value::String(text) => TableValue::Cell(text.to_owned()),
        Value::Datetime(datetime) => TableValue::Cell(datetime.to_string()),
    }
}