pub struct PatType {
pub pat: Pat,
pub colon_token: Colon,
pub ty: Type,
pub pred: Option<PatTypePredicate>,
}
Fields§
§pat: Pat
§colon_token: Colon
§ty: Type
§pred: Option<PatTypePredicate>
Implementations§
Source§impl PatType
impl PatType
fn to_tokens_inner(&self, tokens: &mut TokenStream, mode: Mode)
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