writeable

Trait PartsWrite

Source
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§

Required Methods§

Source

fn with_part( &mut self, part: Part, f: impl FnMut(&mut Self::SubPartsWrite) -> Result, ) -> 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.

Implementors§