Trait syner::Syner

source ·
pub trait Syner {
    fn parse_attrs<'a>(
        attrs: impl IntoIterator<Item = &'a Attribute> + 'a
    ) -> Result<Self, Vec<Error>>
    where
        Self: Sized
; fn parse_meta(input: &Meta) -> Result<Self, Vec<Error>>
    where
        Self: Sized
; fn expected() -> String; fn expected_meta() -> String; fn name() -> &'static str; }

Required Methods§

source

fn parse_attrs<'a>(
    attrs: impl IntoIterator<Item = &'a Attribute> + 'a
) -> Result<Self, Vec<Error>>where
    Self: Sized,

Parse this struct from an iterator of attributes.

source

fn parse_meta(input: &Meta) -> Result<Self, Vec<Error>>where
    Self: Sized,

Parse this struct from a syn::Meta.

source

fn expected() -> String

The expected attributes of this struct.

source

fn expected_meta() -> String

The expected inner attributes of this struct.

source

fn name() -> &'static str

The name of the attribute that this struct is expecting.

Implementors§