Module derive_type_level_lib::doc_code_snippets [−][src]
Derive macro used to geenerate documentation which includes snippets of code taken from a larger segment of code.
Markers in the code
Takes the code between the start and end markers,all blocks of different names are independent.
Syntax:
//@codeblock-(start | end):<name_of_block>,
-
start
is the start of the block. -
end
is the end of the block.
ex://@codeblock-start:all
ex://@codeblock-end :struct declaraction
syntax for markers in the documentation
//@use_codeblock:<name_of_block>, ignore | rust
-
ignore
means that this code won't be tested -
rust
means that this code will be tested as rust code
Functions
derive_from_derive_input | |
derive_from_str | |
derive_from_token_stream |