Enum syn::PathArguments
source · pub enum PathArguments {
None,
AngleBracketed(AngleBracketedGenericArguments),
Parenthesized(ParenthesizedGenericArguments),
}
Available on crate features
full
or derive
only.Expand description
Angle bracketed or parenthesized arguments of a path segment.
This type is available only if Syn is built with the "derive"
or "full"
feature.
Angle bracketed
The <'a, T>
in std::slice::iter<'a, T>
.
Parenthesized
The (A, B) -> C
in Fn(A, B) -> C
.
Variants§
None
AngleBracketed(AngleBracketedGenericArguments)
The <'a, T>
in std::slice::iter<'a, T>
.
Parenthesized(ParenthesizedGenericArguments)
The (A, B) -> C
in Fn(A, B) -> C
.
Implementations§
Trait Implementations§
source§impl Clone for PathArguments
Available on crate feature clone-impls
only.
impl Clone for PathArguments
Available on crate feature
clone-impls
only.source§impl Debug for PathArguments
Available on crate feature extra-traits
only.
impl Debug for PathArguments
Available on crate feature
extra-traits
only.source§impl Default for PathArguments
impl Default for PathArguments
source§impl Hash for PathArguments
Available on crate feature extra-traits
only.
impl Hash for PathArguments
Available on crate feature
extra-traits
only.source§impl PartialEq<PathArguments> for PathArguments
Available on crate feature extra-traits
only.
impl PartialEq<PathArguments> for PathArguments
Available on crate feature
extra-traits
only.source§impl ToTokens for PathArguments
Available on crate feature printing
only.
impl ToTokens for PathArguments
Available on crate feature
printing
only.source§fn to_tokens(&self, tokens: &mut TokenStream)
fn to_tokens(&self, tokens: &mut TokenStream)
source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
source§fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
impl Eq for PathArguments
Available on crate feature
extra-traits
only.