Trait UsernameLabelWriter
pub trait UsernameLabelWriter<const SEPARATOR: char> {
// Required method
fn write_labels(
&self,
composer: &mut Composer<SEPARATOR>,
) -> Result<(), ComposeError>;
}
Expand description
A type that can write itself as label(s) to compose into a
username with labels. Often used by passing it to compose_username
.
Required Methods§
fn write_labels(
&self,
composer: &mut Composer<SEPARATOR>,
) -> Result<(), ComposeError>
fn write_labels( &self, composer: &mut Composer<SEPARATOR>, ) -> Result<(), ComposeError>
Write all labels into the given Composer
.