use crate::{Declaration, Element};
pub struct Builder<'a> {
declaration: Declaration<'a>,
element: Element<'a>,
}
impl<'a> Builder<'a> {
pub fn new(declaration: Declaration<'a>, element: Element<'a>) -> Self {
Builder {
declaration,
element,
}
}
}
impl<'a> std::fmt::Display for Builder<'a> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{}\n", self.declaration.to_string())?;
write!(f, "{}", self.element.to_string())?;
Ok(())
}
}