[][src]Struct ejdict_rs::Word

pub struct Word { /* fields omitted */ }

This Struct is that holds word translation information. words field is that holds similar English words.

Methods

impl Word[src]

pub fn new(words: Vec<String>, mean: String) -> Word[src]

Construct for Word struct.

pub fn parse_line(line: &str) -> Word[src]

Construct Word structure by parsing line string.

pub fn words(&self) -> &Vec<String>[src]

Get words reference.

pub fn mean(&self) -> &str[src]

Get mean reference.

pub fn matched(&self, pat: &str, mode: &SearchMode) -> Option<&Word>[src]

Checks if this word matches the argument string.

Trait Implementations

impl Clone for Word[src]

impl Debug for Word[src]

impl<'de> Deserialize<'de> for Word[src]

impl Eq for Word[src]

impl From<(Vec<String>, String)> for Word[src]

impl Ord for Word[src]

impl PartialEq<Word> for Word[src]

impl PartialOrd<Word> for Word[src]

impl Serialize for Word[src]

impl StructuralEq for Word[src]

impl StructuralPartialEq for Word[src]

Auto Trait Implementations

impl RefUnwindSafe for Word

impl Send for Word

impl Sync for Word

impl Unpin for Word

impl UnwindSafe for Word

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.