Struct serde_tokenstream::ParseWrapper
source · pub struct ParseWrapper<P: Parse>(_);
Expand description
A wrapper around the syn::parse::Parse trait that is Deserializable, albeit only in the context of from_tokenstream(). This extends TokenStreamWrapper by further interpreting the TokenStream and guiding the user in the case of parse errors.
Implementations§
source§impl<P: Parse> ParseWrapper<P>
impl<P: Parse> ParseWrapper<P>
pub fn into_inner(self) -> P
Trait Implementations§
source§impl<P: Parse> Deref for ParseWrapper<P>
impl<P: Parse> Deref for ParseWrapper<P>
source§impl<'de, P: Parse> Deserialize<'de> for ParseWrapper<P>
impl<'de, P: Parse> Deserialize<'de> for ParseWrapper<P>
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<P: PartialEq + Parse> PartialEq<ParseWrapper<P>> for ParseWrapper<P>
impl<P: PartialEq + Parse> PartialEq<ParseWrapper<P>> for ParseWrapper<P>
source§fn eq(&self, other: &ParseWrapper<P>) -> bool
fn eq(&self, other: &ParseWrapper<P>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.