Field::has_attr
pub fn has_attr(string name) -> bool Import
Source: use macro::{Field}; compiler/src/prelude/macro.hy True when the field carries #[name(...)].
Called on a Field value as value.has_attr(…).
Parameters#
| Name | Type |
|---|---|
name | string |
Returns#
bool
See also#
Field: A class field, or a field of a record enum variant.Field::attr_str:#[attr(key = "value")]on this field, orfallback.