Struct specs::Read [−][src]
pub struct Read<'a, T, F = DefaultProvider> where
T: 'a, { /* fields omitted */ }
Expand description
Allows to fetch a resource in a system immutably.
If the resource isn’t strictly required, you should use Option<Read<T>>
.
Type parameters
T
: The type of the resourceF
: The setup handler (default:DefaultProvider
)
Trait Implementations
Open this join by returning the mask and the storages. Read more
Get a joined component value by a given index. Read more
If this Join
typically returns all indices in the mask, then iterating
over only it or combined with other joins that are also dangerous
will cause the JoinIter
/ParJoin
to go through all indices which
is usually not what is wanted and will kill performance. Read more
Create a joined iterator over the contents.
Create a joined parallel iterator over the contents.
Auto Trait Implementations
impl<'a, T, F = DefaultProvider> !RefUnwindSafe for Read<'a, T, F>
impl<'a, T, F = DefaultProvider> !UnwindSafe for Read<'a, T, F>
Blanket Implementations
impl<T> Any for T where
T: Any,
impl<T> Any for T where
T: Any,
pub fn get_type_id(&self) -> TypeId
Mutably borrows from an owned value. Read more
type Accessor = StaticAccessor<T>
type Accessor = StaticAccessor<T>
The accessor of the SystemData
, which specifies the read and write
dependencies and does the fetching. Read more
Sets up World
for fetching this system data.