Struct futures_await_syn::TyParam
[−]
[src]
pub struct TyParam { pub attrs: Vec<Attribute>, pub ident: Ident, pub colon_token: Option<Colon>, pub bounds: Delimited<TyParamBound, Add>, pub eq_token: Option<Eq>, pub default: Option<Ty>, }
A generic type parameter, e.g. T: Into<String>
.
Fields
attrs: Vec<Attribute>
ident: Ident
colon_token: Option<Colon>
bounds: Delimited<TyParamBound, Add>
eq_token: Option<Eq>
default: Option<Ty>
Trait Implementations
impl Synom for TyParam
[src]
impl ToTokens for TyParam
[src]
fn to_tokens(&self, tokens: &mut Tokens)
[src]
Write self
to the given Tokens
. Read more
fn into_tokens(self) -> Tokens
[src]
Convert self
directly into a Tokens
object. Read more
impl Clone for TyParam
[src]
fn clone(&self) -> TyParam
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more