Trait EasyAttributes

Source
pub trait EasyAttributes {
    // Required methods
    fn parse(attrs: &[Attribute], span: Span) -> Result<Self>
       where Self: Sized;
    fn parse_in(
        namespace: &Ident,
        attrs: &[Attribute],
        span: Span,
    ) -> Result<Self>
       where Self: Sized;
}
Expand description

Collection of attributes that can be parsed from array of attributes. Can be easily applied to attributes vector parsed by syn.

Required Methods§

Source

fn parse(attrs: &[Attribute], span: Span) -> Result<Self>
where Self: Sized,

Parse attributes array.

Source

fn parse_in(namespace: &Ident, attrs: &[Attribute], span: Span) -> Result<Self>
where Self: Sized,

Parse attributes array within specifeid namespace.

Implementors§