pub trait ToModifiedUtf8 {
// Required methods
fn modified_uf8_len(&self) -> usize;
fn to_modified_utf8<W>(
&self,
encoded_len: usize,
writer: W,
) -> Result<(), Error>
where W: Write;
}
Expand description
A string type which can be encoded into Java’s modified UTF-8.
Required Methods§
fn modified_uf8_len(&self) -> usize
fn to_modified_utf8<W>(
&self,
encoded_len: usize,
writer: W,
) -> Result<(), Error>where
W: Write,
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.