pub struct AccentPhrase {
pub words: Vec<Word>,
/* private fields */
}
Fields§
§words: Vec<Word>
Implementations§
Source§impl AccentPhrase
impl AccentPhrase
pub fn new(start_node: &NJDNode) -> Self
pub fn to_e(&self, is_prev_pause: Option<bool>) -> AccentPhrasePrevNext
pub fn to_f( &self, accent_phrase_count_in_breath_group: usize, accent_phrase_index_in_breath_group: usize, mora_count_in_breath_group: usize, mora_index_in_breath_group: usize, ) -> AccentPhraseCurrent
pub fn to_g(&self, is_next_pause: Option<bool>) -> AccentPhrasePrevNext
pub fn generate_mora_a(&self) -> Vec<Mora>
pub fn count_mora(&self) -> usize
Trait Implementations§
Source§impl Clone for AccentPhrase
impl Clone for AccentPhrase
Source§fn clone(&self) -> AccentPhrase
fn clone(&self) -> AccentPhrase
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for AccentPhrase
impl RefUnwindSafe for AccentPhrase
impl Send for AccentPhrase
impl Sync for AccentPhrase
impl Unpin for AccentPhrase
impl UnwindSafe for AccentPhrase
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more