Structsยง
- Cli ๐
- Prints documentation for metrics.
- Metric ๐
- Metric
Path ๐
Enumsยง
- Metric
Type ๐ - Schema
Format ๐
Functionsยง
- add_
doc_ ๐line - Adds a line to the string if the attribute is a doc attribute.
- add_
feature ๐ - Adds the name of the feature if the given attribute is a
cfg(feature)
attribute. - find_
name_ ๐arms - Resolves match arms in the implementation of the
name
method. - get_
attr ๐ - Returns the value of a matching attribute in form
#[name = "value"]
. - get_
match_ ๐pair - Returns the variant name and string value of a match arm in format
Type::Variant => "value"
. - get_
metric_ ๐type - Returns the metric type of a trait implementation.
- get_
path_ ๐type - Returns the final type name from a path in format
path::to::Type
. - get_
type_ ๐name - Returns the type name of a type in format
path::to::Type
. - main ๐
- parse_
impl_ ๐parts - Parses metrics information from an impl block.
- parse_
metrics ๐ - Parses metrics from the given source code.
- parse_
variant_ ๐parts - Returns metric information from metric enum variant attributes.
- print_
error ๐ - process_
meta_ ๐item - Recursively processes a meta item and its nested items.
- sort_
metrics ๐