From c59a502e556294eeccc140a5ef4b34351f5125df Mon Sep 17 00:00:00 2001 From: Gijs de Jong Date: Tue, 15 Oct 2024 21:10:53 +0200 Subject: [PATCH 1/4] impl `AsComponents` for all `ObjectKind::Component` --- .../re_types_builder/src/codegen/rust/api.rs | 16 ++++++++++++++++ .../src/blueprint/components/active_tab.rs | 7 +++++++ .../src/blueprint/components/apply_latest_at.rs | 7 +++++++ .../src/blueprint/components/background_kind.rs | 7 +++++++ .../src/blueprint/components/column_share.rs | 7 +++++++ .../components/component_column_selector.rs | 7 +++++++ .../src/blueprint/components/corner2d.rs | 7 +++++++ .../src/blueprint/components/filter_by_range.rs | 7 +++++++ .../blueprint/components/filter_is_not_null.rs | 7 +++++++ .../src/blueprint/components/included_content.rs | 7 +++++++ .../src/blueprint/components/interactive.rs | 7 +++++++ .../components/lock_range_during_zoom.rs | 7 +++++++ .../src/blueprint/components/panel_state.rs | 7 +++++++ .../src/blueprint/components/query_expression.rs | 7 +++++++ .../src/blueprint/components/row_share.rs | 7 +++++++ .../src/blueprint/components/selected_columns.rs | 7 +++++++ .../src/blueprint/components/space_view_class.rs | 7 +++++++ .../blueprint/components/space_view_origin.rs | 7 +++++++ .../components/tensor_dimension_index_slider.rs | 7 +++++++ .../src/blueprint/components/timeline_name.rs | 7 +++++++ .../src/blueprint/components/view_fit.rs | 7 +++++++ .../components/viewer_recommendation_hash.rs | 7 +++++++ .../re_types/src/blueprint/components/visible.rs | 7 +++++++ .../blueprint/components/visible_time_range.rs | 7 +++++++ .../src/blueprint/components/visual_bounds2d.rs | 7 +++++++ .../src/components/aggregation_policy.rs | 7 +++++++ .../re_types/src/components/albedo_factor.rs | 7 +++++++ .../src/components/annotation_context.rs | 7 +++++++ .../store/re_types/src/components/axis_length.rs | 7 +++++++ crates/store/re_types/src/components/blob.rs | 7 +++++++ crates/store/re_types/src/components/class_id.rs | 7 +++++++ crates/store/re_types/src/components/color.rs | 7 +++++++ crates/store/re_types/src/components/colormap.rs | 7 +++++++ .../store/re_types/src/components/depth_meter.rs | 7 +++++++ .../src/components/disconnected_space.rs | 7 +++++++ .../store/re_types/src/components/draw_order.rs | 7 +++++++ .../store/re_types/src/components/entity_path.rs | 7 +++++++ .../store/re_types/src/components/fill_mode.rs | 7 +++++++ .../store/re_types/src/components/fill_ratio.rs | 7 +++++++ .../re_types/src/components/gamma_correction.rs | 7 +++++++ .../store/re_types/src/components/half_size2d.rs | 7 +++++++ .../store/re_types/src/components/half_size3d.rs | 7 +++++++ .../re_types/src/components/image_buffer.rs | 7 +++++++ .../re_types/src/components/image_format.rs | 7 +++++++ .../src/components/image_plane_distance.rs | 7 +++++++ .../store/re_types/src/components/keypoint_id.rs | 7 +++++++ .../re_types/src/components/line_strip2d.rs | 7 +++++++ .../re_types/src/components/line_strip3d.rs | 7 +++++++ .../src/components/magnification_filter.rs | 7 +++++++ .../re_types/src/components/marker_shape.rs | 7 +++++++ .../store/re_types/src/components/marker_size.rs | 7 +++++++ .../store/re_types/src/components/media_type.rs | 7 +++++++ crates/store/re_types/src/components/name.rs | 7 +++++++ crates/store/re_types/src/components/opacity.rs | 7 +++++++ .../src/components/pinhole_projection.rs | 7 +++++++ .../src/components/pose_rotation_axis_angle.rs | 7 +++++++ .../src/components/pose_rotation_quat.rs | 7 +++++++ .../re_types/src/components/pose_scale3d.rs | 7 +++++++ .../src/components/pose_transform_mat3x3.rs | 7 +++++++ .../src/components/pose_translation3d.rs | 7 +++++++ .../store/re_types/src/components/position2d.rs | 7 +++++++ .../store/re_types/src/components/position3d.rs | 7 +++++++ crates/store/re_types/src/components/radius.rs | 7 +++++++ crates/store/re_types/src/components/range1d.rs | 7 +++++++ .../store/re_types/src/components/resolution.rs | 7 +++++++ .../src/components/rotation_axis_angle.rs | 7 +++++++ .../re_types/src/components/rotation_quat.rs | 7 +++++++ crates/store/re_types/src/components/scalar.rs | 7 +++++++ crates/store/re_types/src/components/scale3d.rs | 7 +++++++ .../store/re_types/src/components/show_labels.rs | 7 +++++++ .../re_types/src/components/stroke_width.rs | 7 +++++++ .../store/re_types/src/components/tensor_data.rs | 7 +++++++ .../tensor_dimension_index_selection.rs | 7 +++++++ .../src/components/tensor_height_dimension.rs | 7 +++++++ .../src/components/tensor_width_dimension.rs | 7 +++++++ .../store/re_types/src/components/texcoord2d.rs | 7 +++++++ crates/store/re_types/src/components/text.rs | 7 +++++++ .../re_types/src/components/text_log_level.rs | 7 +++++++ .../re_types/src/components/transform_mat3x3.rs | 7 +++++++ .../src/components/transform_relation.rs | 7 +++++++ .../re_types/src/components/translation3d.rs | 7 +++++++ .../re_types/src/components/triangle_indices.rs | 7 +++++++ .../store/re_types/src/components/value_range.rs | 7 +++++++ crates/store/re_types/src/components/vector2d.rs | 7 +++++++ crates/store/re_types/src/components/vector3d.rs | 7 +++++++ .../re_types/src/components/video_timestamp.rs | 7 +++++++ .../re_types/src/components/view_coordinates.rs | 7 +++++++ .../src/testing/components/affix_fuzzer1.rs | 7 +++++++ .../src/testing/components/affix_fuzzer10.rs | 7 +++++++ .../src/testing/components/affix_fuzzer11.rs | 7 +++++++ .../src/testing/components/affix_fuzzer12.rs | 7 +++++++ .../src/testing/components/affix_fuzzer13.rs | 7 +++++++ .../src/testing/components/affix_fuzzer14.rs | 7 +++++++ .../src/testing/components/affix_fuzzer15.rs | 7 +++++++ .../src/testing/components/affix_fuzzer16.rs | 7 +++++++ .../src/testing/components/affix_fuzzer17.rs | 7 +++++++ .../src/testing/components/affix_fuzzer18.rs | 7 +++++++ .../src/testing/components/affix_fuzzer19.rs | 7 +++++++ .../src/testing/components/affix_fuzzer2.rs | 7 +++++++ .../src/testing/components/affix_fuzzer20.rs | 7 +++++++ .../src/testing/components/affix_fuzzer21.rs | 7 +++++++ .../src/testing/components/affix_fuzzer22.rs | 7 +++++++ .../src/testing/components/affix_fuzzer23.rs | 7 +++++++ .../src/testing/components/affix_fuzzer3.rs | 7 +++++++ .../src/testing/components/affix_fuzzer4.rs | 7 +++++++ .../src/testing/components/affix_fuzzer5.rs | 7 +++++++ .../src/testing/components/affix_fuzzer6.rs | 7 +++++++ .../src/testing/components/affix_fuzzer7.rs | 7 +++++++ .../src/testing/components/affix_fuzzer8.rs | 7 +++++++ .../src/testing/components/affix_fuzzer9.rs | 7 +++++++ .../src/blueprint/components/auto_layout.rs | 7 +++++++ .../src/blueprint/components/auto_space_views.rs | 7 +++++++ .../src/blueprint/components/container_kind.rs | 7 +++++++ .../src/blueprint/components/grid_columns.rs | 7 +++++++ .../blueprint/components/included_space_view.rs | 7 +++++++ .../src/blueprint/components/root_container.rs | 7 +++++++ .../blueprint/components/space_view_maximized.rs | 7 +++++++ .../blueprint/components/visualizer_overrides.rs | 7 +++++++ .../src/components/clear_is_recursive.rs | 7 +++++++ 119 files changed, 842 insertions(+) diff --git a/crates/build/re_types_builder/src/codegen/rust/api.rs b/crates/build/re_types_builder/src/codegen/rust/api.rs index 4f31be5ed752..7a8d8eaf4f41 100644 --- a/crates/build/re_types_builder/src/codegen/rust/api.rs +++ b/crates/build/re_types_builder/src/codegen/rust/api.rs @@ -989,6 +989,20 @@ fn quote_trait_impls_for_datatype_or_component( } }; + let quoted_as_components_impl = if matches!(kind, ObjectKind::Component) { + quote! { + impl ::re_types_core::AsComponents for #name { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + + vec![(self as &dyn ComponentBatch).into()] + } + } + } + } else { + quote!() + }; + quote! { ::re_types_core::macros::impl_into_cow!(#name); @@ -1016,6 +1030,8 @@ fn quote_trait_impls_for_datatype_or_component( #quoted_from_arrow } + + #quoted_as_components_impl } } diff --git a/crates/store/re_types/src/blueprint/components/active_tab.rs b/crates/store/re_types/src/blueprint/components/active_tab.rs index ae4f5b55b5c7..e99a905d9726 100644 --- a/crates/store/re_types/src/blueprint/components/active_tab.rs +++ b/crates/store/re_types/src/blueprint/components/active_tab.rs @@ -107,3 +107,10 @@ impl ::re_types_core::Loggable for ActiveTab { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::AsComponents for ActiveTab { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/blueprint/components/apply_latest_at.rs b/crates/store/re_types/src/blueprint/components/apply_latest_at.rs index 447c4a783142..4411604f4a70 100644 --- a/crates/store/re_types/src/blueprint/components/apply_latest_at.rs +++ b/crates/store/re_types/src/blueprint/components/apply_latest_at.rs @@ -103,3 +103,10 @@ impl ::re_types_core::Loggable for ApplyLatestAt { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::AsComponents for ApplyLatestAt { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/blueprint/components/background_kind.rs b/crates/store/re_types/src/blueprint/components/background_kind.rs index d924523cc4f2..b13278e3ecfe 100644 --- a/crates/store/re_types/src/blueprint/components/background_kind.rs +++ b/crates/store/re_types/src/blueprint/components/background_kind.rs @@ -164,3 +164,10 @@ impl ::re_types_core::Loggable for BackgroundKind { .with_context("rerun.blueprint.components.BackgroundKind")?) } } + +impl ::re_types_core::AsComponents for BackgroundKind { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/blueprint/components/column_share.rs b/crates/store/re_types/src/blueprint/components/column_share.rs index 33f5f40dcffa..0562bdb8d991 100644 --- a/crates/store/re_types/src/blueprint/components/column_share.rs +++ b/crates/store/re_types/src/blueprint/components/column_share.rs @@ -113,3 +113,10 @@ impl ::re_types_core::Loggable for ColumnShare { crate::datatypes::Float32::from_arrow(arrow_data).map(|v| v.into_iter().map(Self).collect()) } } + +impl ::re_types_core::AsComponents for ColumnShare { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/blueprint/components/component_column_selector.rs b/crates/store/re_types/src/blueprint/components/component_column_selector.rs index 21341b4a6953..c9557ef87494 100644 --- a/crates/store/re_types/src/blueprint/components/component_column_selector.rs +++ b/crates/store/re_types/src/blueprint/components/component_column_selector.rs @@ -109,3 +109,10 @@ impl ::re_types_core::Loggable for ComponentColumnSelector { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::AsComponents for ComponentColumnSelector { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/blueprint/components/corner2d.rs b/crates/store/re_types/src/blueprint/components/corner2d.rs index f5d00addf4a2..4e089c6f60a1 100644 --- a/crates/store/re_types/src/blueprint/components/corner2d.rs +++ b/crates/store/re_types/src/blueprint/components/corner2d.rs @@ -167,3 +167,10 @@ impl ::re_types_core::Loggable for Corner2D { .with_context("rerun.blueprint.components.Corner2D")?) } } + +impl ::re_types_core::AsComponents for Corner2D { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/blueprint/components/filter_by_range.rs b/crates/store/re_types/src/blueprint/components/filter_by_range.rs index 727bc49ccc1d..efd56b26dba3 100644 --- a/crates/store/re_types/src/blueprint/components/filter_by_range.rs +++ b/crates/store/re_types/src/blueprint/components/filter_by_range.rs @@ -103,3 +103,10 @@ impl ::re_types_core::Loggable for FilterByRange { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::AsComponents for FilterByRange { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/blueprint/components/filter_is_not_null.rs b/crates/store/re_types/src/blueprint/components/filter_is_not_null.rs index 4b9aff41ea5c..1e6feea291ba 100644 --- a/crates/store/re_types/src/blueprint/components/filter_is_not_null.rs +++ b/crates/store/re_types/src/blueprint/components/filter_is_not_null.rs @@ -103,3 +103,10 @@ impl ::re_types_core::Loggable for FilterIsNotNull { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::AsComponents for FilterIsNotNull { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/blueprint/components/included_content.rs b/crates/store/re_types/src/blueprint/components/included_content.rs index 5ce3ef226270..287cacc0dece 100644 --- a/crates/store/re_types/src/blueprint/components/included_content.rs +++ b/crates/store/re_types/src/blueprint/components/included_content.rs @@ -108,3 +108,10 @@ impl ::re_types_core::Loggable for IncludedContent { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::AsComponents for IncludedContent { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/blueprint/components/interactive.rs b/crates/store/re_types/src/blueprint/components/interactive.rs index 4c8027b42ea1..75cd9965201c 100644 --- a/crates/store/re_types/src/blueprint/components/interactive.rs +++ b/crates/store/re_types/src/blueprint/components/interactive.rs @@ -105,3 +105,10 @@ impl ::re_types_core::Loggable for Interactive { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::AsComponents for Interactive { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/blueprint/components/lock_range_during_zoom.rs b/crates/store/re_types/src/blueprint/components/lock_range_during_zoom.rs index a65da1a6ba96..385a2478ebbd 100644 --- a/crates/store/re_types/src/blueprint/components/lock_range_during_zoom.rs +++ b/crates/store/re_types/src/blueprint/components/lock_range_during_zoom.rs @@ -105,3 +105,10 @@ impl ::re_types_core::Loggable for LockRangeDuringZoom { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::AsComponents for LockRangeDuringZoom { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/blueprint/components/panel_state.rs b/crates/store/re_types/src/blueprint/components/panel_state.rs index a03e05b80050..a85a58f04bac 100644 --- a/crates/store/re_types/src/blueprint/components/panel_state.rs +++ b/crates/store/re_types/src/blueprint/components/panel_state.rs @@ -156,3 +156,10 @@ impl ::re_types_core::Loggable for PanelState { .with_context("rerun.blueprint.components.PanelState")?) } } + +impl ::re_types_core::AsComponents for PanelState { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/blueprint/components/query_expression.rs b/crates/store/re_types/src/blueprint/components/query_expression.rs index 6e76d44af08a..f0b950d441e9 100644 --- a/crates/store/re_types/src/blueprint/components/query_expression.rs +++ b/crates/store/re_types/src/blueprint/components/query_expression.rs @@ -112,3 +112,10 @@ impl ::re_types_core::Loggable for QueryExpression { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::AsComponents for QueryExpression { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/blueprint/components/row_share.rs b/crates/store/re_types/src/blueprint/components/row_share.rs index 79c7b788333c..ed9f828273d5 100644 --- a/crates/store/re_types/src/blueprint/components/row_share.rs +++ b/crates/store/re_types/src/blueprint/components/row_share.rs @@ -113,3 +113,10 @@ impl ::re_types_core::Loggable for RowShare { crate::datatypes::Float32::from_arrow(arrow_data).map(|v| v.into_iter().map(Self).collect()) } } + +impl ::re_types_core::AsComponents for RowShare { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/blueprint/components/selected_columns.rs b/crates/store/re_types/src/blueprint/components/selected_columns.rs index 612a218a7b3c..ff2e04af5436 100644 --- a/crates/store/re_types/src/blueprint/components/selected_columns.rs +++ b/crates/store/re_types/src/blueprint/components/selected_columns.rs @@ -103,3 +103,10 @@ impl ::re_types_core::Loggable for SelectedColumns { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::AsComponents for SelectedColumns { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/blueprint/components/space_view_class.rs b/crates/store/re_types/src/blueprint/components/space_view_class.rs index 911eb17df625..0ee5abff8706 100644 --- a/crates/store/re_types/src/blueprint/components/space_view_class.rs +++ b/crates/store/re_types/src/blueprint/components/space_view_class.rs @@ -103,3 +103,10 @@ impl ::re_types_core::Loggable for SpaceViewClass { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::AsComponents for SpaceViewClass { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/blueprint/components/space_view_origin.rs b/crates/store/re_types/src/blueprint/components/space_view_origin.rs index 8734ced94143..b05a494f30a8 100644 --- a/crates/store/re_types/src/blueprint/components/space_view_origin.rs +++ b/crates/store/re_types/src/blueprint/components/space_view_origin.rs @@ -103,3 +103,10 @@ impl ::re_types_core::Loggable for SpaceViewOrigin { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::AsComponents for SpaceViewOrigin { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/blueprint/components/tensor_dimension_index_slider.rs b/crates/store/re_types/src/blueprint/components/tensor_dimension_index_slider.rs index 87115b3fc4dc..e12f2544c848 100644 --- a/crates/store/re_types/src/blueprint/components/tensor_dimension_index_slider.rs +++ b/crates/store/re_types/src/blueprint/components/tensor_dimension_index_slider.rs @@ -109,3 +109,10 @@ impl ::re_types_core::Loggable for TensorDimensionIndexSlider { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::AsComponents for TensorDimensionIndexSlider { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/blueprint/components/timeline_name.rs b/crates/store/re_types/src/blueprint/components/timeline_name.rs index de9eea0641c9..6a11cf3baee1 100644 --- a/crates/store/re_types/src/blueprint/components/timeline_name.rs +++ b/crates/store/re_types/src/blueprint/components/timeline_name.rs @@ -103,3 +103,10 @@ impl ::re_types_core::Loggable for TimelineName { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::AsComponents for TimelineName { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/blueprint/components/view_fit.rs b/crates/store/re_types/src/blueprint/components/view_fit.rs index e99228f743d7..cc6776d870a6 100644 --- a/crates/store/re_types/src/blueprint/components/view_fit.rs +++ b/crates/store/re_types/src/blueprint/components/view_fit.rs @@ -162,3 +162,10 @@ impl ::re_types_core::Loggable for ViewFit { .with_context("rerun.blueprint.components.ViewFit")?) } } + +impl ::re_types_core::AsComponents for ViewFit { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/blueprint/components/viewer_recommendation_hash.rs b/crates/store/re_types/src/blueprint/components/viewer_recommendation_hash.rs index 0c5806b03d56..8b98d455ea36 100644 --- a/crates/store/re_types/src/blueprint/components/viewer_recommendation_hash.rs +++ b/crates/store/re_types/src/blueprint/components/viewer_recommendation_hash.rs @@ -113,3 +113,10 @@ impl ::re_types_core::Loggable for ViewerRecommendationHash { crate::datatypes::UInt64::from_arrow(arrow_data).map(|v| v.into_iter().map(Self).collect()) } } + +impl ::re_types_core::AsComponents for ViewerRecommendationHash { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/blueprint/components/visible.rs b/crates/store/re_types/src/blueprint/components/visible.rs index f91bd0cf62da..0db650f8230c 100644 --- a/crates/store/re_types/src/blueprint/components/visible.rs +++ b/crates/store/re_types/src/blueprint/components/visible.rs @@ -103,3 +103,10 @@ impl ::re_types_core::Loggable for Visible { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::AsComponents for Visible { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/blueprint/components/visible_time_range.rs b/crates/store/re_types/src/blueprint/components/visible_time_range.rs index 919c636e6e6b..b0110c850c53 100644 --- a/crates/store/re_types/src/blueprint/components/visible_time_range.rs +++ b/crates/store/re_types/src/blueprint/components/visible_time_range.rs @@ -105,3 +105,10 @@ impl ::re_types_core::Loggable for VisibleTimeRange { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::AsComponents for VisibleTimeRange { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/blueprint/components/visual_bounds2d.rs b/crates/store/re_types/src/blueprint/components/visual_bounds2d.rs index 8782af2486d7..4f0950bec4a0 100644 --- a/crates/store/re_types/src/blueprint/components/visual_bounds2d.rs +++ b/crates/store/re_types/src/blueprint/components/visual_bounds2d.rs @@ -106,3 +106,10 @@ impl ::re_types_core::Loggable for VisualBounds2D { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::AsComponents for VisualBounds2D { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/components/aggregation_policy.rs b/crates/store/re_types/src/components/aggregation_policy.rs index c8b696f5a2d2..a478f4b6c275 100644 --- a/crates/store/re_types/src/components/aggregation_policy.rs +++ b/crates/store/re_types/src/components/aggregation_policy.rs @@ -191,3 +191,10 @@ impl ::re_types_core::Loggable for AggregationPolicy { .with_context("rerun.components.AggregationPolicy")?) } } + +impl ::re_types_core::AsComponents for AggregationPolicy { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/components/albedo_factor.rs b/crates/store/re_types/src/components/albedo_factor.rs index ceb765af3c48..16f1d2c759dc 100644 --- a/crates/store/re_types/src/components/albedo_factor.rs +++ b/crates/store/re_types/src/components/albedo_factor.rs @@ -113,3 +113,10 @@ impl ::re_types_core::Loggable for AlbedoFactor { crate::datatypes::Rgba32::from_arrow(arrow_data).map(bytemuck::cast_vec) } } + +impl ::re_types_core::AsComponents for AlbedoFactor { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/components/annotation_context.rs b/crates/store/re_types/src/components/annotation_context.rs index 92586ad41951..24b80920ff1c 100644 --- a/crates/store/re_types/src/components/annotation_context.rs +++ b/crates/store/re_types/src/components/annotation_context.rs @@ -188,3 +188,10 @@ impl ::re_types_core::Loggable for AnnotationContext { .with_context("rerun.components.AnnotationContext")?) } } + +impl ::re_types_core::AsComponents for AnnotationContext { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/components/axis_length.rs b/crates/store/re_types/src/components/axis_length.rs index 0b23184a2689..e418596267e0 100644 --- a/crates/store/re_types/src/components/axis_length.rs +++ b/crates/store/re_types/src/components/axis_length.rs @@ -111,3 +111,10 @@ impl ::re_types_core::Loggable for AxisLength { crate::datatypes::Float32::from_arrow(arrow_data).map(|v| v.into_iter().map(Self).collect()) } } + +impl ::re_types_core::AsComponents for AxisLength { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/components/blob.rs b/crates/store/re_types/src/components/blob.rs index 5eaa2871021b..e4b9ef116b62 100644 --- a/crates/store/re_types/src/components/blob.rs +++ b/crates/store/re_types/src/components/blob.rs @@ -105,3 +105,10 @@ impl ::re_types_core::Loggable for Blob { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::AsComponents for Blob { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/components/class_id.rs b/crates/store/re_types/src/components/class_id.rs index 140bc5db8707..a89828fa00eb 100644 --- a/crates/store/re_types/src/components/class_id.rs +++ b/crates/store/re_types/src/components/class_id.rs @@ -116,3 +116,10 @@ impl ::re_types_core::Loggable for ClassId { crate::datatypes::ClassId::from_arrow(arrow_data).map(bytemuck::cast_vec) } } + +impl ::re_types_core::AsComponents for ClassId { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/components/color.rs b/crates/store/re_types/src/components/color.rs index 49eeec45e360..a0c89a9844ff 100644 --- a/crates/store/re_types/src/components/color.rs +++ b/crates/store/re_types/src/components/color.rs @@ -114,3 +114,10 @@ impl ::re_types_core::Loggable for Color { crate::datatypes::Rgba32::from_arrow(arrow_data).map(bytemuck::cast_vec) } } + +impl ::re_types_core::AsComponents for Color { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/components/colormap.rs b/crates/store/re_types/src/components/colormap.rs index 3110a4077440..f6bb5fc280df 100644 --- a/crates/store/re_types/src/components/colormap.rs +++ b/crates/store/re_types/src/components/colormap.rs @@ -229,3 +229,10 @@ impl ::re_types_core::Loggable for Colormap { .with_context("rerun.components.Colormap")?) } } + +impl ::re_types_core::AsComponents for Colormap { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/components/depth_meter.rs b/crates/store/re_types/src/components/depth_meter.rs index 65783a841f44..7ee4db2c9823 100644 --- a/crates/store/re_types/src/components/depth_meter.rs +++ b/crates/store/re_types/src/components/depth_meter.rs @@ -118,3 +118,10 @@ impl ::re_types_core::Loggable for DepthMeter { crate::datatypes::Float32::from_arrow(arrow_data).map(bytemuck::cast_vec) } } + +impl ::re_types_core::AsComponents for DepthMeter { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/components/disconnected_space.rs b/crates/store/re_types/src/components/disconnected_space.rs index 7ee41dd19b19..0aaa6079f52a 100644 --- a/crates/store/re_types/src/components/disconnected_space.rs +++ b/crates/store/re_types/src/components/disconnected_space.rs @@ -114,3 +114,10 @@ impl ::re_types_core::Loggable for DisconnectedSpace { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::AsComponents for DisconnectedSpace { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/components/draw_order.rs b/crates/store/re_types/src/components/draw_order.rs index 4e8f06ae33d1..e7a0eead8011 100644 --- a/crates/store/re_types/src/components/draw_order.rs +++ b/crates/store/re_types/src/components/draw_order.rs @@ -116,3 +116,10 @@ impl ::re_types_core::Loggable for DrawOrder { crate::datatypes::Float32::from_arrow(arrow_data).map(|v| v.into_iter().map(Self).collect()) } } + +impl ::re_types_core::AsComponents for DrawOrder { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/components/entity_path.rs b/crates/store/re_types/src/components/entity_path.rs index 2275f2cb5a79..11dffe6c178b 100644 --- a/crates/store/re_types/src/components/entity_path.rs +++ b/crates/store/re_types/src/components/entity_path.rs @@ -103,3 +103,10 @@ impl ::re_types_core::Loggable for EntityPath { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::AsComponents for EntityPath { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/components/fill_mode.rs b/crates/store/re_types/src/components/fill_mode.rs index d434fd8d1a4a..93337d026ee7 100644 --- a/crates/store/re_types/src/components/fill_mode.rs +++ b/crates/store/re_types/src/components/fill_mode.rs @@ -174,3 +174,10 @@ impl ::re_types_core::Loggable for FillMode { .with_context("rerun.components.FillMode")?) } } + +impl ::re_types_core::AsComponents for FillMode { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/components/fill_ratio.rs b/crates/store/re_types/src/components/fill_ratio.rs index a6305ab5e483..f21374fef169 100644 --- a/crates/store/re_types/src/components/fill_ratio.rs +++ b/crates/store/re_types/src/components/fill_ratio.rs @@ -116,3 +116,10 @@ impl ::re_types_core::Loggable for FillRatio { crate::datatypes::Float32::from_arrow(arrow_data).map(bytemuck::cast_vec) } } + +impl ::re_types_core::AsComponents for FillRatio { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/components/gamma_correction.rs b/crates/store/re_types/src/components/gamma_correction.rs index 5b9b3782cc9f..c94684b5f348 100644 --- a/crates/store/re_types/src/components/gamma_correction.rs +++ b/crates/store/re_types/src/components/gamma_correction.rs @@ -117,3 +117,10 @@ impl ::re_types_core::Loggable for GammaCorrection { crate::datatypes::Float32::from_arrow(arrow_data).map(bytemuck::cast_vec) } } + +impl ::re_types_core::AsComponents for GammaCorrection { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/components/half_size2d.rs b/crates/store/re_types/src/components/half_size2d.rs index 8db2d8f005ec..e813d0b79928 100644 --- a/crates/store/re_types/src/components/half_size2d.rs +++ b/crates/store/re_types/src/components/half_size2d.rs @@ -116,3 +116,10 @@ impl ::re_types_core::Loggable for HalfSize2D { crate::datatypes::Vec2D::from_arrow(arrow_data).map(bytemuck::cast_vec) } } + +impl ::re_types_core::AsComponents for HalfSize2D { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/components/half_size3d.rs b/crates/store/re_types/src/components/half_size3d.rs index f5f746b8ef69..7bd24d162b40 100644 --- a/crates/store/re_types/src/components/half_size3d.rs +++ b/crates/store/re_types/src/components/half_size3d.rs @@ -116,3 +116,10 @@ impl ::re_types_core::Loggable for HalfSize3D { crate::datatypes::Vec3D::from_arrow(arrow_data).map(bytemuck::cast_vec) } } + +impl ::re_types_core::AsComponents for HalfSize3D { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/components/image_buffer.rs b/crates/store/re_types/src/components/image_buffer.rs index 969b2cd0825c..92ea30059215 100644 --- a/crates/store/re_types/src/components/image_buffer.rs +++ b/crates/store/re_types/src/components/image_buffer.rs @@ -105,3 +105,10 @@ impl ::re_types_core::Loggable for ImageBuffer { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::AsComponents for ImageBuffer { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/components/image_format.rs b/crates/store/re_types/src/components/image_format.rs index 61925ea54a25..6b5f858faae7 100644 --- a/crates/store/re_types/src/components/image_format.rs +++ b/crates/store/re_types/src/components/image_format.rs @@ -103,3 +103,10 @@ impl ::re_types_core::Loggable for ImageFormat { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::AsComponents for ImageFormat { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/components/image_plane_distance.rs b/crates/store/re_types/src/components/image_plane_distance.rs index 6992c07a7162..047c4a06136c 100644 --- a/crates/store/re_types/src/components/image_plane_distance.rs +++ b/crates/store/re_types/src/components/image_plane_distance.rs @@ -112,3 +112,10 @@ impl ::re_types_core::Loggable for ImagePlaneDistance { crate::datatypes::Float32::from_arrow(arrow_data).map(|v| v.into_iter().map(Self).collect()) } } + +impl ::re_types_core::AsComponents for ImagePlaneDistance { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/components/keypoint_id.rs b/crates/store/re_types/src/components/keypoint_id.rs index 7c2be2e6e544..61e358a1f972 100644 --- a/crates/store/re_types/src/components/keypoint_id.rs +++ b/crates/store/re_types/src/components/keypoint_id.rs @@ -128,3 +128,10 @@ impl ::re_types_core::Loggable for KeypointId { crate::datatypes::KeypointId::from_arrow(arrow_data).map(bytemuck::cast_vec) } } + +impl ::re_types_core::AsComponents for KeypointId { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/components/line_strip2d.rs b/crates/store/re_types/src/components/line_strip2d.rs index 5942a0f9b7cd..3afc6969d6d5 100644 --- a/crates/store/re_types/src/components/line_strip2d.rs +++ b/crates/store/re_types/src/components/line_strip2d.rs @@ -272,3 +272,10 @@ impl ::re_types_core::Loggable for LineStrip2D { .with_context("rerun.components.LineStrip2D")?) } } + +impl ::re_types_core::AsComponents for LineStrip2D { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/components/line_strip3d.rs b/crates/store/re_types/src/components/line_strip3d.rs index 740bca74de34..77141b69fef5 100644 --- a/crates/store/re_types/src/components/line_strip3d.rs +++ b/crates/store/re_types/src/components/line_strip3d.rs @@ -272,3 +272,10 @@ impl ::re_types_core::Loggable for LineStrip3D { .with_context("rerun.components.LineStrip3D")?) } } + +impl ::re_types_core::AsComponents for LineStrip3D { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/components/magnification_filter.rs b/crates/store/re_types/src/components/magnification_filter.rs index be0b6392be3d..3da54329f340 100644 --- a/crates/store/re_types/src/components/magnification_filter.rs +++ b/crates/store/re_types/src/components/magnification_filter.rs @@ -159,3 +159,10 @@ impl ::re_types_core::Loggable for MagnificationFilter { .with_context("rerun.components.MagnificationFilter")?) } } + +impl ::re_types_core::AsComponents for MagnificationFilter { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/components/marker_shape.rs b/crates/store/re_types/src/components/marker_shape.rs index 78da7ffeb1f9..d7a2a2f0b181 100644 --- a/crates/store/re_types/src/components/marker_shape.rs +++ b/crates/store/re_types/src/components/marker_shape.rs @@ -209,3 +209,10 @@ impl ::re_types_core::Loggable for MarkerShape { .with_context("rerun.components.MarkerShape")?) } } + +impl ::re_types_core::AsComponents for MarkerShape { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/components/marker_size.rs b/crates/store/re_types/src/components/marker_size.rs index afbf17681e4f..ba66c67be2be 100644 --- a/crates/store/re_types/src/components/marker_size.rs +++ b/crates/store/re_types/src/components/marker_size.rs @@ -111,3 +111,10 @@ impl ::re_types_core::Loggable for MarkerSize { crate::datatypes::Float32::from_arrow(arrow_data).map(bytemuck::cast_vec) } } + +impl ::re_types_core::AsComponents for MarkerSize { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/components/media_type.rs b/crates/store/re_types/src/components/media_type.rs index b537a18b7018..cce46927ace5 100644 --- a/crates/store/re_types/src/components/media_type.rs +++ b/crates/store/re_types/src/components/media_type.rs @@ -106,3 +106,10 @@ impl ::re_types_core::Loggable for MediaType { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::AsComponents for MediaType { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/components/name.rs b/crates/store/re_types/src/components/name.rs index 594eeaa745fb..e5910193b727 100644 --- a/crates/store/re_types/src/components/name.rs +++ b/crates/store/re_types/src/components/name.rs @@ -103,3 +103,10 @@ impl ::re_types_core::Loggable for Name { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::AsComponents for Name { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/components/opacity.rs b/crates/store/re_types/src/components/opacity.rs index 0651b18a08f0..60d942003212 100644 --- a/crates/store/re_types/src/components/opacity.rs +++ b/crates/store/re_types/src/components/opacity.rs @@ -114,3 +114,10 @@ impl ::re_types_core::Loggable for Opacity { crate::datatypes::Float32::from_arrow(arrow_data).map(bytemuck::cast_vec) } } + +impl ::re_types_core::AsComponents for Opacity { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/components/pinhole_projection.rs b/crates/store/re_types/src/components/pinhole_projection.rs index e0a39b009371..5c6fb39da03d 100644 --- a/crates/store/re_types/src/components/pinhole_projection.rs +++ b/crates/store/re_types/src/components/pinhole_projection.rs @@ -120,3 +120,10 @@ impl ::re_types_core::Loggable for PinholeProjection { crate::datatypes::Mat3x3::from_arrow(arrow_data).map(|v| v.into_iter().map(Self).collect()) } } + +impl ::re_types_core::AsComponents for PinholeProjection { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/components/pose_rotation_axis_angle.rs b/crates/store/re_types/src/components/pose_rotation_axis_angle.rs index db162c66e7ef..47a885374e1b 100644 --- a/crates/store/re_types/src/components/pose_rotation_axis_angle.rs +++ b/crates/store/re_types/src/components/pose_rotation_axis_angle.rs @@ -103,3 +103,10 @@ impl ::re_types_core::Loggable for PoseRotationAxisAngle { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::AsComponents for PoseRotationAxisAngle { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/components/pose_rotation_quat.rs b/crates/store/re_types/src/components/pose_rotation_quat.rs index cc86aac9e174..bf0f795e9155 100644 --- a/crates/store/re_types/src/components/pose_rotation_quat.rs +++ b/crates/store/re_types/src/components/pose_rotation_quat.rs @@ -114,3 +114,10 @@ impl ::re_types_core::Loggable for PoseRotationQuat { crate::datatypes::Quaternion::from_arrow(arrow_data).map(bytemuck::cast_vec) } } + +impl ::re_types_core::AsComponents for PoseRotationQuat { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/components/pose_scale3d.rs b/crates/store/re_types/src/components/pose_scale3d.rs index 1c804e337479..a6c205bfa91e 100644 --- a/crates/store/re_types/src/components/pose_scale3d.rs +++ b/crates/store/re_types/src/components/pose_scale3d.rs @@ -115,3 +115,10 @@ impl ::re_types_core::Loggable for PoseScale3D { crate::datatypes::Vec3D::from_arrow(arrow_data).map(bytemuck::cast_vec) } } + +impl ::re_types_core::AsComponents for PoseScale3D { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/components/pose_transform_mat3x3.rs b/crates/store/re_types/src/components/pose_transform_mat3x3.rs index 24881c51d910..70f887e9db39 100644 --- a/crates/store/re_types/src/components/pose_transform_mat3x3.rs +++ b/crates/store/re_types/src/components/pose_transform_mat3x3.rs @@ -123,3 +123,10 @@ impl ::re_types_core::Loggable for PoseTransformMat3x3 { crate::datatypes::Mat3x3::from_arrow(arrow_data).map(bytemuck::cast_vec) } } + +impl ::re_types_core::AsComponents for PoseTransformMat3x3 { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/components/pose_translation3d.rs b/crates/store/re_types/src/components/pose_translation3d.rs index 8355b5a2665a..e89bad7b9766 100644 --- a/crates/store/re_types/src/components/pose_translation3d.rs +++ b/crates/store/re_types/src/components/pose_translation3d.rs @@ -111,3 +111,10 @@ impl ::re_types_core::Loggable for PoseTranslation3D { crate::datatypes::Vec3D::from_arrow(arrow_data).map(bytemuck::cast_vec) } } + +impl ::re_types_core::AsComponents for PoseTranslation3D { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/components/position2d.rs b/crates/store/re_types/src/components/position2d.rs index 458f005edb66..00c24a8dd132 100644 --- a/crates/store/re_types/src/components/position2d.rs +++ b/crates/store/re_types/src/components/position2d.rs @@ -111,3 +111,10 @@ impl ::re_types_core::Loggable for Position2D { crate::datatypes::Vec2D::from_arrow(arrow_data).map(bytemuck::cast_vec) } } + +impl ::re_types_core::AsComponents for Position2D { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/components/position3d.rs b/crates/store/re_types/src/components/position3d.rs index 04346cf26b49..9415d4d1892d 100644 --- a/crates/store/re_types/src/components/position3d.rs +++ b/crates/store/re_types/src/components/position3d.rs @@ -111,3 +111,10 @@ impl ::re_types_core::Loggable for Position3D { crate::datatypes::Vec3D::from_arrow(arrow_data).map(bytemuck::cast_vec) } } + +impl ::re_types_core::AsComponents for Position3D { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/components/radius.rs b/crates/store/re_types/src/components/radius.rs index b9e799191a76..83d6a26ba181 100644 --- a/crates/store/re_types/src/components/radius.rs +++ b/crates/store/re_types/src/components/radius.rs @@ -118,3 +118,10 @@ impl ::re_types_core::Loggable for Radius { crate::datatypes::Float32::from_arrow(arrow_data).map(bytemuck::cast_vec) } } + +impl ::re_types_core::AsComponents for Radius { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/components/range1d.rs b/crates/store/re_types/src/components/range1d.rs index b9559677ab7e..d5356ab6bf96 100644 --- a/crates/store/re_types/src/components/range1d.rs +++ b/crates/store/re_types/src/components/range1d.rs @@ -111,3 +111,10 @@ impl ::re_types_core::Loggable for Range1D { crate::datatypes::Range1D::from_arrow(arrow_data).map(bytemuck::cast_vec) } } + +impl ::re_types_core::AsComponents for Range1D { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/components/resolution.rs b/crates/store/re_types/src/components/resolution.rs index e53a361af936..526c05152724 100644 --- a/crates/store/re_types/src/components/resolution.rs +++ b/crates/store/re_types/src/components/resolution.rs @@ -112,3 +112,10 @@ impl ::re_types_core::Loggable for Resolution { crate::datatypes::Vec2D::from_arrow(arrow_data).map(|v| v.into_iter().map(Self).collect()) } } + +impl ::re_types_core::AsComponents for Resolution { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/components/rotation_axis_angle.rs b/crates/store/re_types/src/components/rotation_axis_angle.rs index a75035c69b46..0caac25ac775 100644 --- a/crates/store/re_types/src/components/rotation_axis_angle.rs +++ b/crates/store/re_types/src/components/rotation_axis_angle.rs @@ -103,3 +103,10 @@ impl ::re_types_core::Loggable for RotationAxisAngle { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::AsComponents for RotationAxisAngle { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/components/rotation_quat.rs b/crates/store/re_types/src/components/rotation_quat.rs index 1de2470e79ad..2e97ce8d8e83 100644 --- a/crates/store/re_types/src/components/rotation_quat.rs +++ b/crates/store/re_types/src/components/rotation_quat.rs @@ -114,3 +114,10 @@ impl ::re_types_core::Loggable for RotationQuat { crate::datatypes::Quaternion::from_arrow(arrow_data).map(bytemuck::cast_vec) } } + +impl ::re_types_core::AsComponents for RotationQuat { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/components/scalar.rs b/crates/store/re_types/src/components/scalar.rs index f98bdae0300c..592fa77101ac 100644 --- a/crates/store/re_types/src/components/scalar.rs +++ b/crates/store/re_types/src/components/scalar.rs @@ -113,3 +113,10 @@ impl ::re_types_core::Loggable for Scalar { crate::datatypes::Float64::from_arrow(arrow_data).map(bytemuck::cast_vec) } } + +impl ::re_types_core::AsComponents for Scalar { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/components/scale3d.rs b/crates/store/re_types/src/components/scale3d.rs index 05e5b420b6f0..6aca378aa718 100644 --- a/crates/store/re_types/src/components/scale3d.rs +++ b/crates/store/re_types/src/components/scale3d.rs @@ -115,3 +115,10 @@ impl ::re_types_core::Loggable for Scale3D { crate::datatypes::Vec3D::from_arrow(arrow_data).map(bytemuck::cast_vec) } } + +impl ::re_types_core::AsComponents for Scale3D { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/components/show_labels.rs b/crates/store/re_types/src/components/show_labels.rs index b03e07a83e25..26ff0c2dbefb 100644 --- a/crates/store/re_types/src/components/show_labels.rs +++ b/crates/store/re_types/src/components/show_labels.rs @@ -109,3 +109,10 @@ impl ::re_types_core::Loggable for ShowLabels { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::AsComponents for ShowLabels { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/components/stroke_width.rs b/crates/store/re_types/src/components/stroke_width.rs index a2b1d8540d13..a7a5195416f6 100644 --- a/crates/store/re_types/src/components/stroke_width.rs +++ b/crates/store/re_types/src/components/stroke_width.rs @@ -111,3 +111,10 @@ impl ::re_types_core::Loggable for StrokeWidth { crate::datatypes::Float32::from_arrow(arrow_data).map(bytemuck::cast_vec) } } + +impl ::re_types_core::AsComponents for StrokeWidth { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/components/tensor_data.rs b/crates/store/re_types/src/components/tensor_data.rs index 72bb16a09f25..62dfa64cfcbb 100644 --- a/crates/store/re_types/src/components/tensor_data.rs +++ b/crates/store/re_types/src/components/tensor_data.rs @@ -110,3 +110,10 @@ impl ::re_types_core::Loggable for TensorData { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::AsComponents for TensorData { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/components/tensor_dimension_index_selection.rs b/crates/store/re_types/src/components/tensor_dimension_index_selection.rs index 9635e4466392..052af1cfb6ae 100644 --- a/crates/store/re_types/src/components/tensor_dimension_index_selection.rs +++ b/crates/store/re_types/src/components/tensor_dimension_index_selection.rs @@ -109,3 +109,10 @@ impl ::re_types_core::Loggable for TensorDimensionIndexSelection { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::AsComponents for TensorDimensionIndexSelection { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/components/tensor_height_dimension.rs b/crates/store/re_types/src/components/tensor_height_dimension.rs index 30b2f540c37f..a69667c2d360 100644 --- a/crates/store/re_types/src/components/tensor_height_dimension.rs +++ b/crates/store/re_types/src/components/tensor_height_dimension.rs @@ -103,3 +103,10 @@ impl ::re_types_core::Loggable for TensorHeightDimension { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::AsComponents for TensorHeightDimension { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/components/tensor_width_dimension.rs b/crates/store/re_types/src/components/tensor_width_dimension.rs index c6bf8e264f67..17b0de60e7ed 100644 --- a/crates/store/re_types/src/components/tensor_width_dimension.rs +++ b/crates/store/re_types/src/components/tensor_width_dimension.rs @@ -103,3 +103,10 @@ impl ::re_types_core::Loggable for TensorWidthDimension { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::AsComponents for TensorWidthDimension { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/components/texcoord2d.rs b/crates/store/re_types/src/components/texcoord2d.rs index 69ad88bd9992..00467de97546 100644 --- a/crates/store/re_types/src/components/texcoord2d.rs +++ b/crates/store/re_types/src/components/texcoord2d.rs @@ -126,3 +126,10 @@ impl ::re_types_core::Loggable for Texcoord2D { crate::datatypes::Vec2D::from_arrow(arrow_data).map(bytemuck::cast_vec) } } + +impl ::re_types_core::AsComponents for Texcoord2D { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/components/text.rs b/crates/store/re_types/src/components/text.rs index f59e6698ed83..9be5c7cb61f9 100644 --- a/crates/store/re_types/src/components/text.rs +++ b/crates/store/re_types/src/components/text.rs @@ -103,3 +103,10 @@ impl ::re_types_core::Loggable for Text { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::AsComponents for Text { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/components/text_log_level.rs b/crates/store/re_types/src/components/text_log_level.rs index 858983822b82..9ec291503c28 100644 --- a/crates/store/re_types/src/components/text_log_level.rs +++ b/crates/store/re_types/src/components/text_log_level.rs @@ -111,3 +111,10 @@ impl ::re_types_core::Loggable for TextLogLevel { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::AsComponents for TextLogLevel { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/components/transform_mat3x3.rs b/crates/store/re_types/src/components/transform_mat3x3.rs index b43f030c8db2..c45a474dce03 100644 --- a/crates/store/re_types/src/components/transform_mat3x3.rs +++ b/crates/store/re_types/src/components/transform_mat3x3.rs @@ -123,3 +123,10 @@ impl ::re_types_core::Loggable for TransformMat3x3 { crate::datatypes::Mat3x3::from_arrow(arrow_data).map(bytemuck::cast_vec) } } + +impl ::re_types_core::AsComponents for TransformMat3x3 { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/components/transform_relation.rs b/crates/store/re_types/src/components/transform_relation.rs index 06137a33b181..ce484d39c54e 100644 --- a/crates/store/re_types/src/components/transform_relation.rs +++ b/crates/store/re_types/src/components/transform_relation.rs @@ -162,3 +162,10 @@ impl ::re_types_core::Loggable for TransformRelation { .with_context("rerun.components.TransformRelation")?) } } + +impl ::re_types_core::AsComponents for TransformRelation { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/components/translation3d.rs b/crates/store/re_types/src/components/translation3d.rs index 89b150684914..e679b141d55e 100644 --- a/crates/store/re_types/src/components/translation3d.rs +++ b/crates/store/re_types/src/components/translation3d.rs @@ -111,3 +111,10 @@ impl ::re_types_core::Loggable for Translation3D { crate::datatypes::Vec3D::from_arrow(arrow_data).map(bytemuck::cast_vec) } } + +impl ::re_types_core::AsComponents for Translation3D { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/components/triangle_indices.rs b/crates/store/re_types/src/components/triangle_indices.rs index 4e3dc2537c70..dd225d005109 100644 --- a/crates/store/re_types/src/components/triangle_indices.rs +++ b/crates/store/re_types/src/components/triangle_indices.rs @@ -111,3 +111,10 @@ impl ::re_types_core::Loggable for TriangleIndices { crate::datatypes::UVec3D::from_arrow(arrow_data).map(bytemuck::cast_vec) } } + +impl ::re_types_core::AsComponents for TriangleIndices { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/components/value_range.rs b/crates/store/re_types/src/components/value_range.rs index b5c44c0a28ff..2375a432c3cf 100644 --- a/crates/store/re_types/src/components/value_range.rs +++ b/crates/store/re_types/src/components/value_range.rs @@ -111,3 +111,10 @@ impl ::re_types_core::Loggable for ValueRange { crate::datatypes::Range1D::from_arrow(arrow_data).map(bytemuck::cast_vec) } } + +impl ::re_types_core::AsComponents for ValueRange { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/components/vector2d.rs b/crates/store/re_types/src/components/vector2d.rs index a46386b7ea93..f97417f141c0 100644 --- a/crates/store/re_types/src/components/vector2d.rs +++ b/crates/store/re_types/src/components/vector2d.rs @@ -111,3 +111,10 @@ impl ::re_types_core::Loggable for Vector2D { crate::datatypes::Vec2D::from_arrow(arrow_data).map(bytemuck::cast_vec) } } + +impl ::re_types_core::AsComponents for Vector2D { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/components/vector3d.rs b/crates/store/re_types/src/components/vector3d.rs index 292ce0ac302a..aa1aeedbbfb0 100644 --- a/crates/store/re_types/src/components/vector3d.rs +++ b/crates/store/re_types/src/components/vector3d.rs @@ -111,3 +111,10 @@ impl ::re_types_core::Loggable for Vector3D { crate::datatypes::Vec3D::from_arrow(arrow_data).map(bytemuck::cast_vec) } } + +impl ::re_types_core::AsComponents for Vector3D { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/components/video_timestamp.rs b/crates/store/re_types/src/components/video_timestamp.rs index 704905e80090..382c5d425ff3 100644 --- a/crates/store/re_types/src/components/video_timestamp.rs +++ b/crates/store/re_types/src/components/video_timestamp.rs @@ -112,3 +112,10 @@ impl ::re_types_core::Loggable for VideoTimestamp { .map(|v| v.into_iter().map(Self).collect()) } } + +impl ::re_types_core::AsComponents for VideoTimestamp { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/components/view_coordinates.rs b/crates/store/re_types/src/components/view_coordinates.rs index 1fece1f587dc..9f9342ebaa0e 100644 --- a/crates/store/re_types/src/components/view_coordinates.rs +++ b/crates/store/re_types/src/components/view_coordinates.rs @@ -131,3 +131,10 @@ impl ::re_types_core::Loggable for ViewCoordinates { crate::datatypes::ViewCoordinates::from_arrow(arrow_data).map(bytemuck::cast_vec) } } + +impl ::re_types_core::AsComponents for ViewCoordinates { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/testing/components/affix_fuzzer1.rs b/crates/store/re_types/src/testing/components/affix_fuzzer1.rs index 4b253d63e2e3..6eb6aa494b26 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer1.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer1.rs @@ -101,3 +101,10 @@ impl ::re_types_core::Loggable for AffixFuzzer1 { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::AsComponents for AffixFuzzer1 { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/testing/components/affix_fuzzer10.rs b/crates/store/re_types/src/testing/components/affix_fuzzer10.rs index 6fcceeb18059..79fcb68d9a9b 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer10.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer10.rs @@ -183,3 +183,10 @@ impl ::re_types_core::Loggable for AffixFuzzer10 { .with_context("rerun.testing.components.AffixFuzzer10")?) } } + +impl ::re_types_core::AsComponents for AffixFuzzer10 { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/testing/components/affix_fuzzer11.rs b/crates/store/re_types/src/testing/components/affix_fuzzer11.rs index d12122290bb0..db969bf66e89 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer11.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer11.rs @@ -210,3 +210,10 @@ impl ::re_types_core::Loggable for AffixFuzzer11 { .with_context("rerun.testing.components.AffixFuzzer11")?) } } + +impl ::re_types_core::AsComponents for AffixFuzzer11 { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/testing/components/affix_fuzzer12.rs b/crates/store/re_types/src/testing/components/affix_fuzzer12.rs index 98d9e4f0a01e..b674a61db650 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer12.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer12.rs @@ -258,3 +258,10 @@ impl ::re_types_core::Loggable for AffixFuzzer12 { .with_context("rerun.testing.components.AffixFuzzer12")?) } } + +impl ::re_types_core::AsComponents for AffixFuzzer12 { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/testing/components/affix_fuzzer13.rs b/crates/store/re_types/src/testing/components/affix_fuzzer13.rs index f0f025c89fb4..5e70b6e365d7 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer13.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer13.rs @@ -258,3 +258,10 @@ impl ::re_types_core::Loggable for AffixFuzzer13 { .with_context("rerun.testing.components.AffixFuzzer13")?) } } + +impl ::re_types_core::AsComponents for AffixFuzzer13 { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/testing/components/affix_fuzzer14.rs b/crates/store/re_types/src/testing/components/affix_fuzzer14.rs index d24c17d4afd8..bf7597b93925 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer14.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer14.rs @@ -101,3 +101,10 @@ impl ::re_types_core::Loggable for AffixFuzzer14 { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::AsComponents for AffixFuzzer14 { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/testing/components/affix_fuzzer15.rs b/crates/store/re_types/src/testing/components/affix_fuzzer15.rs index 450a139ca341..9777d043444c 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer15.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer15.rs @@ -155,3 +155,10 @@ impl ::re_types_core::Loggable for AffixFuzzer15 { ) } } + +impl ::re_types_core::AsComponents for AffixFuzzer15 { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/testing/components/affix_fuzzer16.rs b/crates/store/re_types/src/testing/components/affix_fuzzer16.rs index 9281e4e80876..199cc885dc5b 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer16.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer16.rs @@ -180,3 +180,10 @@ impl ::re_types_core::Loggable for AffixFuzzer16 { .with_context("rerun.testing.components.AffixFuzzer16")?) } } + +impl ::re_types_core::AsComponents for AffixFuzzer16 { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/testing/components/affix_fuzzer17.rs b/crates/store/re_types/src/testing/components/affix_fuzzer17.rs index 3fdc38581b48..77542edada54 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer17.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer17.rs @@ -180,3 +180,10 @@ impl ::re_types_core::Loggable for AffixFuzzer17 { .with_context("rerun.testing.components.AffixFuzzer17")?) } } + +impl ::re_types_core::AsComponents for AffixFuzzer17 { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/testing/components/affix_fuzzer18.rs b/crates/store/re_types/src/testing/components/affix_fuzzer18.rs index 32eb832e46e3..fb59919b53d9 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer18.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer18.rs @@ -180,3 +180,10 @@ impl ::re_types_core::Loggable for AffixFuzzer18 { .with_context("rerun.testing.components.AffixFuzzer18")?) } } + +impl ::re_types_core::AsComponents for AffixFuzzer18 { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/testing/components/affix_fuzzer19.rs b/crates/store/re_types/src/testing/components/affix_fuzzer19.rs index b085b048fc65..d6b0aa2351a1 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer19.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer19.rs @@ -101,3 +101,10 @@ impl ::re_types_core::Loggable for AffixFuzzer19 { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::AsComponents for AffixFuzzer19 { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/testing/components/affix_fuzzer2.rs b/crates/store/re_types/src/testing/components/affix_fuzzer2.rs index 6f01cb150214..23220ca9a76d 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer2.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer2.rs @@ -101,3 +101,10 @@ impl ::re_types_core::Loggable for AffixFuzzer2 { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::AsComponents for AffixFuzzer2 { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/testing/components/affix_fuzzer20.rs b/crates/store/re_types/src/testing/components/affix_fuzzer20.rs index d5cb12909fc4..65ad8fd72a5c 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer20.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer20.rs @@ -101,3 +101,10 @@ impl ::re_types_core::Loggable for AffixFuzzer20 { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::AsComponents for AffixFuzzer20 { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/testing/components/affix_fuzzer21.rs b/crates/store/re_types/src/testing/components/affix_fuzzer21.rs index ef62d646556b..4b2cb76ae05f 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer21.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer21.rs @@ -101,3 +101,10 @@ impl ::re_types_core::Loggable for AffixFuzzer21 { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::AsComponents for AffixFuzzer21 { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/testing/components/affix_fuzzer22.rs b/crates/store/re_types/src/testing/components/affix_fuzzer22.rs index 53e30a6ea4b5..ccd8c1c7112a 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer22.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer22.rs @@ -137,3 +137,10 @@ impl ::re_types_core::Loggable for AffixFuzzer22 { ) } } + +impl ::re_types_core::AsComponents for AffixFuzzer22 { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/testing/components/affix_fuzzer23.rs b/crates/store/re_types/src/testing/components/affix_fuzzer23.rs index 5c263fe02b53..86394faf5f3c 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer23.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer23.rs @@ -141,3 +141,10 @@ impl ::re_types_core::Loggable for AffixFuzzer23 { ) } } + +impl ::re_types_core::AsComponents for AffixFuzzer23 { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/testing/components/affix_fuzzer3.rs b/crates/store/re_types/src/testing/components/affix_fuzzer3.rs index ba368bae994e..64da37219162 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer3.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer3.rs @@ -101,3 +101,10 @@ impl ::re_types_core::Loggable for AffixFuzzer3 { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::AsComponents for AffixFuzzer3 { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/testing/components/affix_fuzzer4.rs b/crates/store/re_types/src/testing/components/affix_fuzzer4.rs index e3e78a4e62cd..2ee3b88addf6 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer4.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer4.rs @@ -168,3 +168,10 @@ impl ::re_types_core::Loggable for AffixFuzzer4 { ) } } + +impl ::re_types_core::AsComponents for AffixFuzzer4 { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/testing/components/affix_fuzzer5.rs b/crates/store/re_types/src/testing/components/affix_fuzzer5.rs index c30a488ca9d0..4deccd8e8e85 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer5.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer5.rs @@ -168,3 +168,10 @@ impl ::re_types_core::Loggable for AffixFuzzer5 { ) } } + +impl ::re_types_core::AsComponents for AffixFuzzer5 { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/testing/components/affix_fuzzer6.rs b/crates/store/re_types/src/testing/components/affix_fuzzer6.rs index 94b11c381495..8c6b9ad16be9 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer6.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer6.rs @@ -168,3 +168,10 @@ impl ::re_types_core::Loggable for AffixFuzzer6 { ) } } + +impl ::re_types_core::AsComponents for AffixFuzzer6 { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/testing/components/affix_fuzzer7.rs b/crates/store/re_types/src/testing/components/affix_fuzzer7.rs index e949bf59dcf1..7ea57270c11e 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer7.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer7.rs @@ -178,3 +178,10 @@ impl ::re_types_core::Loggable for AffixFuzzer7 { .with_context("rerun.testing.components.AffixFuzzer7")?) } } + +impl ::re_types_core::AsComponents for AffixFuzzer7 { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/testing/components/affix_fuzzer8.rs b/crates/store/re_types/src/testing/components/affix_fuzzer8.rs index b3370feebc6d..b57ae517fb61 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer8.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer8.rs @@ -139,3 +139,10 @@ impl ::re_types_core::Loggable for AffixFuzzer8 { .with_context("rerun.testing.components.AffixFuzzer8")?) } } + +impl ::re_types_core::AsComponents for AffixFuzzer8 { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types/src/testing/components/affix_fuzzer9.rs b/crates/store/re_types/src/testing/components/affix_fuzzer9.rs index 7ac90ee492b1..8e7c96e46192 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer9.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer9.rs @@ -183,3 +183,10 @@ impl ::re_types_core::Loggable for AffixFuzzer9 { .with_context("rerun.testing.components.AffixFuzzer9")?) } } + +impl ::re_types_core::AsComponents for AffixFuzzer9 { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types_blueprint/src/blueprint/components/auto_layout.rs b/crates/store/re_types_blueprint/src/blueprint/components/auto_layout.rs index 5ba1c344f50a..59ae38007d47 100644 --- a/crates/store/re_types_blueprint/src/blueprint/components/auto_layout.rs +++ b/crates/store/re_types_blueprint/src/blueprint/components/auto_layout.rs @@ -103,3 +103,10 @@ impl ::re_types_core::Loggable for AutoLayout { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::AsComponents for AutoLayout { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types_blueprint/src/blueprint/components/auto_space_views.rs b/crates/store/re_types_blueprint/src/blueprint/components/auto_space_views.rs index fa9ffd245e1d..a521fc639bfc 100644 --- a/crates/store/re_types_blueprint/src/blueprint/components/auto_space_views.rs +++ b/crates/store/re_types_blueprint/src/blueprint/components/auto_space_views.rs @@ -103,3 +103,10 @@ impl ::re_types_core::Loggable for AutoSpaceViews { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::AsComponents for AutoSpaceViews { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types_blueprint/src/blueprint/components/container_kind.rs b/crates/store/re_types_blueprint/src/blueprint/components/container_kind.rs index 4aecdd82322f..b971aa6b3557 100644 --- a/crates/store/re_types_blueprint/src/blueprint/components/container_kind.rs +++ b/crates/store/re_types_blueprint/src/blueprint/components/container_kind.rs @@ -162,3 +162,10 @@ impl ::re_types_core::Loggable for ContainerKind { .with_context("rerun.blueprint.components.ContainerKind")?) } } + +impl ::re_types_core::AsComponents for ContainerKind { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types_blueprint/src/blueprint/components/grid_columns.rs b/crates/store/re_types_blueprint/src/blueprint/components/grid_columns.rs index 2f430c2eabcf..f396c6282622 100644 --- a/crates/store/re_types_blueprint/src/blueprint/components/grid_columns.rs +++ b/crates/store/re_types_blueprint/src/blueprint/components/grid_columns.rs @@ -113,3 +113,10 @@ impl ::re_types_core::Loggable for GridColumns { crate::datatypes::UInt32::from_arrow(arrow_data).map(|v| v.into_iter().map(Self).collect()) } } + +impl ::re_types_core::AsComponents for GridColumns { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types_blueprint/src/blueprint/components/included_space_view.rs b/crates/store/re_types_blueprint/src/blueprint/components/included_space_view.rs index 7aae106fd90a..235d0a45e262 100644 --- a/crates/store/re_types_blueprint/src/blueprint/components/included_space_view.rs +++ b/crates/store/re_types_blueprint/src/blueprint/components/included_space_view.rs @@ -111,3 +111,10 @@ impl ::re_types_core::Loggable for IncludedSpaceView { crate::datatypes::Uuid::from_arrow(arrow_data).map(|v| v.into_iter().map(Self).collect()) } } + +impl ::re_types_core::AsComponents for IncludedSpaceView { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types_blueprint/src/blueprint/components/root_container.rs b/crates/store/re_types_blueprint/src/blueprint/components/root_container.rs index 3db3d4848871..1232f2131bc3 100644 --- a/crates/store/re_types_blueprint/src/blueprint/components/root_container.rs +++ b/crates/store/re_types_blueprint/src/blueprint/components/root_container.rs @@ -114,3 +114,10 @@ impl ::re_types_core::Loggable for RootContainer { crate::datatypes::Uuid::from_arrow(arrow_data).map(|v| v.into_iter().map(Self).collect()) } } + +impl ::re_types_core::AsComponents for RootContainer { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types_blueprint/src/blueprint/components/space_view_maximized.rs b/crates/store/re_types_blueprint/src/blueprint/components/space_view_maximized.rs index 77f34131136b..ca2af9c290a0 100644 --- a/crates/store/re_types_blueprint/src/blueprint/components/space_view_maximized.rs +++ b/crates/store/re_types_blueprint/src/blueprint/components/space_view_maximized.rs @@ -111,3 +111,10 @@ impl ::re_types_core::Loggable for SpaceViewMaximized { crate::datatypes::Uuid::from_arrow(arrow_data).map(|v| v.into_iter().map(Self).collect()) } } + +impl ::re_types_core::AsComponents for SpaceViewMaximized { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types_blueprint/src/blueprint/components/visualizer_overrides.rs b/crates/store/re_types_blueprint/src/blueprint/components/visualizer_overrides.rs index 3a8b3a87bd4b..30c7eee3fee1 100644 --- a/crates/store/re_types_blueprint/src/blueprint/components/visualizer_overrides.rs +++ b/crates/store/re_types_blueprint/src/blueprint/components/visualizer_overrides.rs @@ -138,3 +138,10 @@ impl ::re_types_core::Loggable for VisualizerOverrides { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::AsComponents for VisualizerOverrides { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} diff --git a/crates/store/re_types_core/src/components/clear_is_recursive.rs b/crates/store/re_types_core/src/components/clear_is_recursive.rs index b491e51eec71..295770764993 100644 --- a/crates/store/re_types_core/src/components/clear_is_recursive.rs +++ b/crates/store/re_types_core/src/components/clear_is_recursive.rs @@ -105,3 +105,10 @@ impl crate::Loggable for ClearIsRecursive { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl crate::AsComponents for ClearIsRecursive { + fn as_component_batches(&self) -> Vec> { + re_tracing::profile_function!(); + vec![(self as &dyn ComponentBatch).into()] + } +} From 33a4121f7e23ec8351b8c2c9366b1da776fad8fe Mon Sep 17 00:00:00 2001 From: Gijs de Jong Date: Wed, 16 Oct 2024 11:58:55 +0200 Subject: [PATCH 2/4] simple trait impl --- .../re_types_builder/src/codegen/rust/api.rs | 16 ---------------- .../src/blueprint/components/active_tab.rs | 7 ------- .../src/blueprint/components/apply_latest_at.rs | 7 ------- .../src/blueprint/components/background_kind.rs | 7 ------- .../src/blueprint/components/column_share.rs | 7 ------- .../components/component_column_selector.rs | 7 ------- .../src/blueprint/components/corner2d.rs | 7 ------- .../src/blueprint/components/filter_by_range.rs | 7 ------- .../blueprint/components/filter_is_not_null.rs | 7 ------- .../src/blueprint/components/included_content.rs | 7 ------- .../src/blueprint/components/interactive.rs | 7 ------- .../components/lock_range_during_zoom.rs | 7 ------- .../src/blueprint/components/panel_state.rs | 7 ------- .../src/blueprint/components/query_expression.rs | 7 ------- .../src/blueprint/components/row_share.rs | 7 ------- .../src/blueprint/components/selected_columns.rs | 7 ------- .../src/blueprint/components/space_view_class.rs | 7 ------- .../blueprint/components/space_view_origin.rs | 7 ------- .../components/tensor_dimension_index_slider.rs | 7 ------- .../src/blueprint/components/timeline_name.rs | 7 ------- .../src/blueprint/components/view_fit.rs | 7 ------- .../components/viewer_recommendation_hash.rs | 7 ------- .../re_types/src/blueprint/components/visible.rs | 7 ------- .../blueprint/components/visible_time_range.rs | 7 ------- .../src/blueprint/components/visual_bounds2d.rs | 7 ------- .../src/components/aggregation_policy.rs | 7 ------- .../re_types/src/components/albedo_factor.rs | 7 ------- .../src/components/annotation_context.rs | 7 ------- .../store/re_types/src/components/axis_length.rs | 7 ------- crates/store/re_types/src/components/blob.rs | 7 ------- crates/store/re_types/src/components/class_id.rs | 7 ------- crates/store/re_types/src/components/color.rs | 7 ------- crates/store/re_types/src/components/colormap.rs | 7 ------- .../store/re_types/src/components/depth_meter.rs | 7 ------- .../src/components/disconnected_space.rs | 7 ------- .../store/re_types/src/components/draw_order.rs | 7 ------- .../store/re_types/src/components/entity_path.rs | 7 ------- .../store/re_types/src/components/fill_mode.rs | 7 ------- .../store/re_types/src/components/fill_ratio.rs | 7 ------- .../re_types/src/components/gamma_correction.rs | 7 ------- .../store/re_types/src/components/half_size2d.rs | 7 ------- .../store/re_types/src/components/half_size3d.rs | 7 ------- .../re_types/src/components/image_buffer.rs | 7 ------- .../re_types/src/components/image_format.rs | 7 ------- .../src/components/image_plane_distance.rs | 7 ------- .../store/re_types/src/components/keypoint_id.rs | 7 ------- .../re_types/src/components/line_strip2d.rs | 7 ------- .../re_types/src/components/line_strip3d.rs | 7 ------- .../src/components/magnification_filter.rs | 7 ------- .../re_types/src/components/marker_shape.rs | 7 ------- .../store/re_types/src/components/marker_size.rs | 7 ------- .../store/re_types/src/components/media_type.rs | 7 ------- crates/store/re_types/src/components/name.rs | 7 ------- crates/store/re_types/src/components/opacity.rs | 7 ------- .../src/components/pinhole_projection.rs | 7 ------- .../src/components/pose_rotation_axis_angle.rs | 7 ------- .../src/components/pose_rotation_quat.rs | 7 ------- .../re_types/src/components/pose_scale3d.rs | 7 ------- .../src/components/pose_transform_mat3x3.rs | 7 ------- .../src/components/pose_translation3d.rs | 7 ------- .../store/re_types/src/components/position2d.rs | 7 ------- .../store/re_types/src/components/position3d.rs | 7 ------- crates/store/re_types/src/components/radius.rs | 7 ------- crates/store/re_types/src/components/range1d.rs | 7 ------- .../store/re_types/src/components/resolution.rs | 7 ------- .../src/components/rotation_axis_angle.rs | 7 ------- .../re_types/src/components/rotation_quat.rs | 7 ------- crates/store/re_types/src/components/scalar.rs | 7 ------- crates/store/re_types/src/components/scale3d.rs | 7 ------- .../store/re_types/src/components/show_labels.rs | 7 ------- .../re_types/src/components/stroke_width.rs | 7 ------- .../store/re_types/src/components/tensor_data.rs | 7 ------- .../tensor_dimension_index_selection.rs | 7 ------- .../src/components/tensor_height_dimension.rs | 7 ------- .../src/components/tensor_width_dimension.rs | 7 ------- .../store/re_types/src/components/texcoord2d.rs | 7 ------- crates/store/re_types/src/components/text.rs | 7 ------- .../re_types/src/components/text_log_level.rs | 7 ------- .../re_types/src/components/transform_mat3x3.rs | 7 ------- .../src/components/transform_relation.rs | 7 ------- .../re_types/src/components/translation3d.rs | 7 ------- .../re_types/src/components/triangle_indices.rs | 7 ------- .../store/re_types/src/components/value_range.rs | 7 ------- crates/store/re_types/src/components/vector2d.rs | 7 ------- crates/store/re_types/src/components/vector3d.rs | 7 ------- .../re_types/src/components/video_timestamp.rs | 7 ------- .../re_types/src/components/view_coordinates.rs | 7 ------- .../src/testing/components/affix_fuzzer1.rs | 7 ------- .../src/testing/components/affix_fuzzer10.rs | 7 ------- .../src/testing/components/affix_fuzzer11.rs | 7 ------- .../src/testing/components/affix_fuzzer12.rs | 7 ------- .../src/testing/components/affix_fuzzer13.rs | 7 ------- .../src/testing/components/affix_fuzzer14.rs | 7 ------- .../src/testing/components/affix_fuzzer15.rs | 7 ------- .../src/testing/components/affix_fuzzer16.rs | 7 ------- .../src/testing/components/affix_fuzzer17.rs | 7 ------- .../src/testing/components/affix_fuzzer18.rs | 7 ------- .../src/testing/components/affix_fuzzer19.rs | 7 ------- .../src/testing/components/affix_fuzzer2.rs | 7 ------- .../src/testing/components/affix_fuzzer20.rs | 7 ------- .../src/testing/components/affix_fuzzer21.rs | 7 ------- .../src/testing/components/affix_fuzzer22.rs | 7 ------- .../src/testing/components/affix_fuzzer23.rs | 7 ------- .../src/testing/components/affix_fuzzer3.rs | 7 ------- .../src/testing/components/affix_fuzzer4.rs | 7 ------- .../src/testing/components/affix_fuzzer5.rs | 7 ------- .../src/testing/components/affix_fuzzer6.rs | 7 ------- .../src/testing/components/affix_fuzzer7.rs | 7 ------- .../src/testing/components/affix_fuzzer8.rs | 7 ------- .../src/testing/components/affix_fuzzer9.rs | 7 ------- .../src/blueprint/components/auto_layout.rs | 7 ------- .../src/blueprint/components/auto_space_views.rs | 7 ------- .../src/blueprint/components/container_kind.rs | 7 ------- .../src/blueprint/components/grid_columns.rs | 7 ------- .../blueprint/components/included_space_view.rs | 7 ------- .../src/blueprint/components/root_container.rs | 7 ------- .../blueprint/components/space_view_maximized.rs | 7 ------- .../blueprint/components/visualizer_overrides.rs | 7 ------- .../src/components/clear_is_recursive.rs | 7 ------- crates/store/re_types_core/src/lib.rs | 7 +++++++ 120 files changed, 7 insertions(+), 842 deletions(-) diff --git a/crates/build/re_types_builder/src/codegen/rust/api.rs b/crates/build/re_types_builder/src/codegen/rust/api.rs index 7a8d8eaf4f41..4f31be5ed752 100644 --- a/crates/build/re_types_builder/src/codegen/rust/api.rs +++ b/crates/build/re_types_builder/src/codegen/rust/api.rs @@ -989,20 +989,6 @@ fn quote_trait_impls_for_datatype_or_component( } }; - let quoted_as_components_impl = if matches!(kind, ObjectKind::Component) { - quote! { - impl ::re_types_core::AsComponents for #name { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - - vec![(self as &dyn ComponentBatch).into()] - } - } - } - } else { - quote!() - }; - quote! { ::re_types_core::macros::impl_into_cow!(#name); @@ -1030,8 +1016,6 @@ fn quote_trait_impls_for_datatype_or_component( #quoted_from_arrow } - - #quoted_as_components_impl } } diff --git a/crates/store/re_types/src/blueprint/components/active_tab.rs b/crates/store/re_types/src/blueprint/components/active_tab.rs index e99a905d9726..ae4f5b55b5c7 100644 --- a/crates/store/re_types/src/blueprint/components/active_tab.rs +++ b/crates/store/re_types/src/blueprint/components/active_tab.rs @@ -107,10 +107,3 @@ impl ::re_types_core::Loggable for ActiveTab { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } - -impl ::re_types_core::AsComponents for ActiveTab { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/blueprint/components/apply_latest_at.rs b/crates/store/re_types/src/blueprint/components/apply_latest_at.rs index 4411604f4a70..447c4a783142 100644 --- a/crates/store/re_types/src/blueprint/components/apply_latest_at.rs +++ b/crates/store/re_types/src/blueprint/components/apply_latest_at.rs @@ -103,10 +103,3 @@ impl ::re_types_core::Loggable for ApplyLatestAt { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } - -impl ::re_types_core::AsComponents for ApplyLatestAt { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/blueprint/components/background_kind.rs b/crates/store/re_types/src/blueprint/components/background_kind.rs index b13278e3ecfe..d924523cc4f2 100644 --- a/crates/store/re_types/src/blueprint/components/background_kind.rs +++ b/crates/store/re_types/src/blueprint/components/background_kind.rs @@ -164,10 +164,3 @@ impl ::re_types_core::Loggable for BackgroundKind { .with_context("rerun.blueprint.components.BackgroundKind")?) } } - -impl ::re_types_core::AsComponents for BackgroundKind { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/blueprint/components/column_share.rs b/crates/store/re_types/src/blueprint/components/column_share.rs index 0562bdb8d991..33f5f40dcffa 100644 --- a/crates/store/re_types/src/blueprint/components/column_share.rs +++ b/crates/store/re_types/src/blueprint/components/column_share.rs @@ -113,10 +113,3 @@ impl ::re_types_core::Loggable for ColumnShare { crate::datatypes::Float32::from_arrow(arrow_data).map(|v| v.into_iter().map(Self).collect()) } } - -impl ::re_types_core::AsComponents for ColumnShare { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/blueprint/components/component_column_selector.rs b/crates/store/re_types/src/blueprint/components/component_column_selector.rs index c9557ef87494..21341b4a6953 100644 --- a/crates/store/re_types/src/blueprint/components/component_column_selector.rs +++ b/crates/store/re_types/src/blueprint/components/component_column_selector.rs @@ -109,10 +109,3 @@ impl ::re_types_core::Loggable for ComponentColumnSelector { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } - -impl ::re_types_core::AsComponents for ComponentColumnSelector { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/blueprint/components/corner2d.rs b/crates/store/re_types/src/blueprint/components/corner2d.rs index 4e089c6f60a1..f5d00addf4a2 100644 --- a/crates/store/re_types/src/blueprint/components/corner2d.rs +++ b/crates/store/re_types/src/blueprint/components/corner2d.rs @@ -167,10 +167,3 @@ impl ::re_types_core::Loggable for Corner2D { .with_context("rerun.blueprint.components.Corner2D")?) } } - -impl ::re_types_core::AsComponents for Corner2D { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/blueprint/components/filter_by_range.rs b/crates/store/re_types/src/blueprint/components/filter_by_range.rs index efd56b26dba3..727bc49ccc1d 100644 --- a/crates/store/re_types/src/blueprint/components/filter_by_range.rs +++ b/crates/store/re_types/src/blueprint/components/filter_by_range.rs @@ -103,10 +103,3 @@ impl ::re_types_core::Loggable for FilterByRange { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } - -impl ::re_types_core::AsComponents for FilterByRange { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/blueprint/components/filter_is_not_null.rs b/crates/store/re_types/src/blueprint/components/filter_is_not_null.rs index 1e6feea291ba..4b9aff41ea5c 100644 --- a/crates/store/re_types/src/blueprint/components/filter_is_not_null.rs +++ b/crates/store/re_types/src/blueprint/components/filter_is_not_null.rs @@ -103,10 +103,3 @@ impl ::re_types_core::Loggable for FilterIsNotNull { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } - -impl ::re_types_core::AsComponents for FilterIsNotNull { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/blueprint/components/included_content.rs b/crates/store/re_types/src/blueprint/components/included_content.rs index 287cacc0dece..5ce3ef226270 100644 --- a/crates/store/re_types/src/blueprint/components/included_content.rs +++ b/crates/store/re_types/src/blueprint/components/included_content.rs @@ -108,10 +108,3 @@ impl ::re_types_core::Loggable for IncludedContent { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } - -impl ::re_types_core::AsComponents for IncludedContent { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/blueprint/components/interactive.rs b/crates/store/re_types/src/blueprint/components/interactive.rs index 75cd9965201c..4c8027b42ea1 100644 --- a/crates/store/re_types/src/blueprint/components/interactive.rs +++ b/crates/store/re_types/src/blueprint/components/interactive.rs @@ -105,10 +105,3 @@ impl ::re_types_core::Loggable for Interactive { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } - -impl ::re_types_core::AsComponents for Interactive { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/blueprint/components/lock_range_during_zoom.rs b/crates/store/re_types/src/blueprint/components/lock_range_during_zoom.rs index 385a2478ebbd..a65da1a6ba96 100644 --- a/crates/store/re_types/src/blueprint/components/lock_range_during_zoom.rs +++ b/crates/store/re_types/src/blueprint/components/lock_range_during_zoom.rs @@ -105,10 +105,3 @@ impl ::re_types_core::Loggable for LockRangeDuringZoom { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } - -impl ::re_types_core::AsComponents for LockRangeDuringZoom { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/blueprint/components/panel_state.rs b/crates/store/re_types/src/blueprint/components/panel_state.rs index a85a58f04bac..a03e05b80050 100644 --- a/crates/store/re_types/src/blueprint/components/panel_state.rs +++ b/crates/store/re_types/src/blueprint/components/panel_state.rs @@ -156,10 +156,3 @@ impl ::re_types_core::Loggable for PanelState { .with_context("rerun.blueprint.components.PanelState")?) } } - -impl ::re_types_core::AsComponents for PanelState { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/blueprint/components/query_expression.rs b/crates/store/re_types/src/blueprint/components/query_expression.rs index f0b950d441e9..6e76d44af08a 100644 --- a/crates/store/re_types/src/blueprint/components/query_expression.rs +++ b/crates/store/re_types/src/blueprint/components/query_expression.rs @@ -112,10 +112,3 @@ impl ::re_types_core::Loggable for QueryExpression { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } - -impl ::re_types_core::AsComponents for QueryExpression { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/blueprint/components/row_share.rs b/crates/store/re_types/src/blueprint/components/row_share.rs index ed9f828273d5..79c7b788333c 100644 --- a/crates/store/re_types/src/blueprint/components/row_share.rs +++ b/crates/store/re_types/src/blueprint/components/row_share.rs @@ -113,10 +113,3 @@ impl ::re_types_core::Loggable for RowShare { crate::datatypes::Float32::from_arrow(arrow_data).map(|v| v.into_iter().map(Self).collect()) } } - -impl ::re_types_core::AsComponents for RowShare { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/blueprint/components/selected_columns.rs b/crates/store/re_types/src/blueprint/components/selected_columns.rs index ff2e04af5436..612a218a7b3c 100644 --- a/crates/store/re_types/src/blueprint/components/selected_columns.rs +++ b/crates/store/re_types/src/blueprint/components/selected_columns.rs @@ -103,10 +103,3 @@ impl ::re_types_core::Loggable for SelectedColumns { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } - -impl ::re_types_core::AsComponents for SelectedColumns { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/blueprint/components/space_view_class.rs b/crates/store/re_types/src/blueprint/components/space_view_class.rs index 0ee5abff8706..911eb17df625 100644 --- a/crates/store/re_types/src/blueprint/components/space_view_class.rs +++ b/crates/store/re_types/src/blueprint/components/space_view_class.rs @@ -103,10 +103,3 @@ impl ::re_types_core::Loggable for SpaceViewClass { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } - -impl ::re_types_core::AsComponents for SpaceViewClass { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/blueprint/components/space_view_origin.rs b/crates/store/re_types/src/blueprint/components/space_view_origin.rs index b05a494f30a8..8734ced94143 100644 --- a/crates/store/re_types/src/blueprint/components/space_view_origin.rs +++ b/crates/store/re_types/src/blueprint/components/space_view_origin.rs @@ -103,10 +103,3 @@ impl ::re_types_core::Loggable for SpaceViewOrigin { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } - -impl ::re_types_core::AsComponents for SpaceViewOrigin { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/blueprint/components/tensor_dimension_index_slider.rs b/crates/store/re_types/src/blueprint/components/tensor_dimension_index_slider.rs index e12f2544c848..87115b3fc4dc 100644 --- a/crates/store/re_types/src/blueprint/components/tensor_dimension_index_slider.rs +++ b/crates/store/re_types/src/blueprint/components/tensor_dimension_index_slider.rs @@ -109,10 +109,3 @@ impl ::re_types_core::Loggable for TensorDimensionIndexSlider { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } - -impl ::re_types_core::AsComponents for TensorDimensionIndexSlider { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/blueprint/components/timeline_name.rs b/crates/store/re_types/src/blueprint/components/timeline_name.rs index 6a11cf3baee1..de9eea0641c9 100644 --- a/crates/store/re_types/src/blueprint/components/timeline_name.rs +++ b/crates/store/re_types/src/blueprint/components/timeline_name.rs @@ -103,10 +103,3 @@ impl ::re_types_core::Loggable for TimelineName { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } - -impl ::re_types_core::AsComponents for TimelineName { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/blueprint/components/view_fit.rs b/crates/store/re_types/src/blueprint/components/view_fit.rs index cc6776d870a6..e99228f743d7 100644 --- a/crates/store/re_types/src/blueprint/components/view_fit.rs +++ b/crates/store/re_types/src/blueprint/components/view_fit.rs @@ -162,10 +162,3 @@ impl ::re_types_core::Loggable for ViewFit { .with_context("rerun.blueprint.components.ViewFit")?) } } - -impl ::re_types_core::AsComponents for ViewFit { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/blueprint/components/viewer_recommendation_hash.rs b/crates/store/re_types/src/blueprint/components/viewer_recommendation_hash.rs index 8b98d455ea36..0c5806b03d56 100644 --- a/crates/store/re_types/src/blueprint/components/viewer_recommendation_hash.rs +++ b/crates/store/re_types/src/blueprint/components/viewer_recommendation_hash.rs @@ -113,10 +113,3 @@ impl ::re_types_core::Loggable for ViewerRecommendationHash { crate::datatypes::UInt64::from_arrow(arrow_data).map(|v| v.into_iter().map(Self).collect()) } } - -impl ::re_types_core::AsComponents for ViewerRecommendationHash { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/blueprint/components/visible.rs b/crates/store/re_types/src/blueprint/components/visible.rs index 0db650f8230c..f91bd0cf62da 100644 --- a/crates/store/re_types/src/blueprint/components/visible.rs +++ b/crates/store/re_types/src/blueprint/components/visible.rs @@ -103,10 +103,3 @@ impl ::re_types_core::Loggable for Visible { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } - -impl ::re_types_core::AsComponents for Visible { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/blueprint/components/visible_time_range.rs b/crates/store/re_types/src/blueprint/components/visible_time_range.rs index b0110c850c53..919c636e6e6b 100644 --- a/crates/store/re_types/src/blueprint/components/visible_time_range.rs +++ b/crates/store/re_types/src/blueprint/components/visible_time_range.rs @@ -105,10 +105,3 @@ impl ::re_types_core::Loggable for VisibleTimeRange { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } - -impl ::re_types_core::AsComponents for VisibleTimeRange { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/blueprint/components/visual_bounds2d.rs b/crates/store/re_types/src/blueprint/components/visual_bounds2d.rs index 4f0950bec4a0..8782af2486d7 100644 --- a/crates/store/re_types/src/blueprint/components/visual_bounds2d.rs +++ b/crates/store/re_types/src/blueprint/components/visual_bounds2d.rs @@ -106,10 +106,3 @@ impl ::re_types_core::Loggable for VisualBounds2D { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } - -impl ::re_types_core::AsComponents for VisualBounds2D { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/components/aggregation_policy.rs b/crates/store/re_types/src/components/aggregation_policy.rs index a478f4b6c275..c8b696f5a2d2 100644 --- a/crates/store/re_types/src/components/aggregation_policy.rs +++ b/crates/store/re_types/src/components/aggregation_policy.rs @@ -191,10 +191,3 @@ impl ::re_types_core::Loggable for AggregationPolicy { .with_context("rerun.components.AggregationPolicy")?) } } - -impl ::re_types_core::AsComponents for AggregationPolicy { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/components/albedo_factor.rs b/crates/store/re_types/src/components/albedo_factor.rs index 16f1d2c759dc..ceb765af3c48 100644 --- a/crates/store/re_types/src/components/albedo_factor.rs +++ b/crates/store/re_types/src/components/albedo_factor.rs @@ -113,10 +113,3 @@ impl ::re_types_core::Loggable for AlbedoFactor { crate::datatypes::Rgba32::from_arrow(arrow_data).map(bytemuck::cast_vec) } } - -impl ::re_types_core::AsComponents for AlbedoFactor { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/components/annotation_context.rs b/crates/store/re_types/src/components/annotation_context.rs index 24b80920ff1c..92586ad41951 100644 --- a/crates/store/re_types/src/components/annotation_context.rs +++ b/crates/store/re_types/src/components/annotation_context.rs @@ -188,10 +188,3 @@ impl ::re_types_core::Loggable for AnnotationContext { .with_context("rerun.components.AnnotationContext")?) } } - -impl ::re_types_core::AsComponents for AnnotationContext { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/components/axis_length.rs b/crates/store/re_types/src/components/axis_length.rs index e418596267e0..0b23184a2689 100644 --- a/crates/store/re_types/src/components/axis_length.rs +++ b/crates/store/re_types/src/components/axis_length.rs @@ -111,10 +111,3 @@ impl ::re_types_core::Loggable for AxisLength { crate::datatypes::Float32::from_arrow(arrow_data).map(|v| v.into_iter().map(Self).collect()) } } - -impl ::re_types_core::AsComponents for AxisLength { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/components/blob.rs b/crates/store/re_types/src/components/blob.rs index e4b9ef116b62..5eaa2871021b 100644 --- a/crates/store/re_types/src/components/blob.rs +++ b/crates/store/re_types/src/components/blob.rs @@ -105,10 +105,3 @@ impl ::re_types_core::Loggable for Blob { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } - -impl ::re_types_core::AsComponents for Blob { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/components/class_id.rs b/crates/store/re_types/src/components/class_id.rs index a89828fa00eb..140bc5db8707 100644 --- a/crates/store/re_types/src/components/class_id.rs +++ b/crates/store/re_types/src/components/class_id.rs @@ -116,10 +116,3 @@ impl ::re_types_core::Loggable for ClassId { crate::datatypes::ClassId::from_arrow(arrow_data).map(bytemuck::cast_vec) } } - -impl ::re_types_core::AsComponents for ClassId { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/components/color.rs b/crates/store/re_types/src/components/color.rs index a0c89a9844ff..49eeec45e360 100644 --- a/crates/store/re_types/src/components/color.rs +++ b/crates/store/re_types/src/components/color.rs @@ -114,10 +114,3 @@ impl ::re_types_core::Loggable for Color { crate::datatypes::Rgba32::from_arrow(arrow_data).map(bytemuck::cast_vec) } } - -impl ::re_types_core::AsComponents for Color { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/components/colormap.rs b/crates/store/re_types/src/components/colormap.rs index f6bb5fc280df..3110a4077440 100644 --- a/crates/store/re_types/src/components/colormap.rs +++ b/crates/store/re_types/src/components/colormap.rs @@ -229,10 +229,3 @@ impl ::re_types_core::Loggable for Colormap { .with_context("rerun.components.Colormap")?) } } - -impl ::re_types_core::AsComponents for Colormap { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/components/depth_meter.rs b/crates/store/re_types/src/components/depth_meter.rs index 7ee4db2c9823..65783a841f44 100644 --- a/crates/store/re_types/src/components/depth_meter.rs +++ b/crates/store/re_types/src/components/depth_meter.rs @@ -118,10 +118,3 @@ impl ::re_types_core::Loggable for DepthMeter { crate::datatypes::Float32::from_arrow(arrow_data).map(bytemuck::cast_vec) } } - -impl ::re_types_core::AsComponents for DepthMeter { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/components/disconnected_space.rs b/crates/store/re_types/src/components/disconnected_space.rs index 0aaa6079f52a..7ee41dd19b19 100644 --- a/crates/store/re_types/src/components/disconnected_space.rs +++ b/crates/store/re_types/src/components/disconnected_space.rs @@ -114,10 +114,3 @@ impl ::re_types_core::Loggable for DisconnectedSpace { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } - -impl ::re_types_core::AsComponents for DisconnectedSpace { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/components/draw_order.rs b/crates/store/re_types/src/components/draw_order.rs index e7a0eead8011..4e8f06ae33d1 100644 --- a/crates/store/re_types/src/components/draw_order.rs +++ b/crates/store/re_types/src/components/draw_order.rs @@ -116,10 +116,3 @@ impl ::re_types_core::Loggable for DrawOrder { crate::datatypes::Float32::from_arrow(arrow_data).map(|v| v.into_iter().map(Self).collect()) } } - -impl ::re_types_core::AsComponents for DrawOrder { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/components/entity_path.rs b/crates/store/re_types/src/components/entity_path.rs index 11dffe6c178b..2275f2cb5a79 100644 --- a/crates/store/re_types/src/components/entity_path.rs +++ b/crates/store/re_types/src/components/entity_path.rs @@ -103,10 +103,3 @@ impl ::re_types_core::Loggable for EntityPath { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } - -impl ::re_types_core::AsComponents for EntityPath { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/components/fill_mode.rs b/crates/store/re_types/src/components/fill_mode.rs index 93337d026ee7..d434fd8d1a4a 100644 --- a/crates/store/re_types/src/components/fill_mode.rs +++ b/crates/store/re_types/src/components/fill_mode.rs @@ -174,10 +174,3 @@ impl ::re_types_core::Loggable for FillMode { .with_context("rerun.components.FillMode")?) } } - -impl ::re_types_core::AsComponents for FillMode { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/components/fill_ratio.rs b/crates/store/re_types/src/components/fill_ratio.rs index f21374fef169..a6305ab5e483 100644 --- a/crates/store/re_types/src/components/fill_ratio.rs +++ b/crates/store/re_types/src/components/fill_ratio.rs @@ -116,10 +116,3 @@ impl ::re_types_core::Loggable for FillRatio { crate::datatypes::Float32::from_arrow(arrow_data).map(bytemuck::cast_vec) } } - -impl ::re_types_core::AsComponents for FillRatio { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/components/gamma_correction.rs b/crates/store/re_types/src/components/gamma_correction.rs index c94684b5f348..5b9b3782cc9f 100644 --- a/crates/store/re_types/src/components/gamma_correction.rs +++ b/crates/store/re_types/src/components/gamma_correction.rs @@ -117,10 +117,3 @@ impl ::re_types_core::Loggable for GammaCorrection { crate::datatypes::Float32::from_arrow(arrow_data).map(bytemuck::cast_vec) } } - -impl ::re_types_core::AsComponents for GammaCorrection { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/components/half_size2d.rs b/crates/store/re_types/src/components/half_size2d.rs index e813d0b79928..8db2d8f005ec 100644 --- a/crates/store/re_types/src/components/half_size2d.rs +++ b/crates/store/re_types/src/components/half_size2d.rs @@ -116,10 +116,3 @@ impl ::re_types_core::Loggable for HalfSize2D { crate::datatypes::Vec2D::from_arrow(arrow_data).map(bytemuck::cast_vec) } } - -impl ::re_types_core::AsComponents for HalfSize2D { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/components/half_size3d.rs b/crates/store/re_types/src/components/half_size3d.rs index 7bd24d162b40..f5f746b8ef69 100644 --- a/crates/store/re_types/src/components/half_size3d.rs +++ b/crates/store/re_types/src/components/half_size3d.rs @@ -116,10 +116,3 @@ impl ::re_types_core::Loggable for HalfSize3D { crate::datatypes::Vec3D::from_arrow(arrow_data).map(bytemuck::cast_vec) } } - -impl ::re_types_core::AsComponents for HalfSize3D { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/components/image_buffer.rs b/crates/store/re_types/src/components/image_buffer.rs index 92ea30059215..969b2cd0825c 100644 --- a/crates/store/re_types/src/components/image_buffer.rs +++ b/crates/store/re_types/src/components/image_buffer.rs @@ -105,10 +105,3 @@ impl ::re_types_core::Loggable for ImageBuffer { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } - -impl ::re_types_core::AsComponents for ImageBuffer { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/components/image_format.rs b/crates/store/re_types/src/components/image_format.rs index 6b5f858faae7..61925ea54a25 100644 --- a/crates/store/re_types/src/components/image_format.rs +++ b/crates/store/re_types/src/components/image_format.rs @@ -103,10 +103,3 @@ impl ::re_types_core::Loggable for ImageFormat { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } - -impl ::re_types_core::AsComponents for ImageFormat { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/components/image_plane_distance.rs b/crates/store/re_types/src/components/image_plane_distance.rs index 047c4a06136c..6992c07a7162 100644 --- a/crates/store/re_types/src/components/image_plane_distance.rs +++ b/crates/store/re_types/src/components/image_plane_distance.rs @@ -112,10 +112,3 @@ impl ::re_types_core::Loggable for ImagePlaneDistance { crate::datatypes::Float32::from_arrow(arrow_data).map(|v| v.into_iter().map(Self).collect()) } } - -impl ::re_types_core::AsComponents for ImagePlaneDistance { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/components/keypoint_id.rs b/crates/store/re_types/src/components/keypoint_id.rs index 61e358a1f972..7c2be2e6e544 100644 --- a/crates/store/re_types/src/components/keypoint_id.rs +++ b/crates/store/re_types/src/components/keypoint_id.rs @@ -128,10 +128,3 @@ impl ::re_types_core::Loggable for KeypointId { crate::datatypes::KeypointId::from_arrow(arrow_data).map(bytemuck::cast_vec) } } - -impl ::re_types_core::AsComponents for KeypointId { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/components/line_strip2d.rs b/crates/store/re_types/src/components/line_strip2d.rs index 3afc6969d6d5..5942a0f9b7cd 100644 --- a/crates/store/re_types/src/components/line_strip2d.rs +++ b/crates/store/re_types/src/components/line_strip2d.rs @@ -272,10 +272,3 @@ impl ::re_types_core::Loggable for LineStrip2D { .with_context("rerun.components.LineStrip2D")?) } } - -impl ::re_types_core::AsComponents for LineStrip2D { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/components/line_strip3d.rs b/crates/store/re_types/src/components/line_strip3d.rs index 77141b69fef5..740bca74de34 100644 --- a/crates/store/re_types/src/components/line_strip3d.rs +++ b/crates/store/re_types/src/components/line_strip3d.rs @@ -272,10 +272,3 @@ impl ::re_types_core::Loggable for LineStrip3D { .with_context("rerun.components.LineStrip3D")?) } } - -impl ::re_types_core::AsComponents for LineStrip3D { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/components/magnification_filter.rs b/crates/store/re_types/src/components/magnification_filter.rs index 3da54329f340..be0b6392be3d 100644 --- a/crates/store/re_types/src/components/magnification_filter.rs +++ b/crates/store/re_types/src/components/magnification_filter.rs @@ -159,10 +159,3 @@ impl ::re_types_core::Loggable for MagnificationFilter { .with_context("rerun.components.MagnificationFilter")?) } } - -impl ::re_types_core::AsComponents for MagnificationFilter { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/components/marker_shape.rs b/crates/store/re_types/src/components/marker_shape.rs index d7a2a2f0b181..78da7ffeb1f9 100644 --- a/crates/store/re_types/src/components/marker_shape.rs +++ b/crates/store/re_types/src/components/marker_shape.rs @@ -209,10 +209,3 @@ impl ::re_types_core::Loggable for MarkerShape { .with_context("rerun.components.MarkerShape")?) } } - -impl ::re_types_core::AsComponents for MarkerShape { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/components/marker_size.rs b/crates/store/re_types/src/components/marker_size.rs index ba66c67be2be..afbf17681e4f 100644 --- a/crates/store/re_types/src/components/marker_size.rs +++ b/crates/store/re_types/src/components/marker_size.rs @@ -111,10 +111,3 @@ impl ::re_types_core::Loggable for MarkerSize { crate::datatypes::Float32::from_arrow(arrow_data).map(bytemuck::cast_vec) } } - -impl ::re_types_core::AsComponents for MarkerSize { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/components/media_type.rs b/crates/store/re_types/src/components/media_type.rs index cce46927ace5..b537a18b7018 100644 --- a/crates/store/re_types/src/components/media_type.rs +++ b/crates/store/re_types/src/components/media_type.rs @@ -106,10 +106,3 @@ impl ::re_types_core::Loggable for MediaType { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } - -impl ::re_types_core::AsComponents for MediaType { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/components/name.rs b/crates/store/re_types/src/components/name.rs index e5910193b727..594eeaa745fb 100644 --- a/crates/store/re_types/src/components/name.rs +++ b/crates/store/re_types/src/components/name.rs @@ -103,10 +103,3 @@ impl ::re_types_core::Loggable for Name { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } - -impl ::re_types_core::AsComponents for Name { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/components/opacity.rs b/crates/store/re_types/src/components/opacity.rs index 60d942003212..0651b18a08f0 100644 --- a/crates/store/re_types/src/components/opacity.rs +++ b/crates/store/re_types/src/components/opacity.rs @@ -114,10 +114,3 @@ impl ::re_types_core::Loggable for Opacity { crate::datatypes::Float32::from_arrow(arrow_data).map(bytemuck::cast_vec) } } - -impl ::re_types_core::AsComponents for Opacity { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/components/pinhole_projection.rs b/crates/store/re_types/src/components/pinhole_projection.rs index 5c6fb39da03d..e0a39b009371 100644 --- a/crates/store/re_types/src/components/pinhole_projection.rs +++ b/crates/store/re_types/src/components/pinhole_projection.rs @@ -120,10 +120,3 @@ impl ::re_types_core::Loggable for PinholeProjection { crate::datatypes::Mat3x3::from_arrow(arrow_data).map(|v| v.into_iter().map(Self).collect()) } } - -impl ::re_types_core::AsComponents for PinholeProjection { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/components/pose_rotation_axis_angle.rs b/crates/store/re_types/src/components/pose_rotation_axis_angle.rs index 47a885374e1b..db162c66e7ef 100644 --- a/crates/store/re_types/src/components/pose_rotation_axis_angle.rs +++ b/crates/store/re_types/src/components/pose_rotation_axis_angle.rs @@ -103,10 +103,3 @@ impl ::re_types_core::Loggable for PoseRotationAxisAngle { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } - -impl ::re_types_core::AsComponents for PoseRotationAxisAngle { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/components/pose_rotation_quat.rs b/crates/store/re_types/src/components/pose_rotation_quat.rs index bf0f795e9155..cc86aac9e174 100644 --- a/crates/store/re_types/src/components/pose_rotation_quat.rs +++ b/crates/store/re_types/src/components/pose_rotation_quat.rs @@ -114,10 +114,3 @@ impl ::re_types_core::Loggable for PoseRotationQuat { crate::datatypes::Quaternion::from_arrow(arrow_data).map(bytemuck::cast_vec) } } - -impl ::re_types_core::AsComponents for PoseRotationQuat { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/components/pose_scale3d.rs b/crates/store/re_types/src/components/pose_scale3d.rs index a6c205bfa91e..1c804e337479 100644 --- a/crates/store/re_types/src/components/pose_scale3d.rs +++ b/crates/store/re_types/src/components/pose_scale3d.rs @@ -115,10 +115,3 @@ impl ::re_types_core::Loggable for PoseScale3D { crate::datatypes::Vec3D::from_arrow(arrow_data).map(bytemuck::cast_vec) } } - -impl ::re_types_core::AsComponents for PoseScale3D { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/components/pose_transform_mat3x3.rs b/crates/store/re_types/src/components/pose_transform_mat3x3.rs index 70f887e9db39..24881c51d910 100644 --- a/crates/store/re_types/src/components/pose_transform_mat3x3.rs +++ b/crates/store/re_types/src/components/pose_transform_mat3x3.rs @@ -123,10 +123,3 @@ impl ::re_types_core::Loggable for PoseTransformMat3x3 { crate::datatypes::Mat3x3::from_arrow(arrow_data).map(bytemuck::cast_vec) } } - -impl ::re_types_core::AsComponents for PoseTransformMat3x3 { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/components/pose_translation3d.rs b/crates/store/re_types/src/components/pose_translation3d.rs index e89bad7b9766..8355b5a2665a 100644 --- a/crates/store/re_types/src/components/pose_translation3d.rs +++ b/crates/store/re_types/src/components/pose_translation3d.rs @@ -111,10 +111,3 @@ impl ::re_types_core::Loggable for PoseTranslation3D { crate::datatypes::Vec3D::from_arrow(arrow_data).map(bytemuck::cast_vec) } } - -impl ::re_types_core::AsComponents for PoseTranslation3D { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/components/position2d.rs b/crates/store/re_types/src/components/position2d.rs index 00c24a8dd132..458f005edb66 100644 --- a/crates/store/re_types/src/components/position2d.rs +++ b/crates/store/re_types/src/components/position2d.rs @@ -111,10 +111,3 @@ impl ::re_types_core::Loggable for Position2D { crate::datatypes::Vec2D::from_arrow(arrow_data).map(bytemuck::cast_vec) } } - -impl ::re_types_core::AsComponents for Position2D { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/components/position3d.rs b/crates/store/re_types/src/components/position3d.rs index 9415d4d1892d..04346cf26b49 100644 --- a/crates/store/re_types/src/components/position3d.rs +++ b/crates/store/re_types/src/components/position3d.rs @@ -111,10 +111,3 @@ impl ::re_types_core::Loggable for Position3D { crate::datatypes::Vec3D::from_arrow(arrow_data).map(bytemuck::cast_vec) } } - -impl ::re_types_core::AsComponents for Position3D { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/components/radius.rs b/crates/store/re_types/src/components/radius.rs index 83d6a26ba181..b9e799191a76 100644 --- a/crates/store/re_types/src/components/radius.rs +++ b/crates/store/re_types/src/components/radius.rs @@ -118,10 +118,3 @@ impl ::re_types_core::Loggable for Radius { crate::datatypes::Float32::from_arrow(arrow_data).map(bytemuck::cast_vec) } } - -impl ::re_types_core::AsComponents for Radius { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/components/range1d.rs b/crates/store/re_types/src/components/range1d.rs index d5356ab6bf96..b9559677ab7e 100644 --- a/crates/store/re_types/src/components/range1d.rs +++ b/crates/store/re_types/src/components/range1d.rs @@ -111,10 +111,3 @@ impl ::re_types_core::Loggable for Range1D { crate::datatypes::Range1D::from_arrow(arrow_data).map(bytemuck::cast_vec) } } - -impl ::re_types_core::AsComponents for Range1D { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/components/resolution.rs b/crates/store/re_types/src/components/resolution.rs index 526c05152724..e53a361af936 100644 --- a/crates/store/re_types/src/components/resolution.rs +++ b/crates/store/re_types/src/components/resolution.rs @@ -112,10 +112,3 @@ impl ::re_types_core::Loggable for Resolution { crate::datatypes::Vec2D::from_arrow(arrow_data).map(|v| v.into_iter().map(Self).collect()) } } - -impl ::re_types_core::AsComponents for Resolution { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/components/rotation_axis_angle.rs b/crates/store/re_types/src/components/rotation_axis_angle.rs index 0caac25ac775..a75035c69b46 100644 --- a/crates/store/re_types/src/components/rotation_axis_angle.rs +++ b/crates/store/re_types/src/components/rotation_axis_angle.rs @@ -103,10 +103,3 @@ impl ::re_types_core::Loggable for RotationAxisAngle { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } - -impl ::re_types_core::AsComponents for RotationAxisAngle { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/components/rotation_quat.rs b/crates/store/re_types/src/components/rotation_quat.rs index 2e97ce8d8e83..1de2470e79ad 100644 --- a/crates/store/re_types/src/components/rotation_quat.rs +++ b/crates/store/re_types/src/components/rotation_quat.rs @@ -114,10 +114,3 @@ impl ::re_types_core::Loggable for RotationQuat { crate::datatypes::Quaternion::from_arrow(arrow_data).map(bytemuck::cast_vec) } } - -impl ::re_types_core::AsComponents for RotationQuat { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/components/scalar.rs b/crates/store/re_types/src/components/scalar.rs index 592fa77101ac..f98bdae0300c 100644 --- a/crates/store/re_types/src/components/scalar.rs +++ b/crates/store/re_types/src/components/scalar.rs @@ -113,10 +113,3 @@ impl ::re_types_core::Loggable for Scalar { crate::datatypes::Float64::from_arrow(arrow_data).map(bytemuck::cast_vec) } } - -impl ::re_types_core::AsComponents for Scalar { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/components/scale3d.rs b/crates/store/re_types/src/components/scale3d.rs index 6aca378aa718..05e5b420b6f0 100644 --- a/crates/store/re_types/src/components/scale3d.rs +++ b/crates/store/re_types/src/components/scale3d.rs @@ -115,10 +115,3 @@ impl ::re_types_core::Loggable for Scale3D { crate::datatypes::Vec3D::from_arrow(arrow_data).map(bytemuck::cast_vec) } } - -impl ::re_types_core::AsComponents for Scale3D { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/components/show_labels.rs b/crates/store/re_types/src/components/show_labels.rs index 26ff0c2dbefb..b03e07a83e25 100644 --- a/crates/store/re_types/src/components/show_labels.rs +++ b/crates/store/re_types/src/components/show_labels.rs @@ -109,10 +109,3 @@ impl ::re_types_core::Loggable for ShowLabels { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } - -impl ::re_types_core::AsComponents for ShowLabels { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/components/stroke_width.rs b/crates/store/re_types/src/components/stroke_width.rs index a7a5195416f6..a2b1d8540d13 100644 --- a/crates/store/re_types/src/components/stroke_width.rs +++ b/crates/store/re_types/src/components/stroke_width.rs @@ -111,10 +111,3 @@ impl ::re_types_core::Loggable for StrokeWidth { crate::datatypes::Float32::from_arrow(arrow_data).map(bytemuck::cast_vec) } } - -impl ::re_types_core::AsComponents for StrokeWidth { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/components/tensor_data.rs b/crates/store/re_types/src/components/tensor_data.rs index 62dfa64cfcbb..72bb16a09f25 100644 --- a/crates/store/re_types/src/components/tensor_data.rs +++ b/crates/store/re_types/src/components/tensor_data.rs @@ -110,10 +110,3 @@ impl ::re_types_core::Loggable for TensorData { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } - -impl ::re_types_core::AsComponents for TensorData { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/components/tensor_dimension_index_selection.rs b/crates/store/re_types/src/components/tensor_dimension_index_selection.rs index 052af1cfb6ae..9635e4466392 100644 --- a/crates/store/re_types/src/components/tensor_dimension_index_selection.rs +++ b/crates/store/re_types/src/components/tensor_dimension_index_selection.rs @@ -109,10 +109,3 @@ impl ::re_types_core::Loggable for TensorDimensionIndexSelection { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } - -impl ::re_types_core::AsComponents for TensorDimensionIndexSelection { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/components/tensor_height_dimension.rs b/crates/store/re_types/src/components/tensor_height_dimension.rs index a69667c2d360..30b2f540c37f 100644 --- a/crates/store/re_types/src/components/tensor_height_dimension.rs +++ b/crates/store/re_types/src/components/tensor_height_dimension.rs @@ -103,10 +103,3 @@ impl ::re_types_core::Loggable for TensorHeightDimension { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } - -impl ::re_types_core::AsComponents for TensorHeightDimension { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/components/tensor_width_dimension.rs b/crates/store/re_types/src/components/tensor_width_dimension.rs index 17b0de60e7ed..c6bf8e264f67 100644 --- a/crates/store/re_types/src/components/tensor_width_dimension.rs +++ b/crates/store/re_types/src/components/tensor_width_dimension.rs @@ -103,10 +103,3 @@ impl ::re_types_core::Loggable for TensorWidthDimension { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } - -impl ::re_types_core::AsComponents for TensorWidthDimension { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/components/texcoord2d.rs b/crates/store/re_types/src/components/texcoord2d.rs index 00467de97546..69ad88bd9992 100644 --- a/crates/store/re_types/src/components/texcoord2d.rs +++ b/crates/store/re_types/src/components/texcoord2d.rs @@ -126,10 +126,3 @@ impl ::re_types_core::Loggable for Texcoord2D { crate::datatypes::Vec2D::from_arrow(arrow_data).map(bytemuck::cast_vec) } } - -impl ::re_types_core::AsComponents for Texcoord2D { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/components/text.rs b/crates/store/re_types/src/components/text.rs index 9be5c7cb61f9..f59e6698ed83 100644 --- a/crates/store/re_types/src/components/text.rs +++ b/crates/store/re_types/src/components/text.rs @@ -103,10 +103,3 @@ impl ::re_types_core::Loggable for Text { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } - -impl ::re_types_core::AsComponents for Text { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/components/text_log_level.rs b/crates/store/re_types/src/components/text_log_level.rs index 9ec291503c28..858983822b82 100644 --- a/crates/store/re_types/src/components/text_log_level.rs +++ b/crates/store/re_types/src/components/text_log_level.rs @@ -111,10 +111,3 @@ impl ::re_types_core::Loggable for TextLogLevel { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } - -impl ::re_types_core::AsComponents for TextLogLevel { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/components/transform_mat3x3.rs b/crates/store/re_types/src/components/transform_mat3x3.rs index c45a474dce03..b43f030c8db2 100644 --- a/crates/store/re_types/src/components/transform_mat3x3.rs +++ b/crates/store/re_types/src/components/transform_mat3x3.rs @@ -123,10 +123,3 @@ impl ::re_types_core::Loggable for TransformMat3x3 { crate::datatypes::Mat3x3::from_arrow(arrow_data).map(bytemuck::cast_vec) } } - -impl ::re_types_core::AsComponents for TransformMat3x3 { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/components/transform_relation.rs b/crates/store/re_types/src/components/transform_relation.rs index ce484d39c54e..06137a33b181 100644 --- a/crates/store/re_types/src/components/transform_relation.rs +++ b/crates/store/re_types/src/components/transform_relation.rs @@ -162,10 +162,3 @@ impl ::re_types_core::Loggable for TransformRelation { .with_context("rerun.components.TransformRelation")?) } } - -impl ::re_types_core::AsComponents for TransformRelation { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/components/translation3d.rs b/crates/store/re_types/src/components/translation3d.rs index e679b141d55e..89b150684914 100644 --- a/crates/store/re_types/src/components/translation3d.rs +++ b/crates/store/re_types/src/components/translation3d.rs @@ -111,10 +111,3 @@ impl ::re_types_core::Loggable for Translation3D { crate::datatypes::Vec3D::from_arrow(arrow_data).map(bytemuck::cast_vec) } } - -impl ::re_types_core::AsComponents for Translation3D { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/components/triangle_indices.rs b/crates/store/re_types/src/components/triangle_indices.rs index dd225d005109..4e3dc2537c70 100644 --- a/crates/store/re_types/src/components/triangle_indices.rs +++ b/crates/store/re_types/src/components/triangle_indices.rs @@ -111,10 +111,3 @@ impl ::re_types_core::Loggable for TriangleIndices { crate::datatypes::UVec3D::from_arrow(arrow_data).map(bytemuck::cast_vec) } } - -impl ::re_types_core::AsComponents for TriangleIndices { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/components/value_range.rs b/crates/store/re_types/src/components/value_range.rs index 2375a432c3cf..b5c44c0a28ff 100644 --- a/crates/store/re_types/src/components/value_range.rs +++ b/crates/store/re_types/src/components/value_range.rs @@ -111,10 +111,3 @@ impl ::re_types_core::Loggable for ValueRange { crate::datatypes::Range1D::from_arrow(arrow_data).map(bytemuck::cast_vec) } } - -impl ::re_types_core::AsComponents for ValueRange { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/components/vector2d.rs b/crates/store/re_types/src/components/vector2d.rs index f97417f141c0..a46386b7ea93 100644 --- a/crates/store/re_types/src/components/vector2d.rs +++ b/crates/store/re_types/src/components/vector2d.rs @@ -111,10 +111,3 @@ impl ::re_types_core::Loggable for Vector2D { crate::datatypes::Vec2D::from_arrow(arrow_data).map(bytemuck::cast_vec) } } - -impl ::re_types_core::AsComponents for Vector2D { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/components/vector3d.rs b/crates/store/re_types/src/components/vector3d.rs index aa1aeedbbfb0..292ce0ac302a 100644 --- a/crates/store/re_types/src/components/vector3d.rs +++ b/crates/store/re_types/src/components/vector3d.rs @@ -111,10 +111,3 @@ impl ::re_types_core::Loggable for Vector3D { crate::datatypes::Vec3D::from_arrow(arrow_data).map(bytemuck::cast_vec) } } - -impl ::re_types_core::AsComponents for Vector3D { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/components/video_timestamp.rs b/crates/store/re_types/src/components/video_timestamp.rs index 382c5d425ff3..704905e80090 100644 --- a/crates/store/re_types/src/components/video_timestamp.rs +++ b/crates/store/re_types/src/components/video_timestamp.rs @@ -112,10 +112,3 @@ impl ::re_types_core::Loggable for VideoTimestamp { .map(|v| v.into_iter().map(Self).collect()) } } - -impl ::re_types_core::AsComponents for VideoTimestamp { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/components/view_coordinates.rs b/crates/store/re_types/src/components/view_coordinates.rs index 9f9342ebaa0e..1fece1f587dc 100644 --- a/crates/store/re_types/src/components/view_coordinates.rs +++ b/crates/store/re_types/src/components/view_coordinates.rs @@ -131,10 +131,3 @@ impl ::re_types_core::Loggable for ViewCoordinates { crate::datatypes::ViewCoordinates::from_arrow(arrow_data).map(bytemuck::cast_vec) } } - -impl ::re_types_core::AsComponents for ViewCoordinates { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/testing/components/affix_fuzzer1.rs b/crates/store/re_types/src/testing/components/affix_fuzzer1.rs index 6eb6aa494b26..4b253d63e2e3 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer1.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer1.rs @@ -101,10 +101,3 @@ impl ::re_types_core::Loggable for AffixFuzzer1 { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } - -impl ::re_types_core::AsComponents for AffixFuzzer1 { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/testing/components/affix_fuzzer10.rs b/crates/store/re_types/src/testing/components/affix_fuzzer10.rs index 79fcb68d9a9b..6fcceeb18059 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer10.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer10.rs @@ -183,10 +183,3 @@ impl ::re_types_core::Loggable for AffixFuzzer10 { .with_context("rerun.testing.components.AffixFuzzer10")?) } } - -impl ::re_types_core::AsComponents for AffixFuzzer10 { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/testing/components/affix_fuzzer11.rs b/crates/store/re_types/src/testing/components/affix_fuzzer11.rs index db969bf66e89..d12122290bb0 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer11.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer11.rs @@ -210,10 +210,3 @@ impl ::re_types_core::Loggable for AffixFuzzer11 { .with_context("rerun.testing.components.AffixFuzzer11")?) } } - -impl ::re_types_core::AsComponents for AffixFuzzer11 { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/testing/components/affix_fuzzer12.rs b/crates/store/re_types/src/testing/components/affix_fuzzer12.rs index b674a61db650..98d9e4f0a01e 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer12.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer12.rs @@ -258,10 +258,3 @@ impl ::re_types_core::Loggable for AffixFuzzer12 { .with_context("rerun.testing.components.AffixFuzzer12")?) } } - -impl ::re_types_core::AsComponents for AffixFuzzer12 { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/testing/components/affix_fuzzer13.rs b/crates/store/re_types/src/testing/components/affix_fuzzer13.rs index 5e70b6e365d7..f0f025c89fb4 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer13.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer13.rs @@ -258,10 +258,3 @@ impl ::re_types_core::Loggable for AffixFuzzer13 { .with_context("rerun.testing.components.AffixFuzzer13")?) } } - -impl ::re_types_core::AsComponents for AffixFuzzer13 { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/testing/components/affix_fuzzer14.rs b/crates/store/re_types/src/testing/components/affix_fuzzer14.rs index bf7597b93925..d24c17d4afd8 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer14.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer14.rs @@ -101,10 +101,3 @@ impl ::re_types_core::Loggable for AffixFuzzer14 { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } - -impl ::re_types_core::AsComponents for AffixFuzzer14 { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/testing/components/affix_fuzzer15.rs b/crates/store/re_types/src/testing/components/affix_fuzzer15.rs index 9777d043444c..450a139ca341 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer15.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer15.rs @@ -155,10 +155,3 @@ impl ::re_types_core::Loggable for AffixFuzzer15 { ) } } - -impl ::re_types_core::AsComponents for AffixFuzzer15 { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/testing/components/affix_fuzzer16.rs b/crates/store/re_types/src/testing/components/affix_fuzzer16.rs index 199cc885dc5b..9281e4e80876 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer16.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer16.rs @@ -180,10 +180,3 @@ impl ::re_types_core::Loggable for AffixFuzzer16 { .with_context("rerun.testing.components.AffixFuzzer16")?) } } - -impl ::re_types_core::AsComponents for AffixFuzzer16 { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/testing/components/affix_fuzzer17.rs b/crates/store/re_types/src/testing/components/affix_fuzzer17.rs index 77542edada54..3fdc38581b48 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer17.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer17.rs @@ -180,10 +180,3 @@ impl ::re_types_core::Loggable for AffixFuzzer17 { .with_context("rerun.testing.components.AffixFuzzer17")?) } } - -impl ::re_types_core::AsComponents for AffixFuzzer17 { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/testing/components/affix_fuzzer18.rs b/crates/store/re_types/src/testing/components/affix_fuzzer18.rs index fb59919b53d9..32eb832e46e3 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer18.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer18.rs @@ -180,10 +180,3 @@ impl ::re_types_core::Loggable for AffixFuzzer18 { .with_context("rerun.testing.components.AffixFuzzer18")?) } } - -impl ::re_types_core::AsComponents for AffixFuzzer18 { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/testing/components/affix_fuzzer19.rs b/crates/store/re_types/src/testing/components/affix_fuzzer19.rs index d6b0aa2351a1..b085b048fc65 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer19.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer19.rs @@ -101,10 +101,3 @@ impl ::re_types_core::Loggable for AffixFuzzer19 { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } - -impl ::re_types_core::AsComponents for AffixFuzzer19 { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/testing/components/affix_fuzzer2.rs b/crates/store/re_types/src/testing/components/affix_fuzzer2.rs index 23220ca9a76d..6f01cb150214 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer2.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer2.rs @@ -101,10 +101,3 @@ impl ::re_types_core::Loggable for AffixFuzzer2 { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } - -impl ::re_types_core::AsComponents for AffixFuzzer2 { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/testing/components/affix_fuzzer20.rs b/crates/store/re_types/src/testing/components/affix_fuzzer20.rs index 65ad8fd72a5c..d5cb12909fc4 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer20.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer20.rs @@ -101,10 +101,3 @@ impl ::re_types_core::Loggable for AffixFuzzer20 { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } - -impl ::re_types_core::AsComponents for AffixFuzzer20 { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/testing/components/affix_fuzzer21.rs b/crates/store/re_types/src/testing/components/affix_fuzzer21.rs index 4b2cb76ae05f..ef62d646556b 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer21.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer21.rs @@ -101,10 +101,3 @@ impl ::re_types_core::Loggable for AffixFuzzer21 { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } - -impl ::re_types_core::AsComponents for AffixFuzzer21 { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/testing/components/affix_fuzzer22.rs b/crates/store/re_types/src/testing/components/affix_fuzzer22.rs index ccd8c1c7112a..53e30a6ea4b5 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer22.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer22.rs @@ -137,10 +137,3 @@ impl ::re_types_core::Loggable for AffixFuzzer22 { ) } } - -impl ::re_types_core::AsComponents for AffixFuzzer22 { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/testing/components/affix_fuzzer23.rs b/crates/store/re_types/src/testing/components/affix_fuzzer23.rs index 86394faf5f3c..5c263fe02b53 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer23.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer23.rs @@ -141,10 +141,3 @@ impl ::re_types_core::Loggable for AffixFuzzer23 { ) } } - -impl ::re_types_core::AsComponents for AffixFuzzer23 { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/testing/components/affix_fuzzer3.rs b/crates/store/re_types/src/testing/components/affix_fuzzer3.rs index 64da37219162..ba368bae994e 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer3.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer3.rs @@ -101,10 +101,3 @@ impl ::re_types_core::Loggable for AffixFuzzer3 { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } - -impl ::re_types_core::AsComponents for AffixFuzzer3 { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/testing/components/affix_fuzzer4.rs b/crates/store/re_types/src/testing/components/affix_fuzzer4.rs index 2ee3b88addf6..e3e78a4e62cd 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer4.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer4.rs @@ -168,10 +168,3 @@ impl ::re_types_core::Loggable for AffixFuzzer4 { ) } } - -impl ::re_types_core::AsComponents for AffixFuzzer4 { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/testing/components/affix_fuzzer5.rs b/crates/store/re_types/src/testing/components/affix_fuzzer5.rs index 4deccd8e8e85..c30a488ca9d0 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer5.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer5.rs @@ -168,10 +168,3 @@ impl ::re_types_core::Loggable for AffixFuzzer5 { ) } } - -impl ::re_types_core::AsComponents for AffixFuzzer5 { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/testing/components/affix_fuzzer6.rs b/crates/store/re_types/src/testing/components/affix_fuzzer6.rs index 8c6b9ad16be9..94b11c381495 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer6.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer6.rs @@ -168,10 +168,3 @@ impl ::re_types_core::Loggable for AffixFuzzer6 { ) } } - -impl ::re_types_core::AsComponents for AffixFuzzer6 { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/testing/components/affix_fuzzer7.rs b/crates/store/re_types/src/testing/components/affix_fuzzer7.rs index 7ea57270c11e..e949bf59dcf1 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer7.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer7.rs @@ -178,10 +178,3 @@ impl ::re_types_core::Loggable for AffixFuzzer7 { .with_context("rerun.testing.components.AffixFuzzer7")?) } } - -impl ::re_types_core::AsComponents for AffixFuzzer7 { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/testing/components/affix_fuzzer8.rs b/crates/store/re_types/src/testing/components/affix_fuzzer8.rs index b57ae517fb61..b3370feebc6d 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer8.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer8.rs @@ -139,10 +139,3 @@ impl ::re_types_core::Loggable for AffixFuzzer8 { .with_context("rerun.testing.components.AffixFuzzer8")?) } } - -impl ::re_types_core::AsComponents for AffixFuzzer8 { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types/src/testing/components/affix_fuzzer9.rs b/crates/store/re_types/src/testing/components/affix_fuzzer9.rs index 8e7c96e46192..7ac90ee492b1 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer9.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer9.rs @@ -183,10 +183,3 @@ impl ::re_types_core::Loggable for AffixFuzzer9 { .with_context("rerun.testing.components.AffixFuzzer9")?) } } - -impl ::re_types_core::AsComponents for AffixFuzzer9 { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types_blueprint/src/blueprint/components/auto_layout.rs b/crates/store/re_types_blueprint/src/blueprint/components/auto_layout.rs index 59ae38007d47..5ba1c344f50a 100644 --- a/crates/store/re_types_blueprint/src/blueprint/components/auto_layout.rs +++ b/crates/store/re_types_blueprint/src/blueprint/components/auto_layout.rs @@ -103,10 +103,3 @@ impl ::re_types_core::Loggable for AutoLayout { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } - -impl ::re_types_core::AsComponents for AutoLayout { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types_blueprint/src/blueprint/components/auto_space_views.rs b/crates/store/re_types_blueprint/src/blueprint/components/auto_space_views.rs index a521fc639bfc..fa9ffd245e1d 100644 --- a/crates/store/re_types_blueprint/src/blueprint/components/auto_space_views.rs +++ b/crates/store/re_types_blueprint/src/blueprint/components/auto_space_views.rs @@ -103,10 +103,3 @@ impl ::re_types_core::Loggable for AutoSpaceViews { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } - -impl ::re_types_core::AsComponents for AutoSpaceViews { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types_blueprint/src/blueprint/components/container_kind.rs b/crates/store/re_types_blueprint/src/blueprint/components/container_kind.rs index b971aa6b3557..4aecdd82322f 100644 --- a/crates/store/re_types_blueprint/src/blueprint/components/container_kind.rs +++ b/crates/store/re_types_blueprint/src/blueprint/components/container_kind.rs @@ -162,10 +162,3 @@ impl ::re_types_core::Loggable for ContainerKind { .with_context("rerun.blueprint.components.ContainerKind")?) } } - -impl ::re_types_core::AsComponents for ContainerKind { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types_blueprint/src/blueprint/components/grid_columns.rs b/crates/store/re_types_blueprint/src/blueprint/components/grid_columns.rs index f396c6282622..2f430c2eabcf 100644 --- a/crates/store/re_types_blueprint/src/blueprint/components/grid_columns.rs +++ b/crates/store/re_types_blueprint/src/blueprint/components/grid_columns.rs @@ -113,10 +113,3 @@ impl ::re_types_core::Loggable for GridColumns { crate::datatypes::UInt32::from_arrow(arrow_data).map(|v| v.into_iter().map(Self).collect()) } } - -impl ::re_types_core::AsComponents for GridColumns { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types_blueprint/src/blueprint/components/included_space_view.rs b/crates/store/re_types_blueprint/src/blueprint/components/included_space_view.rs index 235d0a45e262..7aae106fd90a 100644 --- a/crates/store/re_types_blueprint/src/blueprint/components/included_space_view.rs +++ b/crates/store/re_types_blueprint/src/blueprint/components/included_space_view.rs @@ -111,10 +111,3 @@ impl ::re_types_core::Loggable for IncludedSpaceView { crate::datatypes::Uuid::from_arrow(arrow_data).map(|v| v.into_iter().map(Self).collect()) } } - -impl ::re_types_core::AsComponents for IncludedSpaceView { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types_blueprint/src/blueprint/components/root_container.rs b/crates/store/re_types_blueprint/src/blueprint/components/root_container.rs index 1232f2131bc3..3db3d4848871 100644 --- a/crates/store/re_types_blueprint/src/blueprint/components/root_container.rs +++ b/crates/store/re_types_blueprint/src/blueprint/components/root_container.rs @@ -114,10 +114,3 @@ impl ::re_types_core::Loggable for RootContainer { crate::datatypes::Uuid::from_arrow(arrow_data).map(|v| v.into_iter().map(Self).collect()) } } - -impl ::re_types_core::AsComponents for RootContainer { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types_blueprint/src/blueprint/components/space_view_maximized.rs b/crates/store/re_types_blueprint/src/blueprint/components/space_view_maximized.rs index ca2af9c290a0..77f34131136b 100644 --- a/crates/store/re_types_blueprint/src/blueprint/components/space_view_maximized.rs +++ b/crates/store/re_types_blueprint/src/blueprint/components/space_view_maximized.rs @@ -111,10 +111,3 @@ impl ::re_types_core::Loggable for SpaceViewMaximized { crate::datatypes::Uuid::from_arrow(arrow_data).map(|v| v.into_iter().map(Self).collect()) } } - -impl ::re_types_core::AsComponents for SpaceViewMaximized { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types_blueprint/src/blueprint/components/visualizer_overrides.rs b/crates/store/re_types_blueprint/src/blueprint/components/visualizer_overrides.rs index 30c7eee3fee1..3a8b3a87bd4b 100644 --- a/crates/store/re_types_blueprint/src/blueprint/components/visualizer_overrides.rs +++ b/crates/store/re_types_blueprint/src/blueprint/components/visualizer_overrides.rs @@ -138,10 +138,3 @@ impl ::re_types_core::Loggable for VisualizerOverrides { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } - -impl ::re_types_core::AsComponents for VisualizerOverrides { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types_core/src/components/clear_is_recursive.rs b/crates/store/re_types_core/src/components/clear_is_recursive.rs index 295770764993..b491e51eec71 100644 --- a/crates/store/re_types_core/src/components/clear_is_recursive.rs +++ b/crates/store/re_types_core/src/components/clear_is_recursive.rs @@ -105,10 +105,3 @@ impl crate::Loggable for ClearIsRecursive { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } - -impl crate::AsComponents for ClearIsRecursive { - fn as_component_batches(&self) -> Vec> { - re_tracing::profile_function!(); - vec![(self as &dyn ComponentBatch).into()] - } -} diff --git a/crates/store/re_types_core/src/lib.rs b/crates/store/re_types_core/src/lib.rs index 95230e3eb3db..89015c2d6fbb 100644 --- a/crates/store/re_types_core/src/lib.rs +++ b/crates/store/re_types_core/src/lib.rs @@ -82,6 +82,13 @@ pub trait AsComponents { } } +impl AsComponents for C { + #[inline] + fn as_component_batches(&self) -> Vec> { + vec![(self as &dyn ComponentBatch).into()] + } +} + // --- mod archetype; From 9829f5ab47d8d665081a4137854828ae54090943 Mon Sep 17 00:00:00 2001 From: Andreas Reich Date: Fri, 18 Oct 2024 11:07:24 +0200 Subject: [PATCH 3/4] doc update on recording stream reflecting that individual components can be logged --- crates/top/re_sdk/src/recording_stream.rs | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/crates/top/re_sdk/src/recording_stream.rs b/crates/top/re_sdk/src/recording_stream.rs index b95a28d52efa..82b3e2cbec6d 100644 --- a/crates/top/re_sdk/src/recording_stream.rs +++ b/crates/top/re_sdk/src/recording_stream.rs @@ -856,7 +856,8 @@ impl RecordingStream { /// Log data to Rerun. /// /// This is the main entry point for logging data to rerun. It can be used to log anything - /// that implements the [`AsComponents`], such as any [archetype](https://docs.rs/rerun/latest/rerun/archetypes/index.html). + /// that implements the [`AsComponents`], such as any [archetype](https://docs.rs/rerun/latest/rerun/archetypes/index.html) + /// or individual [component](https://docs.rs/rerun/latest/rerun/components/index.html). /// /// The data will be timestamped automatically based on the [`RecordingStream`]'s internal clock. /// See [`RecordingStream::set_time_sequence`] etc for more information. @@ -889,9 +890,9 @@ impl RecordingStream { pub fn log( &self, ent_path: impl Into, - arch: &impl AsComponents, + as_components: &impl AsComponents, ) -> RecordingStreamResult<()> { - self.log_with_static(ent_path, false, arch) + self.log_with_static(ent_path, false, as_components) } /// Lower-level logging API to provide data spanning multiple timepoints. @@ -951,7 +952,8 @@ impl RecordingStream { /// Log data to Rerun. /// /// It can be used to log anything - /// that implements the [`AsComponents`], such as any [archetype](https://docs.rs/rerun/latest/rerun/archetypes/index.html). + /// that implements the [`AsComponents`], such as any [archetype](https://docs.rs/rerun/latest/rerun/archetypes/index.html) + /// or individual [component](https://docs.rs/rerun/latest/rerun/components/index.html). /// /// Static data has no time associated with it, exists on all timelines, and unconditionally shadows /// any temporal data of the same type. @@ -972,9 +974,9 @@ impl RecordingStream { pub fn log_static( &self, ent_path: impl Into, - arch: &impl AsComponents, + as_components: &impl AsComponents, ) -> RecordingStreamResult<()> { - self.log_with_static(ent_path, true, arch) + self.log_with_static(ent_path, true, as_components) } #[deprecated(since = "0.16.0", note = "use `log_static` instead")] @@ -1016,14 +1018,15 @@ impl RecordingStream { &self, ent_path: impl Into, static_: bool, - arch: &impl AsComponents, + as_components: &impl AsComponents, ) -> RecordingStreamResult<()> { let row_id = RowId::new(); // Create row-id as early as possible. It has a timestamp and is used to estimate e2e latency. self.log_component_batches_impl( row_id, ent_path, static_, - arch.as_component_batches() + as_components + .as_component_batches() .iter() .map(|any_comp_batch| any_comp_batch.as_ref()), ) From ebfed3ffb55ed6d8768a147320e12b9f977e4462 Mon Sep 17 00:00:00 2001 From: Gijs de Jong Date: Fri, 18 Oct 2024 12:42:37 +0200 Subject: [PATCH 4/4] fix ci --- crates/top/re_sdk/src/recording_stream.rs | 26 ++++++++++++++--------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/crates/top/re_sdk/src/recording_stream.rs b/crates/top/re_sdk/src/recording_stream.rs index 82b3e2cbec6d..f79e3cb15a97 100644 --- a/crates/top/re_sdk/src/recording_stream.rs +++ b/crates/top/re_sdk/src/recording_stream.rs @@ -2451,16 +2451,20 @@ mod tests { components: [ ( MyPoint::name(), - MyPoint::to_arrow([MyPoint::new(10.0, 10.0), MyPoint::new(20.0, 20.0)]) - .unwrap(), + ::to_arrow([ + MyPoint::new(10.0, 10.0), + MyPoint::new(20.0, 20.0), + ]) + .unwrap(), ), // ( MyColor::name(), - MyColor::to_arrow([MyColor(0x8080_80FF)]).unwrap(), + ::to_arrow([MyColor(0x8080_80FF)]) + .unwrap(), ), // ( MyLabel::name(), - MyLabel::to_arrow([] as [MyLabel; 0]).unwrap(), + ::to_arrow([] as [MyLabel; 0]).unwrap(), ), // ] .into_iter() @@ -2475,15 +2479,15 @@ mod tests { components: [ ( MyPoint::name(), - MyPoint::to_arrow([] as [MyPoint; 0]).unwrap(), + ::to_arrow([] as [MyPoint; 0]).unwrap(), ), // ( MyColor::name(), - MyColor::to_arrow([] as [MyColor; 0]).unwrap(), + ::to_arrow([] as [MyColor; 0]).unwrap(), ), // ( MyLabel::name(), - MyLabel::to_arrow([] as [MyLabel; 0]).unwrap(), + ::to_arrow([] as [MyLabel; 0]).unwrap(), ), // ] .into_iter() @@ -2498,15 +2502,17 @@ mod tests { components: [ ( MyPoint::name(), - MyPoint::to_arrow([] as [MyPoint; 0]).unwrap(), + ::to_arrow([] as [MyPoint; 0]).unwrap(), ), // ( MyColor::name(), - MyColor::to_arrow([MyColor(0xFFFF_FFFF)]).unwrap(), + ::to_arrow([MyColor(0xFFFF_FFFF)]) + .unwrap(), ), // ( MyLabel::name(), - MyLabel::to_arrow([MyLabel("hey".into())]).unwrap(), + ::to_arrow([MyLabel("hey".into())]) + .unwrap(), ), // ] .into_iter()