/// Check if `from` can access `to` with the current visibility.
Check if `from` can access `to` with the current visibility.
Check if ` from ` can access ` to ` with the current visibility .
pub fn is_visible(self, from: &Item, to: &Item) -> bool {
        match self {
            Visibility::Inherited | Visibility::SelfValue => from.is_super_of(to, 1),
            Visibility::Super => from.is_super_of(to, 2),
            Visibility::Public => true,
            Visibility::Crate => true,
        }
    }
pub fn is_visible ( self , from : & Item , to : & Item ) -> bool { match self { Visibility :: Inherited | Visibility :: SelfValue => from . is_super_of ( to , 1 ) , Visibility :: Super => from . is_super_of ( to , 2 ) , Visibility :: Public => true , Visibility :: Crate => true , } }
Check if `from` can access `to` with the current visibility.
Check if ` from ` can access ` to ` with the current visibility .
self
from
&Item
to
&Item