Crate re_types_core
source ·Expand description
The core types and traits that power Rerun’s data model.
The Archetype trait is the core of this crate and is a good starting point to get familiar
with the code.
An archetype is a logical collection of batches of Components that play well with each other.
Rerun (and the underlying Arrow data framework) is designed to work with large arrays of
Components, as opposed to single instances.
When multiple instances of a Component are put together in an array, they yield a
ComponentBatch: the atomic unit of (de)serialization.
Internally, Components are implemented using many different Datatypes.
§Feature flags
serde— Enable (de)serialization using serde.
Modules§
- Fundamental
Archetypes that are implemented inre_types_coredirectly for convenience and dependency optimization. - Fundamental
Components that are implemented inre_types_coredirectly for convenience and dependency optimization. - Fundamental
Datatypes that are implemented inre_types_coredirectly for convenience and dependency optimization. - Run-time reflection for reading meta-data about components and archetypes.
Macros§
- Implements
crate::Componentfor any given type that is a simple wrapper (newtype) around aTuid. - Implements
From<Self>andFrom<'a Self>forCow<Self>.
Structs§
- The fully-qualified name of an
Archetype, e.g.rerun.archetypes.Points3D. - Convenience-wrapper around an arrow
Bufferthat is known to contain a a primitive type. - Convenience-wrapper around an arrow
Bufferthat is known to contain a UTF-8 encoded string. - The fully-qualified name of a
Component, e.g.rerun.components.Position2D. - The fully-qualified name of a
Datatype, e.g.rerun.datatypes.Vec2D. - A generic indicator component that can be specialized for any
Archetype. - An arbitrary named indicator component.
- The unique name of a space view type.
Enums§
- Holds either an owned
ComponentBatchthat lives on heap, or a reference to one.
Traits§
- An archetype is a high-level construct that represents a set of
Components that usually play well with each other (i.e. they compose nicely). - Indicates that the archetype has the
attr.rust.generate_field_infoattribute, meaning it will have runtime reflection data available for it. - Describes the interface for interpreting an object as a bundle of
Components. - A
ComponentBatchrepresents an array’s worth ofComponentinstances. - A
DatatypeBatchrepresents an array’s worth ofDatatypeinstances. - A
Loggablerepresents a single instance in an array of loggable data. - A
LoggableBatchrepresents an array’s worth ofLoggableinstances, ready to be serialized. - Approximations of stack and heap size for both internal and external types.
- Views are the panels shown in the viewer’s viewport and the primary means of inspecting & visualizing previously logged data.