pub trait ReadDotnetStr {
// Required method
fn read_dotnet_str<B: AsMut<[u8]>>(
&mut self,
f: impl FnOnce(u32) -> B,
) -> Result<B, ReadError>;
// Provided method
fn read_dotnet_str_to<'a>(
&mut self,
buf: &'a mut Vec<u8>,
) -> Result<(), ReadError> { ... }
}Required Methods§
fn read_dotnet_str<B: AsMut<[u8]>>( &mut self, f: impl FnOnce(u32) -> B, ) -> Result<B, ReadError>
Provided 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.