pub struct LyricalMeter { /* private fields */ }Implementations§
Source§impl LyricalMeter
impl LyricalMeter
pub fn random_with_env<ENV>() -> Self
pub fn random_uniform_with_env<ENV>() -> Self
Source§impl LyricalMeter
impl LyricalMeter
Sourcepub fn builder() -> LyricalMeterBuilder
pub fn builder() -> LyricalMeterBuilder
Starts building a LyricalMeter using the builder pattern without any initial arguments.
Sourcepub fn foot(&self) -> &MetricalFoot
pub fn foot(&self) -> &MetricalFoot
Returns a reference to the metrical foot.
Sourcepub fn length(&self) -> Option<&LineLength>
pub fn length(&self) -> Option<&LineLength>
Returns an optional reference to the line length, if it exists.
Sourcepub fn set_foot(&mut self, foot: MetricalFoot) -> &mut Self
pub fn set_foot(&mut self, foot: MetricalFoot) -> &mut Self
Sets the metrical foot.
Sourcepub fn set_length(&mut self, length: Option<LineLength>) -> &mut Self
pub fn set_length(&mut self, length: Option<LineLength>) -> &mut Self
Sets the line length.
Trait Implementations§
Source§impl Clone for LyricalMeter
impl Clone for LyricalMeter
Source§fn clone(&self) -> LyricalMeter
fn clone(&self) -> LyricalMeter
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 LyricalMeter
impl Debug for LyricalMeter
Source§impl Default for LyricalMeter
impl Default for LyricalMeter
Source§fn default() -> LyricalMeter
fn default() -> LyricalMeter
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LyricalMeter
impl<'de> Deserialize<'de> for LyricalMeter
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 Display for LyricalMeter
impl Display for LyricalMeter
Source§impl Hash for LyricalMeter
impl Hash for LyricalMeter
Source§impl ItemWithFeatures for LyricalMeter
impl ItemWithFeatures for LyricalMeter
Source§impl PartialEq for LyricalMeter
impl PartialEq for LyricalMeter
Source§impl RandConstruct for LyricalMeter
impl RandConstruct for LyricalMeter
Source§impl Serialize for LyricalMeter
impl Serialize for LyricalMeter
impl Eq for LyricalMeter
impl StructuralPartialEq for LyricalMeter
Auto Trait Implementations§
impl Freeze for LyricalMeter
impl RefUnwindSafe for LyricalMeter
impl Send for LyricalMeter
impl Sync for LyricalMeter
impl Unpin for LyricalMeter
impl UnwindSafe for LyricalMeter
Blanket Implementations§
Source§impl<T> AIDescriptor for Twhere
T: ItemWithFeatures,
impl<T> AIDescriptor for Twhere
T: ItemWithFeatures,
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