lyrical-meter 0.2.0

A Rust crate for representing and working with various poetic meters.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
crate::ix!();

/// Enum representing the number of feet per line.
#[derive(Default,ItemFeature,RandConstruct,Hash,Debug,Clone,Copy,Serialize,Deserialize,PartialEq,Eq)]
pub enum LineLength {
    #[default]
    #[ai("Each line should have one foot (monometer).")]    Monometer,
    #[ai("Each line should have two feet (dimeter).")]      Dimeter,
    #[ai("Each line should have three feet (trimeter).")]   Trimeter,
    #[ai("Each line should have four feet (tetrameter).")]  Tetrameter,
    #[ai("Each line should have five feet (pentameter).")]  Pentameter,
    #[ai("Each line should have six feet (hexameter).")]    Hexameter,
    #[ai("Each line should have seven feet (heptameter).")] Heptameter,
    #[ai("Each line should have eight feet (octameter).")]  Octameter,
    #[ai("Each line should have nine feet (nonameter).")]   Nonameter,
    #[ai("Each line should have ten feet (decameter).")]    Decameter,
}