Enum cmudict_core::Symbol [−][src]
pub enum Symbol { AA(Stress), AE(Stress), AH(Stress), AO(Stress), AW(Stress), AY(Stress), B, CH, D, DH, EH(Stress), ER(Stress), EY(Stress), F, G, HH, IH(Stress), IY(Stress), JH, K, L, M, N, NG, OW(Stress), OY(Stress), P, R, S, SH, T, TH, UH(Stress), UW(Stress), V, W, Y, Z, ZH, }
Represents a single sound
Variants
AA(Stress)
AE(Stress)
AH(Stress)
AO(Stress)
AW(Stress)
AY(Stress)
B
CH
D
DH
EH(Stress)
ER(Stress)
EY(Stress)
F
G
HH
IH(Stress)
IY(Stress)
JH
K
L
M
N
NG
OW(Stress)
OY(Stress)
P
R
S
SH
T
TH
UH(Stress)
UW(Stress)
V
W
Y
Z
ZH
Methods
impl Symbol
[src]
impl Symbol
pub fn is_primary(&self) -> bool
[src]
pub fn is_primary(&self) -> bool
Returns true
if the symbol has primary stress
pub fn is_secondary(&self) -> bool
[src]
pub fn is_secondary(&self) -> bool
Returns true
if the symbol has secondary stress
pub fn is_unstressed(&self) -> bool
[src]
pub fn is_unstressed(&self) -> bool
Returns true
if the symbol has no stress
pub fn is_syllable(&self) -> bool
[src]
pub fn is_syllable(&self) -> bool
Returns true
if the symbol is stressed in some way
Trait Implementations
impl Debug for Symbol
[src]
impl Debug for Symbol
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 PartialEq for Symbol
[src]
impl PartialEq for Symbol
fn eq(&self, other: &Symbol) -> bool
[src]
fn eq(&self, other: &Symbol) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Symbol) -> bool
[src]
fn ne(&self, other: &Symbol) -> bool
This method tests for !=
.
impl Clone for Symbol
[src]
impl Clone for Symbol
fn clone(&self) -> Symbol
[src]
fn clone(&self) -> Symbol
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 Display for Symbol
[src]
impl Display for Symbol
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 FromStr for Symbol
[src]
impl FromStr for Symbol