#[non_exhaustive]pub struct Sample<'a> {
pub word: &'a str,
pub pos: Option<&'a str>,
}Expand description
Образец своего слова: словарное слово в той же форме, что и свое слово (обычно в начальной), и часть речи UD, если у образца есть лексемы разных частей речи («печь» - NOUN и VERB)
Создается из слова ("геймер".into()) или пары «слово, часть речи» (("печь", "VERB").into())
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.word: &'a strСловарное слово
pos: Option<&'a str>Часть речи UD ("VERB"): нужна, если у образца лексемы разных частей речи
Trait Implementations§
impl<'a> Copy for Sample<'a>
impl<'a> Eq for Sample<'a>
impl<'a> StructuralPartialEq for Sample<'a>
Auto Trait Implementations§
impl<'a> Freeze for Sample<'a>
impl<'a> RefUnwindSafe for Sample<'a>
impl<'a> Send for Sample<'a>
impl<'a> Sync for Sample<'a>
impl<'a> Unpin for Sample<'a>
impl<'a> UnsafeUnpin for Sample<'a>
impl<'a> UnwindSafe for Sample<'a>
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