pub struct WordDetails {
pub pos: POS,
pub ctype: CType,
pub cform: CForm,
pub read: Option<String>,
pub pron: Pronunciation,
pub chain_rule: ChainRules,
pub chain_flag: Option<bool>,
}
Fields§
§pos: POS
§ctype: CType
§cform: CForm
§read: Option<String>
§pron: Pronunciation
§chain_rule: ChainRules
§chain_flag: Option<bool>
Implementations§
Source§impl WordDetails
impl WordDetails
pub fn load(details: &[&str]) -> JPreprocessResult<Self>
pub fn extend_splited( &mut self, read: &str, pron: &str, acc_morasize: &str, ) -> JPreprocessResult<()>
pub fn to_str_vec(&self, orig: String) -> [String; 9]
Trait Implementations§
Source§impl Clone for WordDetails
impl Clone for WordDetails
Source§fn clone(&self) -> WordDetails
fn clone(&self) -> WordDetails
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 moreSource§impl Debug for WordDetails
impl Debug for WordDetails
Source§impl Default for WordDetails
impl Default for WordDetails
Source§fn default() -> WordDetails
fn default() -> WordDetails
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WordDetails
impl<'de> Deserialize<'de> for WordDetails
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 WordDetails
impl PartialEq for WordDetails
Source§impl Serialize for WordDetails
impl Serialize for WordDetails
impl StructuralPartialEq for WordDetails
Auto Trait Implementations§
impl Freeze for WordDetails
impl RefUnwindSafe for WordDetails
impl Send for WordDetails
impl Sync for WordDetails
impl Unpin for WordDetails
impl UnwindSafe for WordDetails
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