pub trait Collect {
// Required method
fn collect(self) -> Result<TokenString, TkStrError>;
}
Expand description
A helper trait for the Builder
type to collect the strings to
concatenate into a single string.
Required Methods§
Sourcefn collect(self) -> Result<TokenString, TkStrError>
fn collect(self) -> Result<TokenString, TkStrError>
Actually concatenate all strings given to the Builder
.
§Errors
Returns TkStrError::TooBig
if the sum of all string lengths is
greater than MAX_LENGTH
.