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§
sourcefn parse_attrs<'a>(
attrs: impl IntoIterator<Item = &'a Attribute> + 'a
) -> Result<Self, Vec<Error>>where
Self: Sized,
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.
sourcefn parse_meta(input: &Meta) -> Result<Self, Vec<Error>>where
Self: Sized,
fn parse_meta(input: &Meta) -> Result<Self, Vec<Error>>where
Self: Sized,
Parse this struct from a syn::Meta.
sourcefn expected_meta() -> String
fn expected_meta() -> String
The expected inner attributes of this struct.