Module core

Source
Expand description

Contains all the core function that are common across different modules.

Functionsยง

check_and_parse_bounds
check_and_parse_dyn
helper function that check and parser the dyn token, if is not present return None.
check_and_parse_fn_qualifier
check_and_parse_fn_tok
check_and_parse_generics_params
parsing the declaration of the lifetimes and generics for a declaration of a impl block or struct.
check_and_parse_lifetime
helper function that check and parse the lifetime symbol ', if is not present return None.
check_and_parse_mut
helper function that check and parse the mut token, if is not present return None.
check_and_parse_ref
helper function that check and parse the reference token &, if is not present return None.
check_and_parse_return_type
check_and_parse_visibility
parse visibility identifier like `pub(crate)`` and return an option value in case it is not defined.
check_identifier
check_identifiers
check_is_fun_with_visibility
check_raw_toks
check_tok