Function pulldown_cmark_to_cmark::cmark_resume_with_options
source ยท pub fn cmark_resume_with_options<'a, I, E, F>(
events: I,
formatter: F,
state: Option<State<'a>>,
options: Options<'_>,
) -> Result<State<'a>, Error>
Expand description
Serialize a stream of pulldown-cmark-Events into a string-backed buffer.
- events
- formatter
- A format writer, can be a
String
.
- A format writer, can be a
- state
- The optional initial state of the serialization.
- options
- Customize the appearance of the serialization. All otherwise magic values are contained here.
Returns the State
of the serialization on success. You can use it as initial state in the
next call if you are halting event serialization.
Errors are only happening if the underlying buffer fails, which is unlikely.