[go: up one dir, main page]

Trait re_types_core::Component

source ·
pub trait Component: Loggable<Name = ComponentName> { }
Expand description

A Component describes semantic data that can be used by any number of Archetypes.

Any Loggable with a Loggable::Name set to ComponentName automatically implements Component.

All built-in components should implement the Default trait, so that the Viewer has a placeholder value that it can display for ui editors in absence of a value. In absence of an obvious default value, they should be implemented such that they are versatile and informative for the user when using the viewer.

This is not enforced via a trait bound, since it’s only necessary for components known to the Rerun Viewer. It is not a hard requirement for custom components that are only used on the SDK side.

Object Safety§

This trait is not object safe.

Implementors§