rustc_privacy

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,
        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, tcx: TyCtxt<'_>, effective_visibilities: &EffectiveVisibilities, ) -> Self

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

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

source§

impl VisibilityLike for EffectiveVisibility

source§

const MAX: Self = _

source§

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

Implementors§