pub struct Label {
pub phoneme: Phoneme,
pub mora: Option<Mora>,
pub word_prev: Option<Word>,
pub word_curr: Option<Word>,
pub word_next: Option<Word>,
pub accent_phrase_prev: Option<AccentPhrasePrevNext>,
pub accent_phrase_curr: Option<AccentPhraseCurrent>,
pub accent_phrase_next: Option<AccentPhrasePrevNext>,
pub breath_group_prev: Option<BreathGroupPrevNext>,
pub breath_group_curr: Option<BreathGroupCurrent>,
pub breath_group_next: Option<BreathGroupPrevNext>,
pub utterance: Utterance,
}
Expand description
The structure representing a single line of HTS-style full-context label.
The parser from str, and the serializer to String are both implemented.
Fields§
§phoneme: Phoneme
Phoneme
mora: Option<Mora>
A: Mora
word_prev: Option<Word>
B: Previous Word
word_curr: Option<Word>
C: Current Word
word_next: Option<Word>
D: Next Word
accent_phrase_prev: Option<AccentPhrasePrevNext>
E: Previous Accent Phrase
accent_phrase_curr: Option<AccentPhraseCurrent>
F: Current Accent Phrase
accent_phrase_next: Option<AccentPhrasePrevNext>
G: Next Accent Phrase
breath_group_prev: Option<BreathGroupPrevNext>
H: Previous Breath Group
breath_group_curr: Option<BreathGroupCurrent>
I: Current Breath Group
breath_group_next: Option<BreathGroupPrevNext>
J: Next Breath Group
utterance: Utterance
K: Utterance
Trait Implementations§
source§impl<'de> Deserialize<'de> for Label
impl<'de> Deserialize<'de> for Label
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 PartialEq for Label
impl PartialEq for Label
impl Eq for Label
impl StructuralPartialEq for Label
Auto Trait Implementations§
impl Freeze for Label
impl RefUnwindSafe for Label
impl Send for Label
impl Sync for Label
impl Unpin for Label
impl UnwindSafe for Label
Blanket Implementations§
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