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.
Fields§
§attrs: Vec<Attribute>§pat: Box<Pat>§colon_token: Colon§ty: Box<Type>Trait Implementations§
Auto Trait Implementations§
impl Freeze for PatType
impl RefUnwindSafe for PatType
impl !Send for PatType
impl !Sync for PatType
impl Unpin for PatType
impl UnwindSafe for PatType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more