pub fn push(&mut self, c: char) {
        if let Some(limit) = self.max_length {
            if self.length() < limit {
                self.content.push(c);
            }
        } else {
            self.content.push(c);
        }
    }
/// Adds given character to the end of the string, or does nothing if the string length reached
/// the limit.
Adds given character to the end of the string, or does nothing if the string length reached
the limit.
Adds given character to the end of the string or does nothing if the string length reached the limit .
pub fn push(&mut self, c: char) {
        if let Some(limit) = self.max_length {
            if self.length() < limit {
                self.content.push(c);
            }
        } else {
            self.content.push(c);
        }
    }
pub fn push ( & mut self , c : char ) { if let Some ( limit ) = self . max_length { if self . length ( ) < limit { self . content . push ( c ) ; } } else { self . content . push ( c ) ; } }
Adds given character to the end of the string, or does nothing if the string length reached
the limit.
Adds given character to the end of the string or does nothing if the string length reached the limit .
&mut self
c
char
&mut self
c
char