fn raw_text(&mut self) -> io::Result<()> {
        let mut nest = 0;
        while let Some(event) = self.iter.next() {
            match event {
                Event::Start(_) => nest += 1,
                Event::End(_) => {
                    if nest == 0 {
                        break;
                    }
                    nest -= 1;
                }
                Html(_) => (),
                InlineHtml(text) | Code(text) | Text(text) => {
                    self.write(&text)?;
                    self.end_newline = text.ends_with('\n');
                }
                SoftBreak | HardBreak => {
                    self.write(" ")?;
                }
                FootnoteReference(name) => {
                    let len = self.numbers.len() + 1;
                    let number = *self.numbers.entry(name).or_insert(len);
                    write!(&mut self.writer, "[{}]", number)?;
                }
                TaskListMarker(true) => self.write("[x]")?,
                TaskListMarker(false) => self.write("[ ]")?,
            }
        }
        Ok(())
    }
// run raw text, consuming end tag
run raw text, consuming end tag
run raw text consuming end tag
fn raw_text(&mut self) -> io::Result<()> {
        let mut nest = 0;
        while let Some(event) = self.iter.next() {
            match event {
                Event::Start(_) => nest += 1,
                Event::End(_) => {
                    if nest == 0 {
                        break;
                    }
                    nest -= 1;
                }
                Html(_) => (),
                InlineHtml(text) | Code(text) | Text(text) => {
                    self.write(&text)?;
                    self.end_newline = text.ends_with('\n');
                }
                SoftBreak | HardBreak => {
                    self.write(" ")?;
                }
                FootnoteReference(name) => {
                    let len = self.numbers.len() + 1;
                    let number = *self.numbers.entry(name).or_insert(len);
                    write!(&mut self.writer, "[{}]", number)?;
                }
                TaskListMarker(true) => self.write("[x]")?,
                TaskListMarker(false) => self.write("[ ]")?,
            }
        }
        Ok(())
    }
fn raw_text ( & mut self ) -> io :: Result < ( ) > { let mut nest = 0 ; while let Some ( event ) = self . iter . next ( ) { match event { Event :: Start ( _ ) => nest += 1 , Event :: End ( _ ) => { if nest == 0 { break ; } nest -= 1 ; } Html ( _ ) => ( ) , InlineHtml ( text ) | Code ( text ) | Text ( text ) => { self . write ( & text ) ? ; self . end_newline = text . ends_with ( '\n' ) ; } SoftBreak | HardBreak => { self . write ( " " ) ? ; } FootnoteReference ( name ) => { let len = self . numbers . len ( ) + 1 ; let number = * self . numbers . entry ( name ) . or_insert ( len ) ; write ! ( mut self writer " " number ) ? ; } TaskListMarker ( true ) => self . write ( " " ) ? , TaskListMarker ( false ) => self . write ( " " ) ? , } } Ok ( ( ) ) }
run raw text, consuming end tag
run raw text consuming end tag
&mut self
&mut self