[−][src]Struct ejdict_rs::Word
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]
fn deserialize<__D>(
__deserializer: __D
) -> Result<Word, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<Word, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl Eq for Word
[src]
impl From<(Vec<String>, String)> for Word
[src]
impl Ord for Word
[src]
fn cmp(&self, other: &Word) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<Word> for Word
[src]
impl PartialOrd<Word> for Word
[src]
fn partial_cmp(&self, other: &Word) -> Option<Ordering>
[src]
fn lt(&self, other: &Word) -> bool
[src]
fn le(&self, other: &Word) -> bool
[src]
fn gt(&self, other: &Word) -> bool
[src]
fn ge(&self, other: &Word) -> bool
[src]
impl Serialize for Word
[src]
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,