pub struct PatType {
pub attrs: Vec<Attribute>,
pub pat: Box<Pat>,
pub colon_token: Colon,
pub ty: Box<Type>,
}
Expand description
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
Auto Trait Implementations
impl RefUnwindSafe for PatType
impl !Send for PatType
impl !Sync for PatType
impl Unpin for PatType
impl UnwindSafe for PatType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more