pub struct PartitionPlan {
pub by: String,
pub groups: Vec<PartitionGroup>,
}Expand description
core.partition_plan: how a pass divided the content into output parts, in order. Each group owns its roots
(every root in one group) and names the context its passes need (roots of other groups, loaded but written by
their owner).
Fields§
§by: StringWhat made it (partition-grid{cell=200}).
groups: Vec<PartitionGroup>Trait Implementations§
Source§impl Clone for PartitionPlan
impl Clone for PartitionPlan
Source§impl Debug for PartitionPlan
impl Debug for PartitionPlan
Source§impl Default for PartitionPlan
impl Default for PartitionPlan
Source§impl PartialEq for PartitionPlan
impl PartialEq for PartitionPlan
Source§impl Resource for PartitionPlan
impl Resource for PartitionPlan
Source§fn verify(&self, _w: &World) -> Result<(), String>
fn verify(&self, _w: &World) -> Result<(), String>
Each group’s key once: reports and the conversion name a part by it.
const NAME: &'static str = "core.partition_plan"
Source§fn references(&self, out: &mut Vec<Entity>)
fn references(&self, out: &mut Vec<Entity>)
The entities this resource refers to, appended to
out. A resource holding entity references must declare
every one of them and implement Resource::retain_references.Source§fn retain_references(&mut self, keep: &dyn Fn(Entity) -> bool)
fn retain_references(&mut self, keep: &dyn Fn(Entity) -> bool)
Forget every reference to an entity
keep refuses (set it to “none”). The world calls it whenever entities
leave it (World::despawn, World::retain, World::move_components) and on the copy a
World::subset or World::split_off part gets, so a resource never refers to an entity its world lacks.const VERSION: u32 = 1
impl StructuralPartialEq for PartitionPlan
Auto Trait Implementations§
impl Forget for PartitionPlan
impl Freeze for PartitionPlan
impl RefUnwindSafe for PartitionPlan
impl Send for PartitionPlan
impl Sync for PartitionPlan
impl Unpin for PartitionPlan
impl UnsafeUnpin for PartitionPlan
impl UnwindSafe for PartitionPlan
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