pub struct ArgSelfRef {
pub and_token: And,
pub lifetime: Option<Lifetime>,
pub mutability: Option<Mut>,
pub self_token: Self_,
}
Expand description
Self captured by reference in a function signature: &self
or &mut self
.
This type is available if Syn is built with the "full"
feature.
Fields§
§and_token: And
§lifetime: Option<Lifetime>
§mutability: Option<Mut>
§self_token: Self_
Trait Implementations§
Source§impl Clone for ArgSelfRef
impl Clone for ArgSelfRef
Source§fn clone(&self) -> ArgSelfRef
fn clone(&self) -> ArgSelfRef
Returns a copy 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 ArgSelfRef
impl Debug for ArgSelfRef
Source§impl From<ArgSelfRef> for FnArg
impl From<ArgSelfRef> for FnArg
Source§fn from(e: ArgSelfRef) -> FnArg
fn from(e: ArgSelfRef) -> FnArg
Converts to this type from the input type.
Source§impl Hash for ArgSelfRef
impl Hash for ArgSelfRef
Source§impl PartialEq for ArgSelfRef
impl PartialEq for ArgSelfRef
Source§impl ToTokens for ArgSelfRef
impl ToTokens for ArgSelfRef
impl Eq for ArgSelfRef
impl StructuralPartialEq for ArgSelfRef
Auto Trait Implementations§
impl Freeze for ArgSelfRef
impl RefUnwindSafe for ArgSelfRef
impl !Send for ArgSelfRef
impl !Sync for ArgSelfRef
impl Unpin for ArgSelfRef
impl UnwindSafe for ArgSelfRef
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.