Skip to main content

luaur_analysis/functions/
to_string_to_string_alt_f.rs

1//! Node: `cxx:Function:Luau.Analysis:Analysis/include/Luau/ToString.h:121:to_string`
2//! Source: `Analysis/include/Luau/ToString.h:121-125` (hand-ported)
3
4use crate::records::r#type::Type;
5use crate::records::to_string_options::ToStringOptions;
6use alloc::string::String;
7
8/// C++ `inline std::string toString(const Type& tv)`.
9pub fn to_string_type_item(tv: &Type) -> String {
10    let mut opts = ToStringOptions::default();
11    crate::functions::to_string_to_string_alt_o::to_string_type_item_to_string_options(
12        tv, &mut opts,
13    )
14}