crate::ix!();
#[derive(Default)]
pub struct LyricalMeterBuilder {
foot: MetricalFoot,
length: Option<LineLength>,
}
impl LyricalMeterBuilder {
pub fn foot(mut self, foot: MetricalFoot) -> Self {
self.foot = foot;
self
}
pub fn length(mut self, length: LineLength) -> Self {
self.length = Some(length);
self
}
pub fn build(self) -> LyricalMeter {
let mut x = LyricalMeter::default();
x.set_foot(self.foot);
x.set_length(self.length);
x
}
}