pub fn fmt(&self, fmt: &mut Formatter) -> fmt::Result {
        if let Some(ref vis) = self.vis {
            write!(fmt, "{} ", vis)?;
        }

        write!(fmt, "mod {}", self.name)?;
        fmt.block(|fmt| self.scope.fmt(fmt))
    }
/// Formats the module using the given formatter.
Formats the module using the given formatter.
Formats the module using the given formatter .
pub fn fmt(&self, fmt: &mut Formatter) -> fmt::Result {
        if let Some(ref vis) = self.vis {
            write!(fmt, "{} ", vis)?;
        }
        write!(fmt, "mod {}", self.name)?;
        fmt.block(|fmt| self.scope.fmt(fmt))
    }
pub fn fmt ( & self , fmt : & mut Formatter ) -> fmt :: Result { if let Some ( ref vis ) = self . vis { write ! ( fmt " " vis ) ? ; } write ! ( fmt " " self name ) ? ; fmt . block ( | fmt | self . scope . fmt ( fmt ) ) }
Formats the module using the given formatter.
Formats the module using the given formatter .
&self
fmt
&mut Formatter
&self
fmt
&mut Formatter