Struct opencorpora::Restriction
source · [−]pub struct Restriction {
pub kind: RestrictionKind,
pub auto: usize,
pub left_scope: RestrictionScope,
pub left_grammeme: Option<Rc<Grammeme>>,
pub right_scope: RestrictionScope,
pub right_grammeme: Option<Rc<Grammeme>>,
}
Expand description
Правило ограничивающие применение граммемы.
Более подробное описание приведено на сайте opencorpora.org.
Fields
kind: RestrictionKind
Тип ограничения (см. документацию типа RestrictionKind
)
auto: usize
Приоритет (?)
left_scope: RestrictionScope
Область применения слева
left_grammeme: Option<Rc<Grammeme>>
Граммема слева. Для некоторых правил значение справа может отсутствовать.
right_scope: RestrictionScope
Область применения справа
right_grammeme: Option<Rc<Grammeme>>
Граммема справа. Для некоторых правил значение справа может отсутствовать.
Trait Implementations
sourceimpl Clone for Restriction
impl Clone for Restriction
sourcefn clone(&self) -> Restriction
fn clone(&self) -> Restriction
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Restriction
impl Debug for Restriction
Auto Trait Implementations
impl RefUnwindSafe for Restriction
impl !Send for Restriction
impl !Sync for Restriction
impl Unpin for Restriction
impl UnwindSafe for Restriction
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more