pub struct ReadScopes(pub Vec<ReadScope>);Expand description
Read scopes retained in the world as portable metadata, including unloaded source identities.
Tuple Fields§
§0: Vec<ReadScope>Trait Implementations§
Source§impl Clone for ReadScopes
impl Clone for ReadScopes
Source§impl Debug for ReadScopes
impl Debug for ReadScopes
Source§impl Default for ReadScopes
impl Default for ReadScopes
impl Eq for ReadScopes
Source§impl PartialEq for ReadScopes
impl PartialEq for ReadScopes
Source§impl Resource for ReadScopes
impl Resource for ReadScopes
const NAME: &'static str = "core.read_scopes"
Source§fn verify(&self, _world: &World) -> Result<(), String>
fn verify(&self, _world: &World) -> Result<(), String>
The resource’s own invariants in
w; as Component::verify, run by the pass manager’s verifier.const VERSION: u32 = 1
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.Source§impl Serialize for ReadScopes
impl Serialize for ReadScopes
impl StructuralPartialEq for ReadScopes
Auto Trait Implementations§
impl Forget for ReadScopes
impl Freeze for ReadScopes
impl RefUnwindSafe for ReadScopes
impl Send for ReadScopes
impl Sync for ReadScopes
impl Unpin for ReadScopes
impl UnsafeUnpin for ReadScopes
impl UnwindSafe for ReadScopes
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.