pub struct NJDNode { /* private fields */ }

Implementations§

source§

impl NJDNode

source

pub fn new_single(s: &str) -> Self

source

pub fn load_csv(s: &str) -> Vec<Self>

source

pub fn load_str(string: &str, details: &[&str]) -> Vec<Self>

source

pub fn load(string: &str, entry: WordEntry) -> Vec<Self>

source

pub fn transfer_from(&mut self, node: &mut Self)

source

pub fn get_chain_flag(&self) -> Option<bool>

source

pub fn set_chain_flag(&mut self, chain_flag: bool)

source

pub fn get_chain_rule(&self, pos: &POS) -> Option<&ChainRule>

source

pub fn unset_chain_rule(&mut self)

source

pub fn get_pos(&self) -> &POS

source

pub fn get_pos_mut(&mut self) -> &mut POS

source

pub fn is_renyou(&self) -> bool

source

pub fn get_ctype(&self) -> &CType

source

pub fn get_cform(&self) -> &CForm

source

pub fn get_string(&self) -> &str

source

pub fn replace_string(&mut self, new_string: &str)

source

pub fn ensure_orig(&mut self)

source

pub fn get_read(&self) -> Option<&str>

source

pub fn set_read(&mut self, read: &str)

source

pub fn unset_read(&mut self)

source

pub fn get_acc(&self) -> i32

source

pub fn set_acc(&mut self, acc: i32)

source

pub fn get_mora_size(&self) -> i32

source

pub fn set_mora_size(&mut self, mora_size: i32)

source

pub fn add_mora_size(&mut self, mora_size: i32)

source

pub fn set_pron_by_str(&mut self, pron: &str)

source

pub fn get_pron(&self) -> &Pronunciation

source

pub fn get_pron_mut(&mut self) -> &mut Pronunciation

source

pub fn set_pron(&mut self, pron: Pronunciation)

source

pub fn unset_pron(&mut self)

Trait Implementations§

source§

impl Clone for NJDNode

source§

fn clone(&self) -> NJDNode

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for NJDNode

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for NJDNode

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq<NJDNode> for NJDNode

source§

fn eq(&self, other: &NJDNode) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for NJDNode

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for Twhere T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.