Trait writeable::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

Object Safety§

This trait is not object safe.

Implementors§