Add documentation for new FormatRenderer trait items
This commit is contained in:
parent
5fa1653c5c
commit
5f9e71627c
2 changed files with 30 additions and 2 deletions
|
|
@ -66,6 +66,12 @@ pub(crate) struct Context<'tcx> {
|
|||
pub(crate) info: ContextInfo,
|
||||
}
|
||||
|
||||
/// This struct contains the information that needs to be reset between each
|
||||
/// [`FormatRenderer::render_item`] call.
|
||||
///
|
||||
/// When we enter a new module, we set these values for the whole module but they might be updated
|
||||
/// in each child item (especially if it's a module). So to prevent these changes to impact other
|
||||
/// items rendering in the same module, we need to reset them to the module's set values.
|
||||
#[derive(Clone, Copy)]
|
||||
pub(crate) struct ContextInfo {
|
||||
/// A flag, which when `true`, will render pages which redirect to the
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue