Skip to main content

## VisibilityLike

# Trait VisibilityLike

Source

    pub(crate) trait VisibilityLike: Sized {
        const MAX: Self;

        // Required method
        fn new_min<const SHALLOW: bool>(
            find: &FindMin<'_, '_, Self, SHALLOW>,
            def_id: LocalDefId,
        ) -> Self;

        // Provided method
        fn of_impl<const SHALLOW: bool>(
            def_id: LocalDefId,
            of_trait: bool,
            tcx: TyCtxt<'_>,
            effective_visibilities: &EffectiveVisibilities,
        ) -> Self { ... }
    }

## Required Associated Constants§

Source

#### const MAX: Self

## Required Methods§

Source

#### fn new_min<const SHALLOW: bool>( find: &FindMin<'_, '_, Self, SHALLOW>, def_id: LocalDefId, ) -> Self

## Provided Methods§

Source

#### fn of_impl<const SHALLOW: bool>( def_id: LocalDefId, of_trait: bool, tcx: TyCtxt<'_>, effective_visibilities: &EffectiveVisibilities, ) -> Self

## Dyn Compatibility§

This trait is not dyn compatible.

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

## Implementations on Foreign Types§

Source§

### impl VisibilityLike for EffectiveVisibility

Source§

#### const MAX: Self

Source§

#### fn new_min<const SHALLOW: bool>( find: &FindMin<'_, '_, Self, SHALLOW>, def_id: LocalDefId, ) -> Self

Source§

### impl VisibilityLike for Visibility

Source§

#### const MAX: Self = ty::Visibility::Public

Source§

#### fn new_min<const SHALLOW: bool>( find: &FindMin<'_, '_, Self, SHALLOW>, def_id: LocalDefId, ) -> Self

## Implementors§