Trait Concat

Source
pub trait Concat<T> {
    type Output;

    // Required method
    fn concat(self, s: T) -> Result<Self::Output, TkStrError>;
}
Expand description

A helper trait for the Builder type to concatenate the given string at the end of the other ones in the builder.

Required Associated Types§

Required Methods§

Source

fn concat(self, s: T) -> Result<Self::Output, TkStrError>

Concatenate another string to the end of the builder.

§Errors

This function will return TkStrError::TooBig if the concatenated string is greater than MAX_LENGTH. If more than N strings, the const generic value of the Builder, are being concatenated, TkStrError::TooMany is returned.

Implementations on Foreign Types§

Source§

impl<'a, const N: usize> Concat<&'a TokenString> for Result<&'a mut Builder<'a, N>, TkStrError>

Source§

type Output = &'a mut Builder<'a, N>

Source§

fn concat(self, s: &'a TokenString) -> Result<Self::Output, TkStrError>

Implementors§

Source§

impl<'a, const N: usize> Concat<&'a TokenString> for &'a mut Builder<'a, N>

Source§

type Output = &'a mut Builder<'a, N>