Crate const_source_position

Source

Macrosยง

source_line
Takes a type path as an argument and provides the source code path as a type parameter to the last element of the path. This has a very specific use case involving serde and large numbers of structs. Example: