Trait rama::username::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>

Write all labels into the given Composer.

Implementations on Foreign Types§

§

impl<const SEPARATOR: char> UsernameLabelWriter<SEPARATOR> for &str

§

fn write_labels( &self, composer: &mut Composer<SEPARATOR>, ) -> Result<(), ComposeError>

§

impl<const SEPARATOR: char> UsernameLabelWriter<SEPARATOR> for String

§

fn write_labels( &self, composer: &mut Composer<SEPARATOR>, ) -> Result<(), ComposeError>

§

impl<const SEPARATOR: char, T1> UsernameLabelWriter<SEPARATOR> for (T1,)
where T1: UsernameLabelWriter<SEPARATOR>,

§

fn write_labels( &self, composer: &mut Composer<SEPARATOR>, ) -> Result<(), ComposeError>

§

impl<const SEPARATOR: char, T1, T2> UsernameLabelWriter<SEPARATOR> for (T1, T2)
where T1: UsernameLabelWriter<SEPARATOR>, T2: UsernameLabelWriter<SEPARATOR>,

§

fn write_labels( &self, composer: &mut Composer<SEPARATOR>, ) -> Result<(), ComposeError>

§

impl<const SEPARATOR: char, T1, T2, T3> UsernameLabelWriter<SEPARATOR> for (T1, T2, T3)
where T1: UsernameLabelWriter<SEPARATOR>, T2: UsernameLabelWriter<SEPARATOR>, T3: UsernameLabelWriter<SEPARATOR>,

§

fn write_labels( &self, composer: &mut Composer<SEPARATOR>, ) -> Result<(), ComposeError>

§

impl<const SEPARATOR: char, T1, T2, T3, T4> UsernameLabelWriter<SEPARATOR> for (T1, T2, T3, T4)
where T1: UsernameLabelWriter<SEPARATOR>, T2: UsernameLabelWriter<SEPARATOR>, T3: UsernameLabelWriter<SEPARATOR>, T4: UsernameLabelWriter<SEPARATOR>,

§

fn write_labels( &self, composer: &mut Composer<SEPARATOR>, ) -> Result<(), ComposeError>

§

impl<const SEPARATOR: char, T1, T2, T3, T4, T5> UsernameLabelWriter<SEPARATOR> for (T1, T2, T3, T4, T5)
where T1: UsernameLabelWriter<SEPARATOR>, T2: UsernameLabelWriter<SEPARATOR>, T3: UsernameLabelWriter<SEPARATOR>, T4: UsernameLabelWriter<SEPARATOR>, T5: UsernameLabelWriter<SEPARATOR>,

§

fn write_labels( &self, composer: &mut Composer<SEPARATOR>, ) -> Result<(), ComposeError>

§

impl<const SEPARATOR: char, T1, T2, T3, T4, T5, T6> UsernameLabelWriter<SEPARATOR> for (T1, T2, T3, T4, T5, T6)
where T1: UsernameLabelWriter<SEPARATOR>, T2: UsernameLabelWriter<SEPARATOR>, T3: UsernameLabelWriter<SEPARATOR>, T4: UsernameLabelWriter<SEPARATOR>, T5: UsernameLabelWriter<SEPARATOR>, T6: UsernameLabelWriter<SEPARATOR>,

§

fn write_labels( &self, composer: &mut Composer<SEPARATOR>, ) -> Result<(), ComposeError>

§

impl<const SEPARATOR: char, T1, T2, T3, T4, T5, T6, T7> UsernameLabelWriter<SEPARATOR> for (T1, T2, T3, T4, T5, T6, T7)
where T1: UsernameLabelWriter<SEPARATOR>, T2: UsernameLabelWriter<SEPARATOR>, T3: UsernameLabelWriter<SEPARATOR>, T4: UsernameLabelWriter<SEPARATOR>, T5: UsernameLabelWriter<SEPARATOR>, T6: UsernameLabelWriter<SEPARATOR>, T7: UsernameLabelWriter<SEPARATOR>,

§

fn write_labels( &self, composer: &mut Composer<SEPARATOR>, ) -> Result<(), ComposeError>

§

impl<const SEPARATOR: char, T1, T2, T3, T4, T5, T6, T7, T8> UsernameLabelWriter<SEPARATOR> for (T1, T2, T3, T4, T5, T6, T7, T8)
where T1: UsernameLabelWriter<SEPARATOR>, T2: UsernameLabelWriter<SEPARATOR>, T3: UsernameLabelWriter<SEPARATOR>, T4: UsernameLabelWriter<SEPARATOR>, T5: UsernameLabelWriter<SEPARATOR>, T6: UsernameLabelWriter<SEPARATOR>, T7: UsernameLabelWriter<SEPARATOR>, T8: UsernameLabelWriter<SEPARATOR>,

§

fn write_labels( &self, composer: &mut Composer<SEPARATOR>, ) -> Result<(), ComposeError>

§

impl<const SEPARATOR: char, T1, T2, T3, T4, T5, T6, T7, T8, T9> UsernameLabelWriter<SEPARATOR> for (T1, T2, T3, T4, T5, T6, T7, T8, T9)
where T1: UsernameLabelWriter<SEPARATOR>, T2: UsernameLabelWriter<SEPARATOR>, T3: UsernameLabelWriter<SEPARATOR>, T4: UsernameLabelWriter<SEPARATOR>, T5: UsernameLabelWriter<SEPARATOR>, T6: UsernameLabelWriter<SEPARATOR>, T7: UsernameLabelWriter<SEPARATOR>, T8: UsernameLabelWriter<SEPARATOR>, T9: UsernameLabelWriter<SEPARATOR>,

§

fn write_labels( &self, composer: &mut Composer<SEPARATOR>, ) -> Result<(), ComposeError>

§

impl<const SEPARATOR: char, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> UsernameLabelWriter<SEPARATOR> for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)
where T1: UsernameLabelWriter<SEPARATOR>, T2: UsernameLabelWriter<SEPARATOR>, T3: UsernameLabelWriter<SEPARATOR>, T4: UsernameLabelWriter<SEPARATOR>, T5: UsernameLabelWriter<SEPARATOR>, T6: UsernameLabelWriter<SEPARATOR>, T7: UsernameLabelWriter<SEPARATOR>, T8: UsernameLabelWriter<SEPARATOR>, T9: UsernameLabelWriter<SEPARATOR>, T10: UsernameLabelWriter<SEPARATOR>,

§

fn write_labels( &self, composer: &mut Composer<SEPARATOR>, ) -> Result<(), ComposeError>

§

impl<const SEPARATOR: char, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> UsernameLabelWriter<SEPARATOR> for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)
where T1: UsernameLabelWriter<SEPARATOR>, T2: UsernameLabelWriter<SEPARATOR>, T3: UsernameLabelWriter<SEPARATOR>, T4: UsernameLabelWriter<SEPARATOR>, T5: UsernameLabelWriter<SEPARATOR>, T6: UsernameLabelWriter<SEPARATOR>, T7: UsernameLabelWriter<SEPARATOR>, T8: UsernameLabelWriter<SEPARATOR>, T9: UsernameLabelWriter<SEPARATOR>, T10: UsernameLabelWriter<SEPARATOR>, T11: UsernameLabelWriter<SEPARATOR>,

§

fn write_labels( &self, composer: &mut Composer<SEPARATOR>, ) -> Result<(), ComposeError>

§

impl<const SEPARATOR: char, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> UsernameLabelWriter<SEPARATOR> for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)
where T1: UsernameLabelWriter<SEPARATOR>, T2: UsernameLabelWriter<SEPARATOR>, T3: UsernameLabelWriter<SEPARATOR>, T4: UsernameLabelWriter<SEPARATOR>, T5: UsernameLabelWriter<SEPARATOR>, T6: UsernameLabelWriter<SEPARATOR>, T7: UsernameLabelWriter<SEPARATOR>, T8: UsernameLabelWriter<SEPARATOR>, T9: UsernameLabelWriter<SEPARATOR>, T10: UsernameLabelWriter<SEPARATOR>, T11: UsernameLabelWriter<SEPARATOR>, T12: UsernameLabelWriter<SEPARATOR>,

§

fn write_labels( &self, composer: &mut Composer<SEPARATOR>, ) -> Result<(), ComposeError>

§

impl<const SEPARATOR: char, W> UsernameLabelWriter<SEPARATOR> for Option<W>
where W: UsernameLabelWriter<SEPARATOR>,

§

fn write_labels( &self, composer: &mut Composer<SEPARATOR>, ) -> Result<(), ComposeError>

§

impl<const SEPARATOR: char, W> UsernameLabelWriter<SEPARATOR> for &W
where W: UsernameLabelWriter<SEPARATOR>,

§

fn write_labels( &self, composer: &mut Composer<SEPARATOR>, ) -> Result<(), ComposeError>

§

impl<const SEPARATOR: char, W> UsernameLabelWriter<SEPARATOR> for Arc<W>
where W: UsernameLabelWriter<SEPARATOR>,

§

fn write_labels( &self, composer: &mut Composer<SEPARATOR>, ) -> Result<(), ComposeError>

§

impl<const SEPARATOR: char, W> UsernameLabelWriter<SEPARATOR> for Vec<W>
where W: UsernameLabelWriter<SEPARATOR>,

§

fn write_labels( &self, composer: &mut Composer<SEPARATOR>, ) -> Result<(), ComposeError>

§

impl<const SEPARATOR: char, const N: usize, W> UsernameLabelWriter<SEPARATOR> for [W; N]
where W: UsernameLabelWriter<SEPARATOR>,

§

fn write_labels( &self, composer: &mut Composer<SEPARATOR>, ) -> Result<(), ComposeError>

Implementors§

§

impl<const SEPARATOR: char> UsernameLabelWriter<SEPARATOR> for DnsResolveMode

§

impl<const SEPARATOR: char> UsernameLabelWriter<SEPARATOR> for ProxyFilter

§

impl<const SEPARATOR: char> UsernameLabelWriter<SEPARATOR> for UsernameLabels

§

impl<const SEPARATOR: char, A, B> UsernameLabelWriter<SEPARATOR> for Either<A, B>
where A: UsernameLabelWriter<SEPARATOR>, B: UsernameLabelWriter<SEPARATOR>,

§

impl<const SEPARATOR: char, A, B, C> UsernameLabelWriter<SEPARATOR> for Either3<A, B, C>
where A: UsernameLabelWriter<SEPARATOR>, B: UsernameLabelWriter<SEPARATOR>, C: UsernameLabelWriter<SEPARATOR>,

§

impl<const SEPARATOR: char, A, B, C, D> UsernameLabelWriter<SEPARATOR> for Either4<A, B, C, D>
where A: UsernameLabelWriter<SEPARATOR>, B: UsernameLabelWriter<SEPARATOR>, C: UsernameLabelWriter<SEPARATOR>, D: UsernameLabelWriter<SEPARATOR>,

§

impl<const SEPARATOR: char, A, B, C, D, E> UsernameLabelWriter<SEPARATOR> for Either5<A, B, C, D, E>
where A: UsernameLabelWriter<SEPARATOR>, B: UsernameLabelWriter<SEPARATOR>, C: UsernameLabelWriter<SEPARATOR>, D: UsernameLabelWriter<SEPARATOR>, E: UsernameLabelWriter<SEPARATOR>,

§

impl<const SEPARATOR: char, A, B, C, D, E, F> UsernameLabelWriter<SEPARATOR> for Either6<A, B, C, D, E, F>
where A: UsernameLabelWriter<SEPARATOR>, B: UsernameLabelWriter<SEPARATOR>, C: UsernameLabelWriter<SEPARATOR>, D: UsernameLabelWriter<SEPARATOR>, E: UsernameLabelWriter<SEPARATOR>, F: UsernameLabelWriter<SEPARATOR>,

§

impl<const SEPARATOR: char, A, B, C, D, E, F, G> UsernameLabelWriter<SEPARATOR> for Either7<A, B, C, D, E, F, G>
where A: UsernameLabelWriter<SEPARATOR>, B: UsernameLabelWriter<SEPARATOR>, C: UsernameLabelWriter<SEPARATOR>, D: UsernameLabelWriter<SEPARATOR>, E: UsernameLabelWriter<SEPARATOR>, F: UsernameLabelWriter<SEPARATOR>, G: UsernameLabelWriter<SEPARATOR>,

§

impl<const SEPARATOR: char, A, B, C, D, E, F, G, H> UsernameLabelWriter<SEPARATOR> for Either8<A, B, C, D, E, F, G, H>
where A: UsernameLabelWriter<SEPARATOR>, B: UsernameLabelWriter<SEPARATOR>, C: UsernameLabelWriter<SEPARATOR>, D: UsernameLabelWriter<SEPARATOR>, E: UsernameLabelWriter<SEPARATOR>, F: UsernameLabelWriter<SEPARATOR>, G: UsernameLabelWriter<SEPARATOR>, H: UsernameLabelWriter<SEPARATOR>,

§

impl<const SEPARATOR: char, A, B, C, D, E, F, G, H, I> UsernameLabelWriter<SEPARATOR> for Either9<A, B, C, D, E, F, G, H, I>
where A: UsernameLabelWriter<SEPARATOR>, B: UsernameLabelWriter<SEPARATOR>, C: UsernameLabelWriter<SEPARATOR>, D: UsernameLabelWriter<SEPARATOR>, E: UsernameLabelWriter<SEPARATOR>, F: UsernameLabelWriter<SEPARATOR>, G: UsernameLabelWriter<SEPARATOR>, H: UsernameLabelWriter<SEPARATOR>, I: UsernameLabelWriter<SEPARATOR>,