pub struct RangeValueRule { /* private fields */ }
Expand description
§Rule
A Rule may have multiple states that affect agent behavior while it is driving through the rule’s zone. The possible states of a Rule must be semantically coherent. The current state of a Rule is given by a [RuleStateProvider]. States can be:
- range based (RangeValueRule).
- discrete (DiscreteValueRule).
§RangeValueRule
Ranges describe a numeric range based rule. Ranges are closed and continuous, defined by a minimum and maximum quantity. When only one extreme is formally defined, the other should take a semantically correct value. For example, if a speed limit only specifies a maximum value, the minimum value is typically zero.
Implementations§
Source§impl RangeValueRule
impl RangeValueRule
Auto Trait Implementations§
impl Freeze for RangeValueRule
impl RefUnwindSafe for RangeValueRule
impl !Send for RangeValueRule
impl !Sync for RangeValueRule
impl Unpin for RangeValueRule
impl UnwindSafe for RangeValueRule
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