pub struct HlodSet { /* private fields */ }Expand description
Die Cluster-Menge mit Zustandsmaschine (siehe Modul-Doku).
Eine leere Menge ist der Normalzustand, solange kein Bake vorhanden
ist: update liefert dann immer None und die
Partition läuft exakt wie vor M3d.
Implementations§
Source§impl HlodSet
impl HlodSet
pub fn new(cfg: HlodConfig) -> Self
pub fn config(&self) -> &HlodConfig
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn contains(&self, cell: HlodCell) -> bool
Sourcepub fn cells(&self) -> Vec<HlodCell>
pub fn cells(&self) -> Vec<HlodCell>
Alle registrierten Cluster, deterministisch sortiert nach (x, y)
(für Abfragen und Agent-Antworten).
Sourcepub fn register(&mut self, cell: HlodCell, source_cells: u32)
pub fn register(&mut self, cell: HlodCell, source_cells: u32)
Cluster aus dem Bake eintragen; source_cells = Zahl der
zusammengefassten Fein-Zellen. Erneutes Registrieren überschreibt
nur die Zellzahl, nie den Sichtbarkeitszustand.
Sourcepub fn unregister(&mut self, cell: HlodCell) -> Option<u32>
pub fn unregister(&mut self, cell: HlodCell) -> Option<u32>
Cluster entfernen. War er sichtbar, meldet update
kein hidden mehr für ihn — der Aufrufer blendet ihn selbst aus.
Sourcepub fn source_cells(&self, cell: HlodCell) -> Option<u32>
pub fn source_cells(&self, cell: HlodCell) -> Option<u32>
Vom Backer zusammengefasste Fein-Zellen eines Clusters.
pub fn is_shown(&self, cell: HlodCell) -> bool
Auto Trait Implementations§
impl Freeze for HlodSet
impl RefUnwindSafe for HlodSet
impl Send for HlodSet
impl Sync for HlodSet
impl Unpin for HlodSet
impl UnsafeUnpin for HlodSet
impl UnwindSafe for HlodSet
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