pub struct SiteBuild {
pub docs: Vec<Doc>,
pub graph: LinkGraph,
pub search: Vec<SearchEntry>,
pub any_mermaid: bool,
pub any_components: bool,
}Expand description
The fully assembled site after pass 2.
Fields§
§docs: Vec<Doc>§graph: LinkGraph§search: Vec<SearchEntry>§any_mermaid: boolTrue if any doc contains a mermaid diagram. Lets the build subcommand flip
EmitOptions.include_mermaid once for the whole site.
any_components: boolTrue if any doc used ≥1 custom component (gates the components asset slice).
Implementations§
Source§impl SiteBuild
impl SiteBuild
Sourcepub fn graph_data(&self, params: LayoutParams) -> GraphData
pub fn graph_data(&self, params: LayoutParams) -> GraphData
Build the deterministic GraphData for the /graph/ page from this
site’s docs (node order = doc order) and its already-built LinkGraph.
Never recomputes links.
Auto Trait Implementations§
impl Freeze for SiteBuild
impl RefUnwindSafe for SiteBuild
impl Send for SiteBuild
impl Sync for SiteBuild
impl Unpin for SiteBuild
impl UnsafeUnpin for SiteBuild
impl UnwindSafe for SiteBuild
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more