Struct syn::PathSegment [−][src]
pub struct PathSegment { pub ident: Ident, pub arguments: PathArguments, }
This is supported on crate features
full
or derive
only.A segment of a path together with any path arguments on that segment.
This type is available only if Syn is built with the "derive"
or "full"
feature.
Fields
ident: Ident
arguments: PathArguments
Trait Implementations
impl Clone for PathSegment
[src]
impl Clone for PathSegment
[src]This is supported on crate feature
clone-impls
only.fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for PathSegment
[src]
impl Debug for PathSegment
[src]This is supported on crate feature
extra-traits
only.impl Eq for PathSegment
[src]
impl Eq for PathSegment
[src]This is supported on crate feature
extra-traits
only.impl Hash for PathSegment
[src]
impl Hash for PathSegment
[src]This is supported on crate feature
extra-traits
only.impl Parse for PathSegment
[src]
impl Parse for PathSegment
[src]This is supported on crate feature
parsing
only.fn parse(input: ParseStream<'_>) -> Result<Self>
[src]
impl PartialEq<PathSegment> for PathSegment
[src]
impl PartialEq<PathSegment> for PathSegment
[src]This is supported on crate feature
extra-traits
only.impl ToTokens for PathSegment
[src]
impl ToTokens for PathSegment
[src]This is supported on crate feature
printing
only.fn to_tokens(&self, tokens: &mut TokenStream)
[src]
pub fn to_token_stream(&self) -> TokenStream
[src]
pub fn into_token_stream(self) -> TokenStream
[src]
Auto Trait Implementations
impl RefUnwindSafe for PathSegment
impl RefUnwindSafe for PathSegment
impl !Send for PathSegment
impl !Send for PathSegment
impl !Sync for PathSegment
impl !Sync for PathSegment
impl Unpin for PathSegment
impl Unpin for PathSegment
impl UnwindSafe for PathSegment
impl UnwindSafe for PathSegment