[][src]Struct legion::permission::Permissions

pub struct Permissions<T> where
    T: PartialEq<T>, 
{ /* fields omitted */ }

Implementations

impl<T> Permissions<T> where
    T: PartialEq<T>, 
[src]

pub fn new() -> Permissions<T>[src]

pub fn push(&mut self, item: T)[src]

pub fn push_read(&mut self, item: T)[src]

pub fn push_write(&mut self, item: T)[src]

pub fn remove(&mut self, item: &T)[src]

pub fn remove_read(&mut self, item: &T)[src]

pub fn remove_write(&mut self, item: &T)[src]

pub fn add(&mut self, other: Permissions<T>)[src]

pub fn subtract(&mut self, other: &Permissions<T>)[src]

pub fn reads(&self) -> &[T][src]

pub fn writes(&self) -> &[T][src]

pub fn read_only(&self) -> &[T][src]

pub fn write_only(&self) -> &[T][src]

pub fn readwrite(&self) -> &[T][src]

pub fn is_superset(&self, other: &Permissions<T>) -> bool[src]

pub fn is_disjoint(&self, other: &Permissions<T>) -> bool[src]

Trait Implementations

impl<T> Clone for Permissions<T> where
    T: Clone + PartialEq<T>, 
[src]

impl<T> Debug for Permissions<T> where
    T: PartialEq<T> + Debug
[src]

impl<T> Default for Permissions<T> where
    T: PartialEq<T>, 
[src]

impl<T> Display for Permissions<T> where
    T: PartialEq<T> + Display
[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Permissions<T> where
    T: RefUnwindSafe

impl<T> Send for Permissions<T> where
    T: Send

impl<T> Sync for Permissions<T> where
    T: Sync

impl<T> Unpin for Permissions<T> where
    T: Unpin

impl<T> UnwindSafe for Permissions<T> where
    T: RefUnwindSafe + UnwindSafe

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> Component for T where
    T: 'static + Send + Sync
[src]

impl<T> Downcast for T where
    T: Any

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

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

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

impl<T> Resource for T where
    T: 'static + Send + Sync
[src]

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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.