pub struct Sense<'db> {
pub part_of_speech: PartOfSpeech,
pub gloss: String,
pub synonyms: Vec<SenseRef>,
pub pointers: Vec<PointerRef<'db>>,
}
Expand description
Senses are different definitions or etymologies for a word.
The senses are also arranged by part of speech. For example, “bank” has many senses, one is a verb that means “to count on something”, another is a noun that refers to the financial institution.
A list of these can be accessed by senses()
Fields§
§part_of_speech: PartOfSpeech
The part of speech that this sense has
gloss: String
A short dictionary-like text written in prose that describes the word
synonyms: Vec<SenseRef>
Ways to write this sense, one of which is
probably the word you passed to Database::senses()
pointers: Vec<PointerRef<'db>>
Words that are somehow related to this sense.
Trait Implementations§
Auto Trait Implementations§
impl<'db> Freeze for Sense<'db>
impl<'db> RefUnwindSafe for Sense<'db>
impl<'db> Send for Sense<'db>
impl<'db> Sync for Sense<'db>
impl<'db> Unpin for Sense<'db>
impl<'db> UnwindSafe for Sense<'db>
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