pub struct DocSite {
pub files: Vec<DocFile>,
}Expand description
A renderable site composed of one entry per source file.
Fields§
§files: Vec<DocFile>Implementations§
Source§impl DocSite
impl DocSite
Sourcepub fn from_ast(
stem: impl Into<String>,
ast: &Ast,
interner: &ThreadedRodeo,
) -> DocFile
pub fn from_ast( stem: impl Into<String>, ast: &Ast, interner: &ThreadedRodeo, ) -> DocFile
Build a DocSite from a single Ast + interner pair.
stem is the file’s display name (typically the source path’s
stem). Anonymous types and items lacking docs still appear in
the output — the renderer just shows their header.
Sourcepub fn link_table(&self) -> LinkTable
pub fn link_table(&self) -> LinkTable
ADR-0089 Phase 5: build a LinkTable covering every top-level
item in the site, with each slug prefixed by the containing file’s
stem. Right for the site-level index page where every link is one
directory away.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DocSite
impl RefUnwindSafe for DocSite
impl Send for DocSite
impl Sync for DocSite
impl Unpin for DocSite
impl UnsafeUnpin for DocSite
impl UnwindSafe for DocSite
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<'src, T> IntoMaybe<'src, T> for Twhere
T: 'src,
impl<'src, T> IntoMaybe<'src, T> for Twhere
T: 'src,
§impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
§type Iter<'a> = Once<&'a T>
where
T: 'a
type Iter<'a> = Once<&'a T> where T: 'a
An iterator over the items within this container, by reference.
§fn contains(&self, val: &T) -> boolwhere
T: PartialEq,
fn contains(&self, val: &T) -> boolwhere
T: PartialEq,
Check whether an item is contained within this sequence.
§fn to_maybe_ref<'b>(item: <T as Seq<'p, T>>::Item<'b>) -> Maybe<T, &'p T>where
'p: 'b,
fn to_maybe_ref<'b>(item: <T as Seq<'p, T>>::Item<'b>) -> Maybe<T, &'p T>where
'p: 'b,
Convert an item of the sequence into a [
MaybeRef].