Module parse

Source
Expand description

Parse the tokens of the macro.

Functionsยง

arg_is_context ๐Ÿ”’
Check if the argument is &Context.
arg_is_option ๐Ÿ”’
Check if the argument is Option.
arg_is_write ๐Ÿ”’
Check if the argument is &mut impl Write.
check_type ๐Ÿ”’
Check the return type.
first_mut_ref_arg ๐Ÿ”’
Returns T if the first argument (except self) is &mut T.
last_arg_is_retract ๐Ÿ”’
Check if the last argument is retract: bool.
strip_iterator ๐Ÿ”’
Check if the type is impl Iterator<Item = T> and return T.
strip_outer_type ๐Ÿ”’
Check if the type is type_<T> and return T.