Crate document_metrics

source

Structsยง

Enumsยง

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.
  • Returns metric information from metric enum variant attributes.
  • print_error ๐Ÿ”’
  • sort_metrics ๐Ÿ”’