[−][src]Struct legion::permission::Permissions
Implementations
impl<T> Permissions<T> where
T: PartialEq<T>,
[src]
T: PartialEq<T>,
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]
T: Clone + PartialEq<T>,
fn clone(&self) -> Permissions<T>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T> Debug for Permissions<T> where
T: PartialEq<T> + Debug,
[src]
T: PartialEq<T> + Debug,
impl<T> Default for Permissions<T> where
T: PartialEq<T>,
[src]
T: PartialEq<T>,
fn default() -> Permissions<T>
[src]
impl<T> Display for Permissions<T> where
T: PartialEq<T> + Display,
[src]
T: PartialEq<T> + Display,
Auto Trait Implementations
impl<T> RefUnwindSafe for Permissions<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Permissions<T> where
T: Send,
T: Send,
impl<T> Sync for Permissions<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Permissions<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Permissions<T> where
T: RefUnwindSafe + UnwindSafe,
T: RefUnwindSafe + UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Component for T where
T: 'static + Send + Sync,
[src]
T: 'static + Send + Sync,
impl<T> Downcast for T where
T: Any,
T: Any,
fn into_any(self: Box<T>) -> Box<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn as_any(&self) -> &(dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
impl<T> DowncastSync for T where
T: Send + Sync + Any,
T: Send + Sync + Any,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Resource for T where
T: 'static + Send + Sync,
[src]
T: 'static + Send + Sync,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,