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 ArgSelfReffn 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) -> TokensConvert self directly into a Tokens object. Read more
impl Clone for ArgSelfRef[src]
impl Clone for ArgSelfReffn clone(&self) -> ArgSelfRef[src]
fn clone(&self) -> ArgSelfRefReturns 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 FnArgfn from(e: ArgSelfRef) -> FnArg[src]
fn from(e: ArgSelfRef) -> FnArgPerforms the conversion.
Auto Trait Implementations
impl !Send for ArgSelfRef
impl !Send for ArgSelfRefimpl !Sync for ArgSelfRef
impl !Sync for ArgSelfRef