Enum legion::world::ComponentAccess[][src]

pub enum ComponentAccess<'a> {
    All,
    Allow(Cow<'a, Permissions<ComponentTypeId>>),
    Disallow(Cow<'a, Permissions<ComponentTypeId>>),
}

Describes which components are available for access.

Variants

All

All component types are allowed.

Some component types are allowed.

Some component types are disallowed.

Implementations

impl<'a> ComponentAccess<'a>[src]

pub fn allows_read(&self, component: ComponentTypeId) -> bool[src]

Returns true if the given component is accessible for reads.

pub fn allows_write(&self, component: ComponentTypeId) -> bool[src]

Returns true if the given component is accessible for writes.

Trait Implementations

impl<'a> Clone for ComponentAccess<'a>[src]

impl<'a> Debug for ComponentAccess<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for ComponentAccess<'a>

impl<'a> Send for ComponentAccess<'a>

impl<'a> Sync for ComponentAccess<'a>

impl<'a> Unpin for ComponentAccess<'a>

impl<'a> UnwindSafe for ComponentAccess<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Send + Sync + Any
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.