GenericsOf in rustc_trait_selection::infer::canonical::ir::inherent - Rust
Description: API documentation for the Rust `GenericsOf` trait in crate `rustc_trait_selection`.

Skip to main content

## GenericsOf

# Trait GenericsOf

Source

    pub trait GenericsOf<I>where
        I: Interner<GenericsOf = Self>,{
        // Required method
        fn count(&self) -> usize;
    }

## Required Methods§

Source

#### fn count(&self) -> usize

## Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

## Implementations on Foreign Types§

Source§

### impl<'tcx> GenericsOf<TyCtxt<'tcx>> for &'tcx Generics

Source§

#### fn count(&self) -> usize

## Implementors§