pub enum MetaItem<'a> {
Ident(&'a Ident),
Literal(&'a Lit),
KeyValue(&'a Ident, &'a Lit),
List(MetaItemList<'a>),
}
Variants§
Implementations§
Trait Implementations§
source§impl<'a> From<&'a NestedMeta> for MetaItem<'a>
impl<'a> From<&'a NestedMeta> for MetaItem<'a>
source§fn from(nested: &NestedMeta) -> MetaItem<'_>
fn from(nested: &NestedMeta) -> MetaItem<'_>
Converts to this type from the input type.