Skip to main content

Module generate_documentation_template

Module generate_documentation_template 

Source

Functionsยง

all_parent_mods_public ๐Ÿ”’
Checks that all parent modules of the function are public / exported
arguments_from_params ๐Ÿ”’
Helper function to build the comma-separated list of arguments of the function
build_path ๐Ÿ”’
Helper function to build the path of the module in the which is the node
can_panic ๐Ÿ”’
None if function without a body; some bool to guess if function can panic
count_parameters ๐Ÿ”’
Helper function to count the parameters including self
crate_name ๐Ÿ”’
Returns the name of the current crate
documentation_from_lines ๐Ÿ”’
Helper function to transform lines of documentation into a Rust code documentation
errors_builder ๐Ÿ”’
Builds an optional # Errors section
function_call ๐Ÿ”’
Helper function to build a function call. None if expected self_name was not provided
generate_doc_example ๐Ÿ”’
generate_documentation_template ๐Ÿ”’
introduction_builder ๐Ÿ”’
is_a_ref_mut_param ๐Ÿ”’
Helper function to determine if a parameter is &mut
is_in_trait_def ๐Ÿ”’
Helper function to determine if the function definition is in a trait definition
is_in_trait_impl ๐Ÿ”’
Helper function to determine if the function is in a trait implementation
is_public ๐Ÿ”’
Checks if the function is public / exported
is_ref_mut_self ๐Ÿ”’
Returns None if no self at all, Some(true) if there is &mut self else Some(false)
make_example_for_fn ๐Ÿ”’
panics_builder ๐Ÿ”’
Builds an optional # Panics section
ref_mut_params ๐Ÿ”’
Helper function to build the list of &mut parameters
return_type ๐Ÿ”’
Helper function to get the return type of a function
returns_a_value ๐Ÿ”’
Helper function to determine if the function returns some data
safety_builder ๐Ÿ”’
Builds an optional # Safety section
self_name ๐Ÿ”’
Helper function to get the name that should be given to self arguments
self_partial_type ๐Ÿ”’
Helper function to get the name of the type of self without generic arguments
self_type ๐Ÿ”’
Helper function to get the name of the type of self
self_type_without_lifetimes ๐Ÿ”’
Output the real name of Self like MyType<T>, without the lifetimes.
string_vec_from ๐Ÿ”’
Helper function to transform an array of borrowed strings to an owned Vec<String>