Struct cmudict::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 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 FromStr for Rule
[src]
impl FromStr for Rule
type Err = Error
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Rule, Error>
[src]
fn from_str(s: &str) -> Result<Rule, Error>
Parses a string s
to return a value of this type. Read more
impl Debug for Rule
[src]
impl Debug for Rule
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl PartialEq<Rule> for Rule
[src]
impl PartialEq<Rule> for Rule