pub struct RoadRulebook<'a> { /* private fields */ }
Expand description
Interface for querying “rules of the road”. This interface provides access to static information about a road network (i.e., information determined prior to the beginning of a simulation). Some rule types may refer to additional dynamic information which will be provided by other interfaces.
Implementations§
Source§impl<'a> RoadRulebook<'a>
impl<'a> RoadRulebook<'a>
Sourcepub fn get_discrete_value_rule(&self, rule_id: &String) -> DiscreteValueRule
pub fn get_discrete_value_rule(&self, rule_id: &String) -> DiscreteValueRule
Sourcepub fn get_range_value_rule(&self, rule_id: &String) -> RangeValueRule
pub fn get_range_value_rule(&self, rule_id: &String) -> RangeValueRule
Sourcepub fn rules(&self) -> QueryResults
pub fn rules(&self) -> QueryResults
Returns all the rules in the road rulebook.
§Return
A QueryResults containing all the rules in the road rulebook.
pub fn find_rules( &self, ranges: &Vec<LaneSRange>, tolerance: f64, ) -> QueryResults
Auto Trait Implementations§
impl<'a> Freeze for RoadRulebook<'a>
impl<'a> RefUnwindSafe for RoadRulebook<'a>
impl<'a> !Send for RoadRulebook<'a>
impl<'a> !Sync for RoadRulebook<'a>
impl<'a> Unpin for RoadRulebook<'a>
impl<'a> UnwindSafe for RoadRulebook<'a>
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