pub struct JSONLString { /* private fields */ }
Expand description
This struct represents a JSONL string being built.
string
- The JSONL string being built.
clean_re_pattern
- A regular expression pattern used to clean the
JSONL string.
Creates a new instance of JSONLString
.
Adds a character to the string
.
use jsonl_converter::json_object::JSONLString;
let mut jsonl_string = JSONLString::new();
jsonl_string.push_char(&'a');
Adds a string to the string
.
use jsonl_converter::json_object::JSONLString;
let mut jsonl_string = JSONLString::new();
jsonl_string.push_str(&"abc");
Clears the string
.
use jsonl_converter::json_object::JSONLString;
let mut jsonl_string = JSONLString::new();
jsonl_string.push_str(&"abc");
jsonl_string.clear();
Formats the value using the given formatter.
Read more
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
Converts the given value to a
String
.
Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.