(
mut o: impl Write + 'b,
state: &'b mut ParseState,
)
| 230 | } |
| 231 | |
| 232 | fn bulleted_item<'a, 'b>( |
| 233 | mut o: impl Write + 'b, |
| 234 | state: &'b mut ParseState, |
| 235 | ) -> impl FnMut(&mut Partial<&'a str>) -> PResult<(), Error<'a>> + 'b { |
| 236 | move |i| { |
| 237 | if !state.newline { |
| 238 | return Err(ErrMode::from_error_kind(i, ErrorKind::Fail)); |
| 239 | } |
| 240 | |
| 241 | let ws = (space0, alt(("-", "*")), space1).parse_next(i)?.0; |
| 242 | let print = format!("{ws}• "); |
| 243 | |
| 244 | queue_newline_or_advance(&mut o, state, print.width())?; |
| 245 | queue(&mut o, style::Print(print)) |
| 246 | } |
| 247 | } |
| 248 | |
| 249 | fn numbered_item<'a, 'b>( |
| 250 | mut o: impl Write + 'b, |
nothing calls this directly
no test coverage detected