Struct specs::StaticAccessor [−][src]
pub struct StaticAccessor<T> { /* fields omitted */ }
Expand description
The static accessor that is used for SystemData
.
Trait Implementations
Tries to create a new instance of this type. This one returns Some
in
case there is a default, otherwise the system needs to override
System::accessor
. Read more
A list of ResourceId
s the bundle
needs read access to in order to
build the target resource bundle. Read more
A list of ResourceId
s the bundle
needs write access to in order to
build the target resource bundle. Read more
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for StaticAccessor<T>
impl<T> Send for StaticAccessor<T>
impl<T> Sync for StaticAccessor<T>
impl<T> Unpin for StaticAccessor<T>
impl<T> UnwindSafe for StaticAccessor<T>
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
Tries to create the default.
Calls try_default
and panics on an error case.