pub struct PhaseRing { /* private fields */ }Expand description
Defines a ring of phases in a traffic rule system.
A phase ring represents a sequence of phases that a traffic control system cycles through.
Implementations§
Source§impl PhaseRing
impl PhaseRing
Sourcepub fn phases(&self) -> Vec<String>
pub fn phases(&self) -> Vec<String>
Returns the ids of all Phases in the PhaseRing.
§Returns
A vector of strings representing the ids of all Phases in the PhaseRing.
Sourcepub fn get_next_phases(
&self,
id: &String,
) -> Result<Vec<NextPhase>, MaliputError>
pub fn get_next_phases( &self, id: &String, ) -> Result<Vec<NextPhase>, MaliputError>
Auto Trait Implementations§
impl Freeze for PhaseRing
impl RefUnwindSafe for PhaseRing
impl !Send for PhaseRing
impl !Sync for PhaseRing
impl Unpin for PhaseRing
impl UnsafeUnpin for PhaseRing
impl UnwindSafe for PhaseRing
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