Struct TypeGenerics

struct TypeGenerics<'a>(_)

Returned by Generics::split_for_impl.

Implementations

impl<'a> TypeGenerics<'a>

fn as_turbofish(self: &Self) -> Turbofish<'a>

Turn a type's generics like <X, Y> into a turbofish like ::<X, Y>.

impl<'a> Clone for TypeGenerics<'a>

fn clone(self: &Self) -> Self

impl<'a> Debug for TypeGenerics<'a>

fn fmt(self: &Self, formatter: &mut Formatter<'_>) -> Result

impl<'a> Eq for TypeGenerics<'a>

impl<'a> Freeze for TypeGenerics<'a>

impl<'a> Hash for TypeGenerics<'a>

fn hash<H: Hasher>(self: &Self, state: &mut H)

impl<'a> PartialEq for TypeGenerics<'a>

fn eq(self: &Self, other: &Self) -> bool

impl<'a> RefUnwindSafe for TypeGenerics<'a>

impl<'a> Send for TypeGenerics<'a>

impl<'a> Sync for TypeGenerics<'a>

impl<'a> ToTokens for TypeGenerics<'a>

fn to_tokens(self: &Self, tokens: &mut TokenStream)

impl<'a> Unpin for TypeGenerics<'a>

impl<'a> UnsafeUnpin for TypeGenerics<'a>

impl<'a> UnwindSafe for TypeGenerics<'a>

impl<T> Any for TypeGenerics<'a>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for TypeGenerics<'a>

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for TypeGenerics<'a>

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for TypeGenerics<'a>

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for TypeGenerics<'a>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Spanned for TypeGenerics<'a>

fn span(self: &Self) -> Span

impl<T> ToOwned for TypeGenerics<'a>

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T, U> Into for TypeGenerics<'a>

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for TypeGenerics<'a>

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for TypeGenerics<'a>

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>