pub struct CellOwnershipTable { /* private fields */ }Expand description
Dynamic ownership table for fixed 3D cells.
Implementations§
Source§impl CellOwnershipTable
impl CellOwnershipTable
Sourcepub fn assign(
&mut self,
cell: CellCoord3,
station_id: StationId,
) -> Option<StationId>
pub fn assign( &mut self, cell: CellCoord3, station_id: StationId, ) -> Option<StationId>
Assigns one cell to a station and returns the previous owner.
Sourcepub fn owner_of(&self, cell: CellCoord3) -> Option<StationId>
pub fn owner_of(&self, cell: CellCoord3) -> Option<StationId>
Returns the current owner for one cell.
Sourcepub fn apply_split(
&mut self,
proposal: &SplitProposal,
target_station: StationId,
) -> CellOwnershipUpdate
pub fn apply_split( &mut self, proposal: &SplitProposal, target_station: StationId, ) -> CellOwnershipUpdate
Applies a split proposal by assigning all proposed cells to target_station.
Sourcepub fn apply_split_into(
&mut self,
proposal: &SplitProposal,
target_station: StationId,
update: &mut CellOwnershipUpdate,
)
pub fn apply_split_into( &mut self, proposal: &SplitProposal, target_station: StationId, update: &mut CellOwnershipUpdate, )
Applies a split into caller-owned reusable update storage.
Trait Implementations§
Source§impl Clone for CellOwnershipTable
impl Clone for CellOwnershipTable
Source§fn clone(&self) -> CellOwnershipTable
fn clone(&self) -> CellOwnershipTable
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 CellOwnershipTable
impl Debug for CellOwnershipTable
Source§impl Default for CellOwnershipTable
impl Default for CellOwnershipTable
Source§fn default() -> CellOwnershipTable
fn default() -> CellOwnershipTable
Returns the “default value” for a type. Read more
impl Eq for CellOwnershipTable
Source§impl PartialEq for CellOwnershipTable
impl PartialEq for CellOwnershipTable
impl StructuralPartialEq for CellOwnershipTable
Auto Trait Implementations§
impl Freeze for CellOwnershipTable
impl RefUnwindSafe for CellOwnershipTable
impl Send for CellOwnershipTable
impl Sync for CellOwnershipTable
impl Unpin for CellOwnershipTable
impl UnsafeUnpin for CellOwnershipTable
impl UnwindSafe for CellOwnershipTable
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