Skip to main content

Docs

Struct Docs 

Source
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<'_>

Source

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.

Source

pub fn pages(&self) -> Vec<Page>

Source

pub fn sibling(&self) -> Sibling

This manual’s HTML pages, for the other platforms’ dropdowns.

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.