pub fn to_doc(&self) -> Doc<'_, BoxDoc<'_, ()>> {
        let docs = Doc::concat(
            self.docs
                .iter()
                .map(|doc| doc.to_doc().append(Doc::newline())),
        );

        Doc::nil()
            .append(docs)
            .append(self.label.to_doc())
            .append(Doc::space())
            .append(":")
            .append(Doc::space())
            .append(self.body_ty.to_doc())
            .append(";")
    }
/// Convert the declaration into a pretty-printable document
Convert the declaration into a pretty-printable document
Convert the declaration into a pretty - printable document
pub fn to_doc(&self) -> Doc<'_, BoxDoc<'_, ()>> {
        let docs = Doc::concat(
            self.docs
                .iter()
                .map(|doc| doc.to_doc().append(Doc::newline())),
        );
        Doc::nil()
            .append(docs)
            .append(self.label.to_doc())
            .append(Doc::space())
            .append(":")
            .append(Doc::space())
            .append(self.body_ty.to_doc())
            .append(";")
    }
pub fn to_doc ( & self ) -> Doc < ' _ , BoxDoc < ' _ , ( ) > > { let docs = Doc :: concat ( self . docs . iter ( ) . map ( | doc | doc . to_doc ( ) . append ( Doc :: newline ( ) ) ) , ) ; Doc :: nil ( ) . append ( docs ) . append ( self . label . to_doc ( ) ) . append ( Doc :: space ( ) ) . append ( " " ) . append ( Doc :: space ( ) ) . append ( self . body_ty . to_doc ( ) ) . append ( " " ) }
Convert the declaration into a pretty-printable document
Convert the declaration into a pretty - printable document
&self