pub fn drain(&mut self) -> impl Iterator<Item = T> + '_ {
        repeat(()).scan(&mut self.receiver, move |receiver, ()| {
            // trace!("Drain escape");
            if !receiver.is_empty() {
                receiver.recv()
            } else {
                None
            }
        })
    }
/// Get iterator over values from dropped `Escape` instances that was created by this `Terminal`.
Get iterator over values from dropped `Escape` instances that was created by this `Terminal`.
Get iterator over values from dropped ` Escape ` instances that was created by this ` Terminal ` .
pub fn drain(&mut self) -> impl Iterator<Item = T> + '_ {
        repeat(()).scan(&mut self.receiver, move |receiver, ()| {
            // trace!("Drain escape");
            if !receiver.is_empty() {
                receiver.recv()
            } else {
                None
            }
        })
    }
pub fn drain ( & mut self ) -> impl Iterator < Item = T > + ' _ { repeat ( ( ) ) . scan ( & mut self . receiver , move | receiver , ( ) | { // trace!("Drain escape"); if ! receiver . is_empty ( ) { receiver . recv ( ) } else { None } } ) }
Get iterator over values from dropped `Escape` instances that was created by this `Terminal`.
Get iterator over values from dropped ` Escape ` instances that was created by this ` Terminal ` .
&mut self
&mut self