Struct syn::ArgSelfRef [−][src]
pub struct ArgSelfRef { pub and_token: And, pub lifetime: Option<Lifetime>, pub mutability: Option<Mut>, pub self_token: Self_, }
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
impl ToTokens for ArgSelfRef
[src]
impl ToTokens for ArgSelfRef
fn to_tokens(&self, tokens: &mut Tokens)
[src]
fn to_tokens(&self, tokens: &mut Tokens)
Write self
to the given Tokens
. Read more
fn into_tokens(self) -> Tokens
[src]
fn into_tokens(self) -> Tokens
Convert self
directly into a Tokens
object. Read more
impl Clone for ArgSelfRef
[src]
impl Clone for ArgSelfRef
fn clone(&self) -> ArgSelfRef
[src]
fn clone(&self) -> ArgSelfRef
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl From<ArgSelfRef> for FnArg
[src]
impl From<ArgSelfRef> for FnArg
fn from(e: ArgSelfRef) -> FnArg
[src]
fn from(e: ArgSelfRef) -> FnArg
Performs the conversion.
Auto Trait Implementations
impl !Send for ArgSelfRef
impl !Send for ArgSelfRef
impl !Sync for ArgSelfRef
impl !Sync for ArgSelfRef