pub struct Universe {
    pub paused_systems_execution: bool,
    /* private fields */
}

Fields

paused_systems_execution: bool

Implementations

Safety

This function assume that as_type matches exactly the type of resource, you can call it for example if you want to move already prepared resources from another place to this universe (in this case we can be sure type IDs matches the types of resources).

Trait Implementations

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

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.