pub struct DeckWorld {
pub seed: u32,
pub agents: Vec<Agent>,
pub communities: Vec<Community>,
pub extraction: Vec<Extraction>,
pub industries: Vec<Industry>,
pub repression: f64,
pub tick: u32,
pub zoom: u8,
}raster only.Expand description
The instrument input bundle — everything instruments::build reads to
render a scene. build_world(seed) (below) is the seeded deck
fixture producer (topology-deck.html:151-179’s buildWorld return
value); raster::ingest::to_world (Phase I) is the real-graph
producer for an arbitrary Hypergraph. Both paths converge on this one
struct so the frozen render path (instruments::build → rasterize /
render_pixels) never has to know which producer built its input —
this is the adapter-into-struct design (plans/phase-I-topology-ingest.md
CRITICAL DESIGN RULING), chosen over a WorldSource trait so the golden
path is edited by neither producer, ever.
seed/tick are deck-fixture provenance: no instrument builder reads
them (only build_world/do_tick do). ingest::to_world sets both to
0 as documented sentinels and reports its own real provenance on
IngestReport instead of mutating this struct.
Fields§
§seed: u32§agents: Vec<Agent>§communities: Vec<Community>§extraction: Vec<Extraction>§industries: Vec<Industry>§repression: f64§tick: u32§zoom: u8Trait Implementations§
impl StructuralPartialEq for DeckWorld
Auto Trait Implementations§
impl Forget for DeckWorld
impl Freeze for DeckWorldwhere
*const u8 is !null: Freeze,
PhantomData<Agent>: Freeze,
PhantomData<Community>: Freeze,
PhantomData<Extraction>: Freeze,
PhantomData<Industry>: Freeze,
impl Move for DeckWorld
impl RefUnwindSafe for DeckWorld
impl Send for DeckWorldwhere
RawVecInner: Send,
impl Sync for DeckWorldwhere
RawVecInner: Sync,
impl Unpin for DeckWorld
impl UnsafeUnpin for DeckWorldwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<Agent>: UnsafeUnpin,
PhantomData<Community>: UnsafeUnpin,
PhantomData<Extraction>: UnsafeUnpin,
PhantomData<Industry>: UnsafeUnpin,
impl UnwindSafe for DeckWorldwhere
RawVecInner: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§unsafe fn to_subset_unchecked(&self) -> SS
unsafe fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.