Skip to main content

has_derive

Function has_derive 

Source
pub fn has_derive(attrs: &[Attribute], name: &str) -> bool
Expand description

Returns true if the attribute list contains #[derive(name)] or #[derive(miniextendr_api::name)] for the given derive name (e.g. "ExternalPtr", "Altrep", "Vctrs").