pub trait ToModifiedUtf8 {
// Required methods
fn modified_uf8_len(&self) -> usize;
fn to_modified_utf8<W: Write>(
&self,
encoded_len: usize,
writer: W,
) -> Result<()>;
}
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: Write>( &self, encoded_len: usize, writer: W, ) -> Result<()>
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.