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§
Sourcefn concat(self, s: T) -> Result<Self::Output, TkStrError>
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.