maliput::api::rules

Trait RuleState

Source
pub trait RuleState {
    // Required method
    fn get_rule_state(&self) -> &RuleStateBase;

    // Provided methods
    fn severity(&self) -> i32 { ... }
    fn related_rules(&self) -> HashMap<&String, &Vec<String>> { ... }
    fn related_unique_ids(&self) -> HashMap<&String, &Vec<String>> { ... }
}
Expand description

Defines the interface for a rule state.

§To implement by the trait user.

  • get_rule_state - Returns the base state of the rule. To be implemented by the concrete rule state.

Required Methods§

Source

fn get_rule_state(&self) -> &RuleStateBase

Returns the base state of the rule. To be implemented by the concrete rule state.

Provided Methods§

Source

fn severity(&self) -> i32

Returns the severity of the rule state.

Source

fn related_rules(&self) -> HashMap<&String, &Vec<String>>

Returns a map of related unique ids. The key is the group name and the value is a vector of unique ids.

Source

fn related_unique_ids(&self) -> HashMap<&String, &Vec<String>>

Returns a map of related unique ids. The key is the group name and the value is a vector of unique ids.

Implementors§