pub struct DocTreeGen { /* private fields */ }Expand description
A structure of generator of documentation tree.
The generator of documentation tree takes a root module of documentation and then generates
a documentation tree. A root module of signature are generated from the syntax tree while
a generation of documentation tree. Applications of built-in function of running with
documentation allows to documention generation from other files than the main file of
library. By defaylt, the built-in function of running with documentation is runwithdoc.
Implementations§
Source§impl DocTreeGen
impl DocTreeGen
Sourcepub fn new_with_script_dir_and_run_with_doc_ident(
doc_root_mod: Arc<RwLock<ModNode<String, Option<String>>>>,
script_dir: PathBuf,
run_with_doc_ident: String,
) -> Self
pub fn new_with_script_dir_and_run_with_doc_ident( doc_root_mod: Arc<RwLock<ModNode<String, Option<String>>>>, script_dir: PathBuf, run_with_doc_ident: String, ) -> Self
Creates a generator of documentation tree with the path to script directory and the identifier of built-in function of running with documentation.
Also, this method takes the root module of documentation that can have the module descriptions and the variable description.
Sourcepub fn new_with_script_dir(
doc_root_mod: Arc<RwLock<ModNode<String, Option<String>>>>,
script_dir: PathBuf,
) -> Self
pub fn new_with_script_dir( doc_root_mod: Arc<RwLock<ModNode<String, Option<String>>>>, script_dir: PathBuf, ) -> Self
Creates a generator of documentation tree with the path to script directory.
Sourcepub fn new(doc_root_mod: Arc<RwLock<ModNode<String, Option<String>>>>) -> Self
pub fn new(doc_root_mod: Arc<RwLock<ModNode<String, Option<String>>>>) -> Self
Creates a generator of documentation tree.
Sourcepub fn script_dir(&self) -> &Path
pub fn script_dir(&self) -> &Path
Returns the path to script directory.
Sourcepub fn run_with_doc_ident(&self) -> &str
pub fn run_with_doc_ident(&self) -> &str
Returns the identifier of built-in function of running with documentation.
Trait Implementations§
Source§impl Clone for DocTreeGen
impl Clone for DocTreeGen
Source§fn clone(&self) -> DocTreeGen
fn clone(&self) -> DocTreeGen
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for DocTreeGen
impl RefUnwindSafe for DocTreeGen
impl Send for DocTreeGen
impl Sync for DocTreeGen
impl Unpin for DocTreeGen
impl UnsafeUnpin for DocTreeGen
impl UnwindSafe for DocTreeGen
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.