pub fn show_files(&self, out: &mut impl Write) -> fmt::Result {
        let mut nextpos = Some(self);
        while let Some(pos) = nextpos {
            write!(
                out,
                "\n{0:lnw$} {file} {row}:{col}  {cause}",
                "",
                lnw = self.line_no.to_string().len(),
                file = pos.file.name(),
                row = pos.line_no,
                col = pos.line_pos,
                cause = if pos.file.imported_from().is_some() {
                    "import"
                } else {
                    "root stylesheet"
                },
            )?;
            nextpos = pos.file.imported_from();
        }
        Ok(())
    }
/// Show the file name of this pos and where it was imported from.
Show the file name of this pos and where it was imported from.
Show the file name of this pos and where it was imported from .
pub fn show_files(&self, out: &mut impl Write) -> fmt::Result {
        let mut nextpos = Some(self);
        while let Some(pos) = nextpos {
            write!(
                out,
                "\n{0:lnw$} {file} {row}:{col}  {cause}",
                "",
                lnw = self.line_no.to_string().len(),
                file = pos.file.name(),
                row = pos.line_no,
                col = pos.line_pos,
                cause = if pos.file.imported_from().is_some() {
                    "import"
                } else {
                    "root stylesheet"
                },
            )?;
            nextpos = pos.file.imported_from();
        }
        Ok(())
    }
pub fn show_files ( & self , out : & mut impl Write ) -> fmt :: Result { let mut nextpos = Some ( self ) ; while let Some ( pos ) = nextpos { write ! ( out " \n " " " lnw self line_no to_string ( ) len ( ) file pos file name ( ) row pos line_no col pos line_pos cause if pos file imported_from ( ) is_some ( ) { " " } else { " " } ) ? ; nextpos = pos . file . imported_from ( ) ; } Ok ( ( ) ) }
Show the file name of this pos and where it was imported from.
Show the file name of this pos and where it was imported from .
&self
out
&mut impl Write