Trait Collect

Source
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§

Source

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.

Implementations on Foreign Types§

Source§

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

Implementors§

Source§

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