Struct syn::PatPath [−][src]
A path pattern like Color::Red
, optionally qualified with a
self-type.
Unquailfied path patterns can legally refer to variants, structs,
constants or associated constants. Quailfied path patterns like
<A>::B::C
and <A as Trait>::B::C
can only legally refer to
associated constants.
This type is available if Syn is built with the "full"
feature.
Fields
qself: Option<QSelf>
path: Path
Trait Implementations
impl ToTokens for PatPath
[src]
impl ToTokens for PatPath
fn to_tokens(&self, tokens: &mut TokenStream)
[src]
fn to_tokens(&self, tokens: &mut TokenStream)
Write self
to the given TokenStream
. Read more
fn into_token_stream(self) -> TokenStream
[src]
fn into_token_stream(self) -> TokenStream
Convert self
directly into a TokenStream
object. Read more
impl Debug for PatPath
[src]
impl Debug for PatPath
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for PatPath
[src]
impl Eq for PatPath
impl PartialEq for PatPath
[src]
impl PartialEq for PatPath
fn eq(&self, other: &PatPath) -> bool
[src]
fn eq(&self, other: &PatPath) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &PatPath) -> bool
[src]
fn ne(&self, other: &PatPath) -> bool
This method tests for !=
.
impl Hash for PatPath
[src]
impl Hash for PatPath
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Clone for PatPath
[src]
impl Clone for PatPath
fn clone(&self) -> PatPath
[src]
fn clone(&self) -> PatPath
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl From<PatPath> for Pat
[src]
impl From<PatPath> for Pat