Trait re_sdk::Component

source ·
pub trait Component: Loggable {
    // Required method
    fn descriptor() -> ComponentDescriptor;

    // Provided method
    fn name() -> ComponentName { ... }
}
Expand description

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

Implementing the Component trait automatically derives the ComponentBatch implementation, which makes it possible to work with lists’ worth of data in a generic fashion.

Required Methods§

source

fn descriptor() -> ComponentDescriptor

Returns the complete ComponentDescriptor for this Component.

Every component is uniquely identified by its ComponentDescriptor.

Provided Methods§

source

fn name() -> ComponentName

The fully-qualified name of this component, e.g. rerun.components.Position2D.

This is a trivial but useful helper for Self::descriptor().component_name.

The default implementation already does the right thing: do not override unless you know what you’re doing. Self::name() must exactly match the value returned by Self::descriptor().component_name, or undefined behavior ensues.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Component for BackgroundKind

source§

impl Component for ContainerKind

source§

impl Component for Corner2D

source§

impl Component for MapProvider

source§

impl Component for PanelState

source§

impl Component for ViewFit

source§

impl Component for AggregationPolicy

source§

impl Component for Colormap

source§

impl Component for FillMode

source§

impl Component for GraphType

source§

impl Component for MagnificationFilter

source§

impl Component for MarkerShape

source§

impl Component for TransformRelation

source§

impl Component for ActiveTab

source§

impl Component for ApplyLatestAt

source§

impl Component for AutoLayout

source§

impl Component for AutoViews

source§

impl Component for ColumnShare

source§

impl Component for ComponentColumnSelector

source§

impl Component for Enabled

source§

impl Component for FilterByRange

source§

impl Component for FilterIsNotNull

source§

impl Component for ForceDistance

source§

impl Component for ForceIterations

source§

impl Component for ForceStrength

source§

impl Component for GridColumns

source§

impl Component for GridSpacing

source§

impl Component for IncludedContent

source§

impl Component for Interactive

source§

impl Component for LockRangeDuringZoom

source§

impl Component for NearClipPlane

source§

impl Component for QueryExpression

source§

impl Component for RootContainer

source§

impl Component for RowShare

source§

impl Component for SelectedColumns

source§

impl Component for TensorDimensionIndexSlider

source§

impl Component for TimelineName

source§

impl Component for ViewClass

source§

impl Component for ViewMaximized

source§

impl Component for ViewOrigin

source§

impl Component for ViewerRecommendationHash

source§

impl Component for Visible

source§

impl Component for VisibleTimeRange

source§

impl Component for VisualBounds2D

source§

impl Component for VisualizerOverrides

source§

impl Component for ZoomLevel

source§

impl Component for AlbedoFactor

source§

impl Component for AnnotationContext

source§

impl Component for AxisLength

source§

impl Component for Blob

source§

impl Component for ClassId

source§

impl Component for Color

source§

impl Component for DepthMeter

source§

impl Component for DisconnectedSpace

source§

impl Component for DrawOrder

source§

impl Component for EntityPath

source§

impl Component for FillRatio

source§

impl Component for GammaCorrection

source§

impl Component for GeoLineString

source§

impl Component for GraphEdge

source§

impl Component for GraphNode

source§

impl Component for HalfSize2D

source§

impl Component for HalfSize3D

source§

impl Component for ImageBuffer

source§

impl Component for ImageFormat

source§

impl Component for ImagePlaneDistance

source§

impl Component for KeypointId

source§

impl Component for LatLon

source§

impl Component for Length

source§

impl Component for LineStrip2D

source§

impl Component for LineStrip3D

source§

impl Component for MarkerSize

source§

impl Component for MediaType

source§

impl Component for Name

source§

impl Component for Opacity

source§

impl Component for PinholeProjection

source§

impl Component for Plane3D

source§

impl Component for PoseRotationAxisAngle

source§

impl Component for PoseRotationQuat

source§

impl Component for PoseScale3D

source§

impl Component for PoseTransformMat3x3

source§

impl Component for PoseTranslation3D

source§

impl Component for Position2D

source§

impl Component for Position3D

source§

impl Component for Radius

source§

impl Component for Range1D

source§

impl Component for RecordingUri

source§

impl Component for Resolution

source§

impl Component for RotationAxisAngle

source§

impl Component for RotationQuat

source§

impl Component for Scalar

source§

impl Component for Scale3D

source§

impl Component for ShowLabels

source§

impl Component for StrokeWidth

source§

impl Component for TensorData

source§

impl Component for TensorDimensionIndexSelection

source§

impl Component for TensorHeightDimension

source§

impl Component for TensorWidthDimension

source§

impl Component for Texcoord2D

source§

impl Component for Text

source§

impl Component for TextLogLevel

source§

impl Component for TransformMat3x3

source§

impl Component for Translation3D

source§

impl Component for TriangleIndices

source§

impl Component for ValueRange

source§

impl Component for Vector2D

source§

impl Component for Vector3D

source§

impl Component for VideoTimestamp

source§

impl Component for ViewCoordinates

source§

impl Component for AffixFuzzer1

source§

impl Component for AffixFuzzer2

source§

impl Component for AffixFuzzer3

source§

impl Component for AffixFuzzer4

source§

impl Component for AffixFuzzer5

source§

impl Component for AffixFuzzer6

source§

impl Component for AffixFuzzer7

source§

impl Component for AffixFuzzer8

source§

impl Component for AffixFuzzer9

source§

impl Component for AffixFuzzer10

source§

impl Component for AffixFuzzer11

source§

impl Component for AffixFuzzer12

source§

impl Component for AffixFuzzer13

source§

impl Component for AffixFuzzer14

source§

impl Component for AffixFuzzer15

source§

impl Component for AffixFuzzer16

source§

impl Component for AffixFuzzer17

source§

impl Component for AffixFuzzer18

source§

impl Component for AffixFuzzer19

source§

impl Component for AffixFuzzer20

source§

impl Component for AffixFuzzer21

source§

impl Component for AffixFuzzer22

source§

impl Component for AffixFuzzer23

Implementors§