Trait xscript::ToStringLossy
source · pub trait ToStringLossy: Sealed {
// Required method
fn to_string_lossy(&self) -> Cow<'_, str>;
}
Expand description
Lossy string conversion.
Required Methods§
sourcefn to_string_lossy(&self) -> Cow<'_, str>
fn to_string_lossy(&self) -> Cow<'_, str>
Convert to string, potentially skipping invalid characters.