pub struct RuleSet(/* private fields */);Expand description
Sets of enabled or disabled rules.
Implementations§
Source§impl RuleSet
impl RuleSet
pub const EMPTY: Self
pub fn all() -> Self
pub const fn from_rules(rules: &[Rule]) -> Self
pub const fn contains(&self, rule: Rule) -> bool
pub fn insert(&mut self, rule: Rule)
pub fn remove(&mut self, rule: Rule)
pub fn set(&mut self, rule: Rule, enabled: bool)
pub fn union(&self, other: &Self) -> Self
pub fn subtract(&self, other: &Self) -> Self
pub fn iter(&self) -> impl Iterator<Item = Rule> + '_
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
impl Copy for RuleSet
impl Eq for RuleSet
Source§impl FromIterator<Rule> for RuleSet
impl FromIterator<Rule> for RuleSet
impl StructuralPartialEq for RuleSet
Auto Trait Implementations§
impl Freeze for RuleSet
impl RefUnwindSafe for RuleSet
impl Send for RuleSet
impl Sync for RuleSet
impl Unpin for RuleSet
impl UnsafeUnpin for RuleSet
impl UnwindSafe for RuleSet
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