[−][src]Struct rustdoc::html::render::SharedContext
Fields
src_root: PathBufThe path to the crate root source minus the file name. Used for simplifying paths to the highlighted source code files.
layout: LayoutThis describes the layout of each page, and is not modified after creation of the context (contains info like the favicon and added html).
include_sources: boolThis flag indicates whether [src] links should be generated or not. If
the source files are present in the html rendering, then this will be
true.
local_sources: FxHashMap<PathBuf, String>The local file sources we've emitted and their respective url-paths.
collapsed: boolWhether the collapsed pass ran
issue_tracker_base_url: Option<String>The base-URL of the issue tracker for when an item has been tagged with an issue number.
created_dirs: RefCell<FxHashSet<PathBuf>>The directories that have already been created in this doc run. Used to reduce the number
of spurious create_dir_all calls.
sort_modules_alphabetically: boolThis flag indicates whether listings of modules (in the side bar and documentation itself) should be ordered alphabetically or in order of appearance (in the source code).
style_files: Vec<StylePath>Additional CSS files to be added to the generated docs.
resource_suffix: StringSuffix to be added on resource files (if suffix is "-v2" then "light.css" becomes "light-v2.css").
static_root_path: Option<String>Optional path string to be used to load static files on output pages. If not set, uses
combinations of ../ to reach the documentation root.
fs: DocFSThe fs handle we are working with.
edition: EditionThe default edition used to parse doctests.
codes: ErrorCodesplayground: Option<Playground>Implementations
impl SharedContext[src]
pub(crate) fn ensure_dir(&self, dst: &Path) -> Result<(), Error>[src]
pub(crate) fn maybe_collapsed_doc_value<'a>(
&self,
item: &'a Item
) -> Option<Cow<'a, str>>[src]
&self,
item: &'a Item
) -> Option<Cow<'a, str>>
Based on whether the collapse-docs pass was run, return either the doc_value or the
collapsed_doc_value of the given item.
Auto Trait Implementations
impl !RefUnwindSafe for SharedContext
impl Send for SharedContext
impl !Sync for SharedContext
impl Unpin for SharedContext
impl !UnwindSafe for SharedContext
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,