pub enum ComponentAccessKind {
Archetypal(ComponentId),
Shared(ComponentId),
Exclusive(ComponentId),
}Expand description
Describes the level of access for a particular component as defined in an Access.
Variants§
Archetypal(ComponentId)
Archetypical access, such as Has<Foo>.
Shared access, such as &Foo.
Exclusive(ComponentId)
Exclusive access, such as &mut Foo.
Implementations§
Source§impl ComponentAccessKind
impl ComponentAccessKind
Sourcepub fn index(&self) -> &ComponentId
pub fn index(&self) -> &ComponentId
Gets the index of this ComponentAccessKind.
Trait Implementations§
Source§impl Clone for ComponentAccessKind
impl Clone for ComponentAccessKind
Source§fn clone(&self) -> ComponentAccessKind
fn clone(&self) -> ComponentAccessKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ComponentAccessKind
impl Debug for ComponentAccessKind
Source§impl Hash for ComponentAccessKind
impl Hash for ComponentAccessKind
Source§impl PartialEq for ComponentAccessKind
impl PartialEq for ComponentAccessKind
impl Copy for ComponentAccessKind
impl Eq for ComponentAccessKind
impl StructuralPartialEq for ComponentAccessKind
Auto Trait Implementations§
impl Freeze for ComponentAccessKind
impl RefUnwindSafe for ComponentAccessKind
impl Send for ComponentAccessKind
impl Sync for ComponentAccessKind
impl Unpin for ComponentAccessKind
impl UnwindSafe for ComponentAccessKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
Source§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.