pub fn is_public(&self) -> bool {
        let mut current = Some(self);

        while let Some(m) = current.take() {
            if !m.visibility.is_public() {
                return false;
            }

            current = m.parent.as_deref();
        }

        true
    }
/// Test if the module recursively is public.
Test if the module recursively is public.
Test if the module recursively is public .
pub fn is_public(&self) -> bool {
        let mut current = Some(self);
        while let Some(m) = current.take() {
            if !m.visibility.is_public() {
                return false;
            }
            current = m.parent.as_deref();
        }
        true
    }
pub fn is_public ( & self ) -> bool { let mut current = Some ( self ) ; while let Some ( m ) = current . take ( ) { if ! m . visibility . is_public ( ) { return false ; } current = m . parent . as_deref ( ) ; } true }
Test if the module recursively is public.
Test if the module recursively is public .
&self
&self