Struct ambient_api::ecs::Component
source · pub struct Component<T> { /* private fields */ }
Expand description
A component (piece of entity data). See entity::get_component and entity::set_component.
Trait Implementations§
source§impl<T> ComponentsTuple for Component<T>where
T: SupportedValue,
impl<T> ComponentsTuple for Component<T>where
T: SupportedValue,
source§impl<T> From<Component<T>> for ComponentDescwhere
T: 'static,
impl<T> From<Component<T>> for ComponentDescwhere
T: 'static,
source§fn from(value: Component<T>) -> ComponentDesc
fn from(value: Component<T>) -> ComponentDesc
Converts to this type from the input type.
source§impl<T> PartialEq for Component<T>
impl<T> PartialEq for Component<T>
impl<T> Copy for Component<T>
impl<T> UntypedComponent for Component<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for Component<T>where
T: RefUnwindSafe,
impl<T> Send for Component<T>where
T: Send,
impl<T> Sync for Component<T>where
T: Sync,
impl<T> Unpin for Component<T>where
T: Unpin,
impl<T> UnwindSafe for Component<T>where
T: UnwindSafe,
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> Downcast for T
impl<T> Downcast for T
source§impl<T> ElementComponentName for T
impl<T> ElementComponentName for T
source§fn element_component_name(&self) -> &'static str
fn element_component_name(&self) -> &'static str
Returns the name of the type implementing ElementComponent.