pub fn print<S: AsRef<str>>(&mut self, asref: S) -> bool {
    // Here we want to
    if cfg!(windows) {
      // PDCurses does an extra intermediate CString allocation, so we just
      // print out each character one at a time to avoid that.
      asref.as_ref().chars().all(|c| self.print_char(c))
    } else {
      // NCurses, it seems, doesn't do the intermediate allocation and also uses
      // a faster routine for printing a whole string at once.
      to_bool(self.win.printw(asref.as_ref()))
    }
  }
/// Prints the given string-like value into the window by printing each
/// individual character into the window. If there is any error encountered
/// upon printing a character, that cancels the printing of the rest of the
/// characters.
Prints the given string-like value into the window by printing each
individual character into the window. If there is any error encountered
upon printing a character, that cancels the printing of the rest of the
characters.
Prints the given string - like value into the window by printing each individual character into the window . If there is any error encountered upon printing a character that cancels the printing of the rest of the characters .
pub fn print<S: AsRef<str>>(&mut self, asref: S) -> bool {
    // Here we want to
    if cfg!(windows) {
      // PDCurses does an extra intermediate CString allocation, so we just
      // print out each character one at a time to avoid that.
      asref.as_ref().chars().all(|c| self.print_char(c))
    } else {
      // NCurses, it seems, doesn't do the intermediate allocation and also uses
      // a faster routine for printing a whole string at once.
      to_bool(self.win.printw(asref.as_ref()))
    }
  }
pub fn print < S : AsRef < str > > ( & mut self , asref : S ) -> bool { // Here we want to if cfg ! ( windows ) { // PDCurses does an extra intermediate CString allocation, so we just // print out each character one at a time to avoid that. asref . as_ref ( ) . chars ( ) . all ( | c | self . print_char ( c ) ) } else { // NCurses, it seems, doesn't do the intermediate allocation and also uses // a faster routine for printing a whole string at once. to_bool ( self . win . printw ( asref . as_ref ( ) ) ) } }
Prints the given string-like value into the window by printing each
individual character into the window.
Prints the given string - like value into the window by printing each individual character into the window .
&mut self
asref
S
&mut self
asref
S