Struct user_doc_doc_data::DocDict [−][src]
Expand description
A dictionary of doc
Tuple Fields
0: DocDictTreeThe dictionary tree
1: Vec<(Vec<usize>, String)>Backlinks and blurbs
Implementations
Add an entry to a documentation dictionary
Add the path specified to a documentation dictionary, filling with empty subtrees to get there. Return Ok(()) on success.
- If the path exists, fail unless
overwrite_optcontainstrue
Produce a depth-first, immutable iterator over the entries.
- The iterator item includes a slug of chapters, the current entry node, and the number of sub entries for the current node The iterator will produce entries for the chapters AS WELL AS entries for the subchapters of those chapters.
pub fn expand_into_mdbook_dirs_at_path(
&self,
naming_scheme: DirectoryNamingScheme,
root_path: &str
) -> Result<()>
pub fn expand_into_mdbook_dirs_at_path(
&self,
naming_scheme: DirectoryNamingScheme,
root_path: &str
) -> Result<()>
Expand this doc dict into directories at the given directory path
Find the next available (unused) entry number in a documentation dictionary
Get an immutable reference to an entry at the specified numeric path. Returns None if the
a path is not present.
pub fn get_mut_entry_at_numeric_path(
&mut self,
path: &[usize]
) -> Option<&mut DocDictEntryValueType>
pub fn get_mut_entry_at_numeric_path(
&mut self,
path: &[usize]
) -> Option<&mut DocDictEntryValueType>
Get a mutable reference to an entry at the specified numeric path. Returns None if the
a path is not present.
Trait Implementations
type Target = DocDictTree
type Target = DocDictTree
The resulting type after dereferencing.
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for DocDict
impl UnwindSafe for DocDict
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.