Struct syn::TypeGenerics
source · pub struct TypeGenerics<'a>(_);
Expand description
Returned by Generics::split_for_impl
.
This type is available if Syn is built with the "derive"
or "full"
feature and the "printing"
feature.
Implementations§
source§impl<'a> TypeGenerics<'a>
impl<'a> TypeGenerics<'a>
sourcepub fn as_turbofish(&self) -> Turbofish<'_>
pub fn as_turbofish(&self) -> Turbofish<'_>
Turn a type’s generics like <X, Y>
into a turbofish like ::<X, Y>
.
This method is available if Syn is built with the "derive"
or
"full"
feature and the "printing"
feature.
Trait Implementations§
source§impl<'a> Clone for TypeGenerics<'a>
impl<'a> Clone for TypeGenerics<'a>
source§fn clone(&self) -> TypeGenerics<'a>
fn clone(&self) -> TypeGenerics<'a>
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 more