pub struct Syn1;
Expand description
Deserialization functions & types for Syn version 1
Trait Implementations§
Source§impl SynVersion for Syn1
impl SynVersion for Syn1
Source§type ArgMeta = NestedMeta
type ArgMeta = NestedMeta
Metadata that can be used to deserialize a value.
Source§fn deserialize_attr_args(
attr: &<Syn1 as SynVersion>::Attribute,
) -> Option<Vec<<Syn1 as SynVersion>::ArgMeta>>
fn deserialize_attr_args( attr: &<Syn1 as SynVersion>::Attribute, ) -> Option<Vec<<Syn1 as SynVersion>::ArgMeta>>
Parses an attribute list into a vector of its elements as metadata.
Source§fn deserialize_list_args(
meta: &<Syn1 as SynVersion>::ArgMeta,
) -> Option<Vec<<Syn1 as SynVersion>::ArgMeta>>
fn deserialize_list_args( meta: &<Syn1 as SynVersion>::ArgMeta, ) -> Option<Vec<<Syn1 as SynVersion>::ArgMeta>>
Parses a nested list into a vector of its elements as metadata.
Source§fn deserialize_bool(meta: &<Syn1 as SynVersion>::ArgMeta) -> Option<bool>
fn deserialize_bool(meta: &<Syn1 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_attr_key(
meta: &<Syn1 as SynVersion>::Attribute,
) -> Option<String>
fn deserialize_attr_key( meta: &<Syn1 as SynVersion>::Attribute, ) -> Option<String>
Gets the name of an attribute list.
Source§fn deserialize_key(meta: &<Syn1 as SynVersion>::ArgMeta) -> Option<String>
fn deserialize_key(meta: &<Syn1 as SynVersion>::ArgMeta) -> Option<String>
Gets the key from a key value pair as a string.
Source§fn deserialize_integer<T>(meta: &<Syn1 as SynVersion>::ArgMeta) -> Option<T>
fn deserialize_integer<T>(meta: &<Syn1 as SynVersion>::ArgMeta) -> Option<T>
Attempts to get an integer from an argument. Returns None if the argument is a different type.
Source§fn deserialize_float<T>(meta: &<Syn1 as SynVersion>::ArgMeta) -> Option<T>
fn deserialize_float<T>(meta: &<Syn1 as SynVersion>::ArgMeta) -> Option<T>
Attempts to get a float from an argument. Returns None if the argument is a different type.
Source§fn deserialize_string(meta: &<Syn1 as SynVersion>::ArgMeta) -> Option<String>
fn deserialize_string(meta: &<Syn1 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_array(
meta: &<Syn1 as SynVersion>::ArgMeta,
) -> Option<Vec<<Syn1 as SynVersion>::ArgMeta>>
fn deserialize_array( meta: &<Syn1 as SynVersion>::ArgMeta, ) -> Option<Vec<<Syn1 as SynVersion>::ArgMeta>>
Attempts to get an array from an argument and returns a vector of its elements as metadata.
Source§fn convert_error(error: Error) -> <Syn1 as SynVersion>::Error
fn convert_error(error: Error) -> <Syn1 as SynVersion>::Error
Converts this crates error into a Syn error.
Auto Trait Implementations§
impl Freeze for Syn1
impl RefUnwindSafe for Syn1
impl Send for Syn1
impl Sync for Syn1
impl Unpin for Syn1
impl UnwindSafe for Syn1
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