Struct cmudict_core::Rule [−][src]
pub struct Rule { /* fields omitted */ }
Represents the complete pronunciation of a single word in the database
Methods
impl Rule
[src]
impl Rule
pub fn is_monosyllabic(&self) -> bool
[src]
pub fn is_monosyllabic(&self) -> bool
Returns true
if the Rule has only one stressed Symbol
pub fn pronunciation(&self) -> &[Symbol]
[src]
pub fn pronunciation(&self) -> &[Symbol]
Retuns a slice of the Symbols for the word
pub fn label(&self) -> &str
[src]
pub fn label(&self) -> &str
Returns the word
Trait Implementations
impl Debug for Rule
[src]
impl Debug for Rule
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Rule
[src]
impl Clone for Rule
fn clone(&self) -> Rule
[src]
fn clone(&self) -> Rule
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for Rule
[src]
impl PartialEq for Rule
fn eq(&self, other: &Rule) -> bool
[src]
fn eq(&self, other: &Rule) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rule) -> bool
[src]
fn ne(&self, other: &Rule) -> bool
This method tests for !=
.
impl FromStr for Rule
[src]
impl FromStr for Rule