Struct derive_attribute::Syn2
source · pub struct Syn2;
Trait Implementations§
source§impl SynVersion for Syn2
impl SynVersion for Syn2
source§fn deserialize_key(meta: &<Syn2 as SynVersion>::ArgMeta) -> Option<String>
fn deserialize_key(meta: &<Syn2 as SynVersion>::ArgMeta) -> Option<String>
Gets the key from a key value pair as a string.
source§fn deserialize_attr_key(
meta: &<Syn2 as SynVersion>::Attribute
) -> Option<String>
fn deserialize_attr_key( meta: &<Syn2 as SynVersion>::Attribute ) -> Option<String>
Gets the name of an attribute list.
source§fn deserialize_integer<T>(meta: &<Syn2 as SynVersion>::ArgMeta) -> Option<T>where
T: FromStr,
<T as FromStr>::Err: Display,
fn deserialize_integer<T>(meta: &<Syn2 as SynVersion>::ArgMeta) -> Option<T>where T: FromStr, <T as FromStr>::Err: Display,
Attempts to get an integer from an argument. Returns None if the argument is a different type.
source§fn deserialize_float<T>(meta: &<Syn2 as SynVersion>::ArgMeta) -> Option<T>where
T: FromStr,
<T as FromStr>::Err: Display,
fn deserialize_float<T>(meta: &<Syn2 as SynVersion>::ArgMeta) -> Option<T>where T: FromStr, <T as FromStr>::Err: Display,
Attempts to get a float from an argument. Returns None if the argument is a different type.
source§fn deserialize_string(meta: &<Syn2 as SynVersion>::ArgMeta) -> Option<String>
fn deserialize_string(meta: &<Syn2 as SynVersion>::ArgMeta) -> Option<String>
Attempts to get a string from an argument. Returns None if the argument is a different type.
source§fn deserialize_bool(meta: &<Syn2 as SynVersion>::ArgMeta) -> Option<bool>
fn deserialize_bool(meta: &<Syn2 as SynVersion>::ArgMeta) -> Option<bool>
Attempts to get a boolean from an argument. Returns None if the argument is a different type.
source§fn deserialize_list_args(
meta: &<Syn2 as SynVersion>::ArgMeta
) -> Option<Vec<<Syn2 as SynVersion>::ArgMeta, Global>>
fn deserialize_list_args( meta: &<Syn2 as SynVersion>::ArgMeta ) -> Option<Vec<<Syn2 as SynVersion>::ArgMeta, Global>>
Parses a nested list into a vector of its elements as metadata.
source§fn deserialize_attr_args(
attr: &<Syn2 as SynVersion>::Attribute
) -> Option<Vec<<Syn2 as SynVersion>::ArgMeta, Global>>
fn deserialize_attr_args( attr: &<Syn2 as SynVersion>::Attribute ) -> Option<Vec<<Syn2 as SynVersion>::ArgMeta, Global>>
Parses an attribute list into a vector of its elements as metadata.
source§fn deserialize_array(
meta: &<Syn2 as SynVersion>::ArgMeta
) -> Option<Vec<<Syn2 as SynVersion>::ArgMeta, Global>>
fn deserialize_array( meta: &<Syn2 as SynVersion>::ArgMeta ) -> Option<Vec<<Syn2 as SynVersion>::ArgMeta, Global>>
Attempts to get an array from an argument and returns a vector of its elements as metadata.
source§fn convert_error(error: Error) -> <Syn2 as SynVersion>::Error
fn convert_error(error: Error) -> <Syn2 as SynVersion>::Error
Converts this crates error into a Syn error.
Auto Trait Implementations§
impl RefUnwindSafe for Syn2
impl Send for Syn2
impl Sync for Syn2
impl Unpin for Syn2
impl UnwindSafe for Syn2
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more