pub struct Docs<'a> {
pub suite: &'a Suite,
pub analysis: &'a Analysis,
pub plans: &'a [Plan],
pub report: Option<&'a Report>,
pub suite_dir: Option<&'a Path>,
pub siblings: &'a [Sibling],
pub outline: Option<&'a Outline>,
}Fields§
§suite: &'a Suite§analysis: &'a Analysis§plans: &'a [Plan]§report: Option<&'a Report>Results of running plans, if they ran.
suite_dir: Option<&'a Path>Where the suite’s files are, so each page can link to the one to edit.
siblings: &'a [Sibling]The other platforms’ docs (when the suite has several), so each page can offer the same
page there. Their trees are platforms/<name>/ (the default platform’s is the root).
outline: Option<&'a Outline>The manual’s parts and hand-written pages. Set by the docs themselves from the suite’s
outline.txt; leave it None.
Implementations§
Source§impl Docs<'_>
impl Docs<'_>
Sourcepub fn write(&self, dir: &Path) -> Result<Vec<PathBuf>>
pub fn write(&self, dir: &Path) -> Result<Vec<PathBuf>>
Write the Markdown pages and the HTML site under dir. Pages of stories or features
that no longer exist are removed (only the generated kinds, in the folders this writes
to); other files in the directory are left alone.
pub fn pages(&self) -> Vec<Page>
Auto Trait Implementations§
impl<'a> Freeze for Docs<'a>
impl<'a> RefUnwindSafe for Docs<'a>
impl<'a> Send for Docs<'a>
impl<'a> Sync for Docs<'a>
impl<'a> Unpin for Docs<'a>
impl<'a> UnsafeUnpin for Docs<'a>
impl<'a> UnwindSafe for Docs<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more