pub fn draw<B: Backend>(
        &self,
        terminal: &mut Terminal<B>,
    ) -> io::Result<()> {
        let idx = self.idx;

        let c: Cell = Cell::default()
            .set_char(if self.pending {
                SPINNER_CHARS[idx]
            } else {
                ' '
            })
            .clone();
        terminal
            .backend_mut()
            .draw(vec![(0_u16, 0_u16, &c)].into_iter())?;
        tui::backend::Backend::flush(terminal.backend_mut())?;

        Ok(())
    }
/// draws or removes spinner char depending on `pending` state
draws or removes spinner char depending on `pending` state
draws or removes spinner char depending on ` pending ` state
pub fn draw<B: Backend>(
        &self,
        terminal: &mut Terminal<B>,
    ) -> io::Result<()> {
        let idx = self.idx;
        let c: Cell = Cell::default()
            .set_char(if self.pending {
                SPINNER_CHARS[idx]
            } else {
                ' '
            })
            .clone();
        terminal
            .backend_mut()
            .draw(vec![(0_u16, 0_u16, &c)].into_iter())?;
        tui::backend::Backend::flush(terminal.backend_mut())?;
        Ok(())
    }
pub fn draw < B : Backend > ( & self , terminal : & mut Terminal < B > , ) -> io :: Result < ( ) > { let idx = self . idx ; let c : Cell = Cell :: default ( ) . set_char ( if self . pending { SPINNER_CHARS [ idx ] } else { ' ' } ) . clone ( ) ; terminal . backend_mut ( ) . draw ( vec ! [ ( 0_u16 0_u16 c ) ] . into_iter ( ) ) ? ; tui :: backend :: Backend :: flush ( terminal . backend_mut ( ) ) ? ; Ok ( ( ) ) }
draws or removes spinner char depending on `pending` state
draws or removes spinner char depending on ` pending ` state
&self
terminal
&mut Terminal<B>
&self
terminal
&mut Terminal<B>