Struct syn::TypeGenerics [−][src]
pub struct TypeGenerics<'a>(_);
Returned by Generics::split_for_impl
.
This type is available only if Syn is built with the "derive"
or "full"
feature and the "printing"
feature.
Implementations
impl<'a> TypeGenerics<'a>
[src]
impl<'a> TypeGenerics<'a>
[src]pub fn as_turbofish(&self) -> Turbofish<'_>
[src]
Turn a type’s generics like <X, Y>
into a turbofish like ::<X, Y>
.
This method is available only if Syn is built with the "derive"
or
"full"
feature and the "printing"
feature.
Trait Implementations
impl<'a> Clone for TypeGenerics<'a>
[src]
impl<'a> Clone for TypeGenerics<'a>
[src]fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a> Hash for TypeGenerics<'a>
[src]
impl<'a> Hash for TypeGenerics<'a>
[src]impl<'a> PartialEq<TypeGenerics<'a>> for TypeGenerics<'a>
[src]
impl<'a> PartialEq<TypeGenerics<'a>> for TypeGenerics<'a>
[src]impl<'a> ToTokens for TypeGenerics<'a>
[src]
impl<'a> ToTokens for TypeGenerics<'a>
[src]