rustdoc::html::render::write_shared

Function read_template_or_blank

Source
fn read_template_or_blank<F, T: FileFormat>(
    make_blank: F,
    path: &Path,
    should_merge: &ShouldMerge,
) -> Result<SortedTemplate<T>, Error>
where F: FnMut() -> SortedTemplate<T>,
Expand description

Returns a blank template unless we could find one to append to