Expand description
The core traits and types 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.
Conversion to and from Arrow is split across five traits, so that each type only implements
the conversions that make sense for it: ArrowDataType, ToArrow, ToArrowOpt,
FromArrow and FromArrowOpt.
A Component requires ToArrow and FromArrow; the nullable variants are optional
and being phased out.
§Feature flags
No documented features in Cargo.toml
Re-exports§
pub use self::encodings as datatypes;
Modules§
- archetypes
- Fundamental
Archetypes that are implemented inre_types_coredirectly for convenience and dependency optimization. - arrow_
helpers - arrow_
zip_ validity - Easily iterate over arrow values that may contain nulls.
- components
- Fundamental
Components that are implemented inre_types_coredirectly for convenience and dependency optimization. - encodings
- Fundamental encodings that are implemented in
re_types_coredirectly for convenience and dependency optimization. - external
- macros
- reflection
- Run-time reflection for reading meta-data about components, archetypes, and views.
Macros§
- delegate_
arrow_ tuid - Implements
crate::Componentfor any given type that is a simple wrapper (newtype) around aTuid. - impl_
from_ arrow_ opt_ via_ from_ arrow - Implements
FromArrowOptin terms ofFromArrow. - impl_
from_ arrow_ via_ from_ arrow_ opt - Implements
FromArrowin terms ofFromArrowOpt. - impl_
into_ cow - Implements
From<Self>andFrom<'a Self>forCow<Self>. - impl_
to_ arrow_ via_ to_ arrow_ opt - Implements
ToArrowin terms ofToArrowOpt. - static_
assert_ struct_ has_ fields - Useful macro for statically asserting that a
structcontains some specific fields.
Structs§
- Archetype
Name - The fully-qualified name of an
Archetype, e.g.rerun.archetypes.Points3D. - Arrow
String - Convenience-wrapper around an arrow
Bufferthat is known to contain a UTF-8 encoded string. - ChunkId
- A unique ID for a
Chunk. - Component
Descriptor - A
ComponentDescriptorfully describes the semantics of a column of data. - Component
Identifier - Uniquely identifies a component (a field of data) within an entity.
- Component
Type - The fully-qualified name of a
Component, e.g.rerun.components.Position2D. - Dynamic
Archetype - A helper for logging a dynamically defined archetype to Rerun.
- Invalid
Component Identifier Error - Error returned when constructing an invalid
ComponentIdentifier. - Invalid
Layer Name Error - Error returned when constructing an invalid
LayerName. - Invalid
Timeline Name Error - Error returned when constructing an invalid
TimelineName. - Layer
Name - The name of a layer (e.g.
"base"). - RowId
- A unique ID for a row’s worth of data within a chunk.
- Segment
Id - Identifies a single segment within a dataset.
- Serialized
Component Batch - The serialized contents of a
ComponentBatchwith associatedComponentDescriptor. - Serialized
Component Column - A column’s worth of component data.
- Timeline
Name - The name of a timeline. Often something like
"log_time"or"frame_nr". - View
Class Identifier - The unique name of a view
Enums§
Constants§
- DEFAULT_
DISPLAY_ DECIMALS - Number of decimals shown for all float display methods.
- FIELD_
METADATA_ KEY_ ARCHETYPE - The key used to identify the
crate::ArchetypeNamein field-level metadata. - FIELD_
METADATA_ KEY_ COMPONENT - The key used to identify the
crate::ComponentIdentifierin field-level metadata. - FIELD_
METADATA_ KEY_ COMPONENT_ TYPE - The key used to identify the
crate::ComponentTypein field-level metadata.
Traits§
- Archetype
- 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). - Archetype
Reflection Marker - Indicates that the archetype has reflection data available for it.
- Arrow
Data Type - Describes the Arrow datatype that a type is (de)serialized to and from.
- AsComponents
- Describes the interface for interpreting an object as a bundle of
Components. - Component
- A
Componentdescribes semantic data that can be used by any number ofArchetypes. - Component
Batch - A
ComponentBatchrepresents an array’s worth of loggable instances, ready to be serialized. - From
Arrow - Deserializes an Arrow array into a collection of values, failing on nulls.
- From
Arrow Opt - Deserializes a nullable Arrow array into a collection of optional values.
- Result
Ext - ToArrow
- Serializes an iterator of values into an Arrow array.
- ToArrow
Opt - Serializes an iterator of optional values into a nullable Arrow array.
- View
- Views are the panels shown in the viewer’s viewport and the primary means of inspecting & visualizing previously logged data.
- Wrapper
Component - Implementation helper for
Components that wrap a single encoding.
Functions§
- from_
arrow_ opt_ via_ from_ arrow - Implements
FromArrowOpt::from_arrow_optin terms ofFromArrow. - from_
arrow_ via_ from_ arrow_ opt - Implements
FromArrow::from_arrowin terms ofFromArrowOpt, failing on nulls. - to_
arrow_ via_ to_ arrow_ opt - Implements
ToArrow::to_arrowin terms ofToArrowOpt. - tuids_
to_ arrow