pub struct Dictionary { /* private fields */ }

Implementations

Create a new Dictionary instance. But not read the file data. Use the read_data method to read data file the input file.

Get the count of words.

Get the all right words.

Get the all right words.

Get the last right word at a specific index.

Get the left word at a specific index

Find a word by a keyword.

Find a word by a keyword.

Find a word by a keyword.

Find a word by a keyword.

Read the dictionary from the dictionary file.

Write this dictionary to its dictionary file.

Delete a word.

Add or edit a word. If the left word exists, then update it, and return Ok(false).

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.