Skip to main content

luaur_analysis/functions/
to_string_error.rs

1//! Node: `cxx:Function:Luau.Analysis:Analysis/src/Error.cpp:1447:to_string`
2//! Source: `Analysis/src/Error.cpp:1447-1450` (hand-ported)
3
4use crate::functions::to_string_error_alt_k::to_string_type_error_type_error_to_string_options;
5use crate::records::type_error::TypeError;
6use crate::records::type_error_to_string_options::TypeErrorToStringOptions;
7use alloc::string::String;
8
9/// C++ `std::string toString(const TypeError& error)`.
10pub fn to_string_type_error(error: &TypeError) -> String {
11    to_string_type_error_type_error_to_string_options(error, TypeErrorToStringOptions::default())
12}
13
14#[allow(unused_imports)]
15pub use to_string_type_error as to_string;