[][src]Struct arcs::components::NameTable

pub struct NameTable { /* fields omitted */ }

A global Resource for looking up an Entity using its Name.

Implementations

impl NameTable[src]

pub fn get(&self, name: &str) -> Option<Entity>[src]

pub fn iter<'this>(&'this self) -> impl Iterator<Item = (&str, Entity)> + 'this[src]

pub fn clear(&mut self)[src]

pub fn len(&self) -> usize[src]

pub fn is_empty(&self) -> bool[src]

pub fn remove_by_id(&mut self, id: Index)[src]

Trait Implementations

impl Clone for NameTable[src]

impl Debug for NameTable[src]

impl Default for NameTable[src]

impl PartialEq<NameTable> for NameTable[src]

impl StructuralPartialEq for NameTable[src]

Auto Trait Implementations

impl RefUnwindSafe for NameTable

impl Send for NameTable

impl Sync for NameTable

impl Unpin for NameTable

impl UnwindSafe for NameTable

Blanket Implementations

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

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

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

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

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

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: Any + Send + Sync
[src]

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

impl<T, U> RoundInto<U> for T where
    U: RoundFrom<T>, 
[src]

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> TryDefault for T where
    T: Default
[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.