pub struct StationSet { /* private fields */ }Expand description
Small in-process station collection for simulations and embedders.
Implementations§
Source§impl StationSet
impl StationSet
Sourcepub fn get_mut(&mut self, station_id: StationId) -> Option<&mut Station>
pub fn get_mut(&mut self, station_id: StationId) -> Option<&mut Station>
Gets a mutable station by id.
Sourcepub fn get_pair_mut(
&mut self,
left_id: StationId,
right_id: StationId,
) -> Option<(&mut Station, &mut Station)>
pub fn get_pair_mut( &mut self, left_id: StationId, right_id: StationId, ) -> Option<(&mut Station, &mut Station)>
Gets two distinct mutable stations by id.
Sourcepub fn iter_mut(&mut self) -> impl Iterator<Item = &mut Station>
pub fn iter_mut(&mut self) -> impl Iterator<Item = &mut Station>
Iterates mutably over stations.
Sourcepub fn station_ids_in_scope(&self, scope: BarrierScope) -> Vec<StationId>
pub fn station_ids_in_scope(&self, scope: BarrierScope) -> Vec<StationId>
Returns station ids matching a barrier scope.
Trait Implementations§
Source§impl Clone for StationSet
impl Clone for StationSet
Source§fn clone(&self) -> StationSet
fn clone(&self) -> StationSet
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StationSet
impl Debug for StationSet
Source§impl Default for StationSet
impl Default for StationSet
Source§fn default() -> StationSet
fn default() -> StationSet
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StationSet
impl RefUnwindSafe for StationSet
impl Send for StationSet
impl Sync for StationSet
impl Unpin for StationSet
impl UnsafeUnpin for StationSet
impl UnwindSafe for StationSet
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