Skip to main content

Propagated

Struct Propagated 

Source
pub struct Propagated {
    pub nodes: u32,
    pub roots: u32,
    pub orphaned: u32,
    pub cyclic: u32,
}
Expand description

What a single propagate call did.

The three failure counts are diagnostics, not errors: every node in them still received a Global. They exist so a caller can assert orphaned + cyclic == 0 in a test and find out at the point of the mistake rather than three frames later when something is drawn in the wrong place.

They count nodes composed against the world origin rather than against a parent — which is not the same as landing there, since such a node still sits wherever its own Local puts it. So they are not a partition of nodes and their sum is not it: an ordinary child composes against a parent that resolved, and belongs to none of the three. roots + orphaned + cyclic is the number of independent trees the pass found.

Fields§

§nodes: u32

Nodes given a world placement — every entity with a Local.

§roots: u32

Nodes with no Parent component, composed against the world.

§orphaned: u32

Nodes whose Parent names a despawned entity, or one that is not a scene node. Composed as if they had no parent.

§cyclic: u32

Nodes whose parent chain closes a loop. One member of each loop is composed as if it had no parent, so the rest can compose against it and the pass terminates. See the crate docs: which member that is depends on entity order, and it is the single case where two worlds of the same shape can disagree.

Trait Implementations§

Source§

impl Clone for Propagated

Source§

fn clone(&self) -> Propagated

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for Propagated

Source§

impl Debug for Propagated

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Propagated

Source§

fn default() -> Propagated

Returns the “default value” for a type. Read more
Source§

impl Eq for Propagated

Source§

impl PartialEq for Propagated

Source§

fn eq(&self, other: &Propagated) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Propagated

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.