AssocDef in rustc_public_bridge::bridge - Rust
Description: API documentation for the Rust `AssocDef` trait in crate `rustc_public_bridge`.

Skip to main content

## AssocDef

# Trait AssocDef

Source

    pub trait AssocDef<B: Bridge> {
        // Required method
        fn new(did: B::DefId) -> Self;
    }

## Required Methods§

Source

#### fn new(did: B::DefId) -> Self

## Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

## Implementors§