pub fn to_doc(&self) -> Doc<'_, BoxDoc<'_, ()>> {
        match self {
            Item::Declaration(declaration) => declaration.to_doc(),
            Item::Definition(definition) => definition.to_doc(),
        }
    }
/// Convert the item into a pretty-printable document
Convert the item into a pretty-printable document
Convert the item into a pretty - printable document
pub fn to_doc(&self) -> Doc<'_, BoxDoc<'_, ()>> {
        match self {
            Item::Declaration(declaration) => declaration.to_doc(),
            Item::Definition(definition) => definition.to_doc(),
        }
    }
pub fn to_doc ( & self ) -> Doc < ' _ , BoxDoc < ' _ , ( ) > > { match self { Item :: Declaration ( declaration ) => declaration . to_doc ( ) , Item :: Definition ( definition ) => definition . to_doc ( ) , } }
Convert the item into a pretty-printable document
Convert the item into a pretty - printable document
&self