Expand description
Shared utility functions for lint rule implementations.
Structsยง
- Miniextendr
Impl Attrs - Parsed miniextendr attribute information for an impl block.
- Split
TopLevel ๐Commas
Traitsยง
- Meta
ToString ๐ - Helper trait for converting Meta to a normalized string.
Functionsยง
- extract_
cfg_ attrs - Extract
#[cfg(...)]attributes as normalized token strings. - extract_
path_ attr - Extract
#[path = "..."]attribute value from a module declaration. - extract_
roxygen_ tags - Extract roxygen tags from doc-comment attributes.
- has_
altrep_ derive - Returns true if the attribute list contains
#[derive(Altrep)]or#[derive(miniextendr_api::Altrep)]. - has_
external_ ptr_ derive - Returns true if the attribute list contains
#[derive(ExternalPtr)]or#[derive(miniextendr_api::ExternalPtr)]. - has_
miniextendr_ attr - Returns true when the attribute list contains
#[miniextendr]. - has_
vctrs_ derive - Returns true if the attribute list contains
#[derive(Vctrs)]or#[derive(miniextendr_api::Vctrs)]. - impl_
type_ name - Extracts a displayable type name from an impl self type.
- is_
altrep_ struct - Check if a struct with
#[miniextendr]should be treated as ALTREP (needingstruct Name;in module). - parse_
miniextendr_ impl_ attrs - Parse the #[miniextendr(โฆ)] attribute to extract class system, label, and flags.
- should_
skip_ dir - Returns whether a directory should be skipped during lint tree traversal.
- split_
top_ ๐level_ commas - Split a token string on top-level commas (ignoring commas inside
(...)groups).