pub trait StringFormat {
type Unit;
// Required methods
unsafe fn release(entry: &*const Self::Unit);
fn is_valid(is_wide: bool);
}
Expand description
The StringFormat
trait defines the methods required to interact with a specific string format type.
This includes the type of unit (e.g., u8
for c_char
or u16
for w_char_t
) and methods for validation
and releasing memory associated with entries.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.