Struct syn::PatType [−][src]
pub struct PatType { pub attrs: Vec<Attribute>, pub pat: Box<Pat>, pub colon_token: Colon, pub ty: Box<Type>, }
This is supported on crate feature
full
only.A type ascription pattern: foo: f64
.
This type is available only if Syn is built with the "full"
feature.
Fields
attrs: Vec<Attribute>
pat: Box<Pat>
colon_token: Colon
ty: Box<Type>
Trait Implementations
impl Clone for PatType
[src]
impl Clone for PatType
[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 ToTokens for PatType
[src]
impl ToTokens for PatType
[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 PatType
impl RefUnwindSafe for PatType
impl UnwindSafe for PatType
impl UnwindSafe for PatType