pub struct DocSpace {
pub pages: BTreeMap<String, PageView>,
pub by_slug: BTreeMap<String, String>,
pub links: BTreeMap<String, Vec<(String, String)>>,
}Expand description
Every live doc page of a place.
Fields§
§pages: BTreeMap<String, PageView>Page id → page, live pages only.
by_slug: BTreeMap<String, String>Slug → page id (the slug owner).
links: BTreeMap<String, Vec<(String, String)>>Page id → its live links_to edges as (edge id, target page id).
Implementations§
Trait Implementations§
impl StructuralPartialEq for DocSpace
Auto Trait Implementations§
impl Forget for DocSpace
impl Freeze for DocSpacewhere
*const LeafNode<String, PageView> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, PageView)>>: Freeze,
*const LeafNode<String, String> is !null: Freeze,
PhantomData<Box<(String, String)>>: Freeze,
*const LeafNode<String, Vec<(String, String)>> is !null: Freeze,
PhantomData<Box<(String, Vec<(String, String)>)>>: Freeze,
impl Move for DocSpace
impl RefUnwindSafe for DocSpace
impl Send for DocSpace
impl Sync for DocSpace
impl Unpin for DocSpace
impl UnsafeUnpin for DocSpacewhere
*const LeafNode<String, PageView> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, PageView)>>: UnsafeUnpin,
*const LeafNode<String, String> is !null: UnsafeUnpin,
PhantomData<Box<(String, String)>>: UnsafeUnpin,
*const LeafNode<String, Vec<(String, String)>> is !null: UnsafeUnpin,
PhantomData<Box<(String, Vec<(String, String)>)>>: UnsafeUnpin,
impl UnwindSafe for DocSpacewhere
BTreeMap<String, PageView>: UnwindSafe,
BTreeMap<String, String>: UnwindSafe,
BTreeMap<String, Vec<(String, String)>>: UnwindSafe,
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