pub fn clear(&mut self) {
        let len = self.len();
        unsafe {
            self.set_len(0);
            SM::init(self.as_mut_ptr(), len);
        }
    }
/// Truncates this `ArrayString`, removing all contents.
///
/// # Examples
/// ```rust
/// # use cds::array_str;
/// let mut s = array_str![16; "cds"];
/// assert_eq!(s, "cds");
/// s.clear();
/// assert_eq!(s, "");
/// assert!(s.is_empty());
/// ```
Truncates this `ArrayString`, removing all contents.
Truncates this ` ArrayString ` removing all contents .
pub fn clear(&mut self) {
        let len = self.len();
        unsafe {
            self.set_len(0);
            SM::init(self.as_mut_ptr(), len);
        }
    }
pub fn clear ( & mut self ) { let len = self . len ( ) ; unsafe { self . set_len ( 0 ) ; SM :: init ( self . as_mut_ptr ( ) , len ) ; } }
Truncates this `ArrayString`, removing all contents.
Truncates this ` ArrayString ` removing all contents .
&mut self
&mut self
examples
None
use cds::array_str;
None