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§
Required Methods§
fn new_min<const SHALLOW: bool>( find: &FindMin<'_, '_, Self, SHALLOW>, def_id: LocalDefId, ) -> Self
Provided Methods§
fn of_impl<const SHALLOW: bool>( def_id: LocalDefId, 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", so this trait is not object safe.