[−][src]Struct arcs::components::ComponentVtable
A vtable which gives the engine reflection-like abilities.
Methods
impl ComponentVtable
[src]
pub fn for_type<T>() -> Self where
T: Component + Clone + Debug,
<T as Component>::Storage: Default,
[src]
T: Component + Clone + Debug,
<T as Component>::Storage: Default,
Create the ComponentVtable
corresponding to a particular type.
pub fn applies_to<T: 'static>(&self) -> bool
[src]
pub fn name(&self) -> &'static str
[src]
A human-readable version of the Component
's name.
pub fn debug(&self, item: &dyn Any, f: &mut Formatter) -> Result
[src]
Get the Debug
representation of this type.
Trait Implementations
impl Clone for ComponentVtable
[src]
fn clone(&self) -> ComponentVtable
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Collect for ComponentVtable
fn registry() -> &'static Registry<Self>
impl Copy for ComponentVtable
[src]
Auto Trait Implementations
impl RefUnwindSafe for ComponentVtable
impl Send for ComponentVtable
impl Sync for ComponentVtable
impl Unpin for ComponentVtable
impl UnwindSafe for ComponentVtable
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,
fn get_type_id(&self) -> TypeId
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> Event for T where
T: Send + Sync + 'static,
T: Send + Sync + 'static,
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: Any + Send + Sync,
[src]
T: Any + Send + Sync,
impl<T> RoundFrom<T> for T
[src]
fn round_from(x: T) -> T
[src]
impl<T, U> RoundInto<U> for T where
U: RoundFrom<T>,
[src]
U: RoundFrom<T>,
fn round_into(self) -> U
[src]
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, 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>,