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 ๐ Noneif 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
# Errorssection - function_
call ๐ - Helper function to build a function call.
Noneif expectedself_namewas 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
Noneif noselfat all,Some(true)if there is&mut selfelseSome(false) - make_
example_ ๐for_ fn - panics_
builder ๐ - Builds an optional
# Panicssection - ref_
mut_ ๐params - Helper function to build the list of
&mutparameters - 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
# Safetysection - self_
name ๐ - Helper function to get the name that should be given to
selfarguments - self_
partial_ ๐type - Helper function to get the name of the type of
selfwithout generic arguments - self_
type ๐ - Helper function to get the name of the type of
self - self_
type_ ๐without_ lifetimes - Output the real name of
SelflikeMyType<T>, without the lifetimes. - string_
vec_ ๐from - Helper function to transform an array of borrowed strings to an owned
Vec<String>