Struct jpreprocess_core::pronunciation::Pronunciation
source · pub struct Pronunciation(_);
Implementations§
source§impl Pronunciation
impl Pronunciation
pub fn new(moras: Vec<Mora>) -> Self
pub fn new_simple(moras: Vec<MoraEnum>) -> Self
pub fn mora_size(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn is_question(&self) -> bool
pub fn is_touten(&self) -> bool
pub fn starts_with_long(&self) -> bool
pub fn is_mora_convertable(s: &str) -> bool
pub fn iter_mut(&mut self) -> IterMut<'_, Mora>
pub fn transfer_from(&mut self, from: &Self)
pub fn mora_enums(&self) -> Vec<MoraEnum>
pub fn first_mut(&mut self) -> Option<&mut Mora>
pub fn last(&self) -> Option<&Mora>
pub fn to_pure_string(&self) -> String
pub fn moras(&self) -> &[Mora]
Trait Implementations§
source§impl Clone for Pronunciation
impl Clone for Pronunciation
source§fn clone(&self) -> Pronunciation
fn clone(&self) -> Pronunciation
Returns a copy 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 moresource§impl Debug for Pronunciation
impl Debug for Pronunciation
source§impl Default for Pronunciation
impl Default for Pronunciation
source§fn default() -> Pronunciation
fn default() -> Pronunciation
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for Pronunciation
impl<'de> Deserialize<'de> for Pronunciation
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 Display for Pronunciation
impl Display for Pronunciation
source§impl FromStr for Pronunciation
impl FromStr for Pronunciation
source§impl PartialEq<Pronunciation> for Pronunciation
impl PartialEq<Pronunciation> for Pronunciation
source§fn eq(&self, other: &Pronunciation) -> bool
fn eq(&self, other: &Pronunciation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Pronunciation
impl Serialize for Pronunciation
impl Eq for Pronunciation
impl StructuralEq for Pronunciation
impl StructuralPartialEq for Pronunciation
Auto Trait Implementations§
impl RefUnwindSafe for Pronunciation
impl Send for Pronunciation
impl Sync for Pronunciation
impl Unpin for Pronunciation
impl UnwindSafe for Pronunciation
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