Trait Access

Source
pub trait Access: Access {
    type Item<'world>;
}
Expand description

A single component access (&T or &mut T), or the entity identity itself.

Required Associated Types§

Source

type Item<'world>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<T: 'static> Access for &T

Source§

type Item<'world> = Ref<'world, T>

Source§

impl<T: 'static> Access for &mut T

Source§

type Item<'world> = RefMut<'world, T>

Implementors§

Source§

impl Access for Entity

Source§

type Item<'world> = Entity