pub trait PartsWrite: Write {
    type SubPartsWrite: PartsWrite + ?Sized;
    // Required method
    fn with_part(
        &mut self,
        part: Part,
        f: impl FnMut(&mut Self::SubPartsWrite) -> Result,
    ) -> Result;
}Expand description
A sink that supports annotating parts of the string with Parts.
Required Associated Types§
type SubPartsWrite: PartsWrite + ?Sized
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.