pub struct NotationGroup {
pub name: String,
pub rules: Vec<NotationRule>,
pub active: bool,
}Expand description
A notation group that bundles related notation rules.
Fields§
§name: StringGroup name
rules: Vec<NotationRule>Rules in this group
active: boolWhether this group is currently active
Implementations§
Source§impl NotationGroup
impl NotationGroup
Sourcepub fn add(&mut self, rule: NotationRule)
pub fn add(&mut self, rule: NotationRule)
Add a rule.
Sourcepub fn deactivate(&mut self)
pub fn deactivate(&mut self)
Deactivate this group.
Sourcepub fn active_rules(&self) -> Vec<&NotationRule>
pub fn active_rules(&self) -> Vec<&NotationRule>
Returns active rules.
Auto Trait Implementations§
impl Freeze for NotationGroup
impl RefUnwindSafe for NotationGroup
impl Send for NotationGroup
impl Sync for NotationGroup
impl Unpin for NotationGroup
impl UnsafeUnpin for NotationGroup
impl UnwindSafe for NotationGroup
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