pub(crate) trait VisibilityLike: Sized {
    const MAX: Self;
    const SHALLOW: bool = false;

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

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

Required Associated Constants§

source

const MAX: Self

Provided Associated Constants§

source

const SHALLOW: bool = false

Required Methods§

source

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

Provided Methods§

source

fn of_impl( def_id: LocalDefId, tcx: TyCtxt<'_>, effective_visibilities: &EffectiveVisibilities ) -> Self

Implementations on Foreign Types§

source§

impl VisibilityLike for Visibility

source§

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

source§

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

source§

impl VisibilityLike for Option<EffectiveVisibility>

source§

const MAX: Self = _

source§

const SHALLOW: bool = true

source§

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

Implementors§