Trait hir::HasVisibility

source ·
pub trait HasVisibility {
    // Required method
    fn visibility(&self, db: &dyn HirDatabase) -> Visibility;

    // Provided method
    fn is_visible_from(&self, db: &dyn HirDatabase, module: Module) -> bool { ... }
}

Required Methods§

source

fn visibility(&self, db: &dyn HirDatabase) -> Visibility

Provided Methods§

source

fn is_visible_from(&self, db: &dyn HirDatabase, module: Module) -> bool

Implementors§