[][src]Struct arcs::components::Name

pub struct Name(_);

A name that can be looked up later in the NameTable.

Each Name should be unique within a World. Conflicts may mess up the NameTable bookkeeping and lead to bad lookups.

Implementations

impl Name[src]

pub fn new<S: Into<String>>(name: S) -> Self[src]

pub fn as_str(&self) -> &str[src]

Trait Implementations

impl AsRef<str> for Name[src]

impl Borrow<String> for Name[src]

impl Borrow<str> for Name[src]

impl Clone for Name[src]

impl Component for Name[src]

type Storage = FlaggedStorage<Name, HashMapStorage<Name>>

Associated storage type for this component.

impl Debug for Name[src]

impl Eq for Name[src]

impl<'a> From<&'a str> for Name[src]

impl From<String> for Name[src]

impl Hash for Name[src]

impl PartialEq<Name> for Name[src]

impl StructuralEq for Name[src]

impl StructuralPartialEq for Name[src]

Auto Trait Implementations

impl RefUnwindSafe for Name

impl Send for Name

impl Sync for Name

impl Unpin for Name

impl UnwindSafe for Name

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, 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.