[][src]Struct libslide::evaluator_rules::registry::RuleSet

pub struct RuleSet {
    rules: HashMap<RuleName, UnbuiltRule>,
    custom_rules: Vec<UnbuiltRule>,
}

Set of unbuilt rules.

Fields

rules: HashMap<RuleName, UnbuiltRule>custom_rules: Vec<UnbuiltRule>

Implementations

impl RuleSet[src]

pub fn build(&self) -> Result<Vec<Rule>, BuildRuleErrors>[src]

Creates a list of Ruless from the unbuilt rule set.

pub fn remove(&mut self, rule: &RuleName)[src]

Remove a named rule from the rule set.

fn insert_custom<T: Into<UnbuiltRule>>(&mut self, rule: T)[src]

Insert a custom unbuilt rule into the rule set.

fn get_bootstrapping_rules() -> Vec<Rule>[src]

Retrieves a set of rules to be used in bootstrapping other rules.

fn get_boostrap_blacklist() -> HashSet<Option<RuleName>>[src]

Retrieves a set of rules to be excluded from being bootstrapped.

Trait Implementations

impl Default for RuleSet[src]

fn default() -> Self[src]

Constructs the default rule set.

Auto Trait Implementations

impl RefUnwindSafe for RuleSet

impl Send for RuleSet

impl Sync for RuleSet

impl Unpin for RuleSet

impl UnwindSafe for RuleSet

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.