pub enum LineLength {
Monometer,
Dimeter,
Trimeter,
Tetrameter,
Pentameter,
Hexameter,
Heptameter,
Octameter,
Nonameter,
Decameter,
}Expand description
Enum representing the number of feet per line.
Variants§
Monometer
Dimeter
Trimeter
Tetrameter
Pentameter
Hexameter
Heptameter
Octameter
Nonameter
Decameter
Trait Implementations§
Source§impl Clone for LineLength
impl Clone for LineLength
Source§fn clone(&self) -> LineLength
fn clone(&self) -> LineLength
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LineLength
impl Debug for LineLength
Source§impl Default for LineLength
impl Default for LineLength
Source§fn default() -> LineLength
fn default() -> LineLength
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LineLength
impl<'de> Deserialize<'de> for LineLength
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for LineLength
impl Hash for LineLength
Source§impl ItemFeature for LineLength
impl ItemFeature for LineLength
Source§impl PartialEq for LineLength
impl PartialEq for LineLength
Source§impl RandConstructEnum for LineLength
impl RandConstructEnum for LineLength
fn all_variants() -> Vec<Self>
fn default_weight(&self) -> f64
fn create_default_probability_map() -> Arc<HashMap<LineLength, f64>>
fn random_variant() -> Self
fn uniform_variant() -> Self
fn random_enum_value_with_rng<RNG>(rng: &mut RNG) -> Self
Source§impl RandConstructEnumWithEnv for LineLength
impl RandConstructEnumWithEnv for LineLength
fn random_with_env<P>() -> Selfwhere
P: RandConstructProbabilityMapProvider<Self>,
fn random_uniform_with_env<P>() -> Selfwhere
P: RandConstructProbabilityMapProvider<Self>,
fn sample_from_provider<P, RNG>(rng: &mut RNG) -> Self
fn sample_uniformly_from_provider<P, RNG>(rng: &mut RNG) -> Self
Source§impl Serialize for LineLength
impl Serialize for LineLength
impl Copy for LineLength
impl Eq for LineLength
impl StructuralPartialEq for LineLength
Auto Trait Implementations§
impl Freeze for LineLength
impl RefUnwindSafe for LineLength
impl Send for LineLength
impl Sync for LineLength
impl Unpin for LineLength
impl UnwindSafe for LineLength
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more