Struct legion::systems::SyncResources [−][src]
pub struct SyncResources<'a> { /* fields omitted */ }
Expand description
A resource collection which is Send
and Sync
, but which only allows access to resources
which are Sync
.
Implementations
Retrieve an immutable reference to T
from the store if it exists. Otherwise, return None
.
Panics
Panics if the resource is already borrowed mutably.
Auto Trait Implementations
impl<'a> !RefUnwindSafe for SyncResources<'a>
impl<'a> Send for SyncResources<'a>
impl<'a> Sync for SyncResources<'a>
impl<'a> Unpin for SyncResources<'a>
impl<'a> !UnwindSafe for SyncResources<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more