Skip to main content

Module doctest

Module doctest 

Source

Functionsยง

extract_doctests
Parse the docstring markdown and return every code fence as a Doctest. Doctests in rustdoc are any ``` fence whose language token is empty, rust, or starts with rust,. We also surface non-rust fences so the renderer can label them; the caller filters on lang/fence_attributes.