Struct cmudict_fast::Rule[][src]

pub struct Rule { /* fields omitted */ }

Represents the complete pronunciation of a single word in the database


impl Rule[src]

pub fn is_monosyllabic(&self) -> bool[src]

Returns true if the Rule has only one stressed Symbol

pub fn pronunciation(&self) -> &[Symbol][src]

Retuns a slice of the Symbols for the word

pub fn label(&self) -> &str[src]

Returns the word

Trait Implementations

impl Clone for Rule[src]

impl Debug for Rule[src]

impl FromStr for Rule[src]

type Err = ParseError

The associated error which can be returned from parsing.

impl PartialEq<Rule> for Rule[src]

impl StructuralPartialEq for Rule[src]

Auto Trait Implementations

impl RefUnwindSafe for Rule

impl Send for Rule

impl Sync for Rule

impl Unpin for Rule

impl UnwindSafe for Rule

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.