pub struct ArgCaptured {
pub pat: Pat,
pub colon_token: Colon,
pub ty: Type,
}
Expand description
An explicitly typed pattern captured by a function signature.
This type is available if Syn is built with the "full"
feature.
Fields§
§pat: Pat
§colon_token: Colon
§ty: Type
Trait Implementations§
Source§impl Clone for ArgCaptured
impl Clone for ArgCaptured
Source§fn clone(&self) -> ArgCaptured
fn clone(&self) -> ArgCaptured
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ArgCaptured
impl Debug for ArgCaptured
Source§impl From<ArgCaptured> for FnArg
impl From<ArgCaptured> for FnArg
Source§fn from(e: ArgCaptured) -> FnArg
fn from(e: ArgCaptured) -> FnArg
Converts to this type from the input type.
Source§impl Hash for ArgCaptured
impl Hash for ArgCaptured
Source§impl PartialEq for ArgCaptured
impl PartialEq for ArgCaptured
Source§impl ToTokens for ArgCaptured
impl ToTokens for ArgCaptured
impl Eq for ArgCaptured
impl StructuralPartialEq for ArgCaptured
Auto Trait Implementations§
impl Freeze for ArgCaptured
impl RefUnwindSafe for ArgCaptured
impl !Send for ArgCaptured
impl !Sync for ArgCaptured
impl Unpin for ArgCaptured
impl UnwindSafe for ArgCaptured
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Spanned for Twhere
T: ToTokens,
impl<T> Spanned for Twhere
T: ToTokens,
Source§fn span(&self) -> Span
fn span(&self) -> Span
Returns a
Span
covering the complete contents of this syntax tree
node, or Span::call_site()
if this node is empty.