pub fn format(tokens: Vec<Token>, output_format: Format) -> LinderaResult<String> {
    return match output_format {
        Format::Mecab => format_mecab(tokens),
        Format::Wakati => format_wakati(tokens),
        Format::Json => format_json(tokens),
    };
}
/// Format Token list to String by `output_format`
///
/// # Arguments
///
/// * `tokens`: the list of Token
/// * `output_format`: the mode of `Format`
///
/// returns: Result<String, LinderaError>
///
/// * String: formatted tokens
/// * LinderaError: the error occurred during formatting
///
Format Token list to String by `output_format`
Format Token list to String by ` output_format `
pub fn format(tokens: Vec<Token>, output_format: Format) -> LinderaResult<String> {
    return match output_format {
        Format::Mecab => format_mecab(tokens),
        Format::Wakati => format_wakati(tokens),
        Format::Json => format_json(tokens),
    };
}
pub fn format ( tokens : Vec < Token > , output_format : Format ) -> LinderaResult < String > { return match output_format { Format :: Mecab => format_mecab ( tokens ) , Format :: Wakati => format_wakati ( tokens ) , Format :: Json => format_json ( tokens ) , } ; }
Format Token list to String by `output_format`
Format Token list to String by ` output_format `
tokens
Vec<Token>
output_format
Format
tokens
Vec<Token>
output_format
Format