From a87336568100d6d9e73aea00621731df610f4391 Mon Sep 17 00:00:00 2001 From: Clement Rey Date: Mon, 11 Nov 2024 18:41:53 +0100 Subject: [PATCH] A Loggable has no semantics --- .../re_types_builder/src/codegen/rust/api.rs | 27 ++- .../src/codegen/rust/reflection.rs | 5 +- crates/store/re_chunk/examples/latest_at.rs | 2 +- crates/store/re_chunk/examples/range.rs | 2 +- crates/store/re_chunk/src/batcher.rs | 2 +- crates/store/re_chunk/src/merge.rs | 2 +- crates/store/re_chunk/src/shuffle.rs | 2 +- crates/store/re_chunk/src/slice.rs | 16 +- crates/store/re_chunk/src/transport.rs | 2 +- crates/store/re_chunk/tests/latest_at.rs | 2 +- crates/store/re_chunk/tests/range.rs | 2 +- crates/store/re_chunk_store/src/events.rs | 2 +- .../store/re_chunk_store/tests/correctness.rs | 2 +- .../re_chunk_store/tests/drop_time_range.rs | 2 +- crates/store/re_chunk_store/tests/gc.rs | 2 +- .../store/re_chunk_store/tests/memory_test.rs | 2 +- crates/store/re_chunk_store/tests/reads.rs | 2 +- crates/store/re_chunk_store/tests/stats.rs | 2 +- crates/store/re_dataframe/src/query.rs | 4 +- crates/store/re_format_arrow/src/lib.rs | 2 +- .../re_log_types/src/example_components.rs | 64 +++--- .../re_log_types/src/path/entity_path.rs | 9 +- crates/store/re_query/examples/latest_at.rs | 5 +- crates/store/re_query/examples/range.rs | 8 +- crates/store/re_query/src/cache.rs | 2 +- crates/store/re_query/src/latest_at.rs | 4 +- crates/store/re_query/tests/range.rs | 2 +- .../src/blueprint/components/active_tab.rs | 14 +- .../blueprint/components/apply_latest_at.rs | 14 +- .../blueprint/components/background_kind.rs | 14 +- .../src/blueprint/components/column_share.rs | 14 +- .../components/component_column_selector.rs | 14 +- .../src/blueprint/components/corner2d.rs | 14 +- .../blueprint/components/filter_by_range.rs | 14 +- .../components/filter_is_not_null.rs | 14 +- .../blueprint/components/included_content.rs | 14 +- .../src/blueprint/components/interactive.rs | 14 +- .../components/lock_range_during_zoom.rs | 14 +- .../src/blueprint/components/map_provider.rs | 14 +- .../src/blueprint/components/panel_state.rs | 14 +- .../blueprint/components/query_expression.rs | 14 +- .../src/blueprint/components/row_share.rs | 14 +- .../blueprint/components/selected_columns.rs | 14 +- .../blueprint/components/space_view_class.rs | 14 +- .../blueprint/components/space_view_origin.rs | 14 +- .../tensor_dimension_index_slider.rs | 14 +- .../src/blueprint/components/timeline_name.rs | 14 +- .../src/blueprint/components/view_fit.rs | 14 +- .../components/viewer_recommendation_hash.rs | 14 +- .../src/blueprint/components/visible.rs | 14 +- .../components/visible_time_range.rs | 14 +- .../blueprint/components/visual_bounds2d.rs | 14 +- .../src/blueprint/components/zoom_level.rs | 14 +- .../datatypes/component_column_selector.rs | 7 - .../blueprint/datatypes/filter_by_range.rs | 7 - .../blueprint/datatypes/filter_is_not_null.rs | 7 - .../blueprint/datatypes/selected_columns.rs | 7 - .../tensor_dimension_index_slider.rs | 7 - .../src/components/aggregation_policy.rs | 14 +- .../re_types/src/components/albedo_factor.rs | 14 +- .../src/components/annotation_context.rs | 14 +- .../re_types/src/components/axis_length.rs | 14 +- crates/store/re_types/src/components/blob.rs | 14 +- .../store/re_types/src/components/class_id.rs | 14 +- crates/store/re_types/src/components/color.rs | 14 +- .../store/re_types/src/components/colormap.rs | 14 +- .../re_types/src/components/depth_meter.rs | 14 +- .../src/components/disconnected_space.rs | 14 +- .../re_types/src/components/draw_order.rs | 14 +- .../re_types/src/components/entity_path.rs | 14 +- .../re_types/src/components/fill_mode.rs | 14 +- .../re_types/src/components/fill_ratio.rs | 14 +- .../src/components/gamma_correction.rs | 14 +- .../src/components/geo_line_string.rs | 14 +- .../re_types/src/components/half_size2d.rs | 14 +- .../re_types/src/components/half_size3d.rs | 14 +- .../re_types/src/components/image_buffer.rs | 14 +- .../re_types/src/components/image_format.rs | 14 +- .../src/components/image_plane_distance.rs | 14 +- .../re_types/src/components/keypoint_id.rs | 14 +- .../store/re_types/src/components/lat_lon.rs | 14 +- .../store/re_types/src/components/length.rs | 14 +- .../re_types/src/components/line_strip2d.rs | 14 +- .../re_types/src/components/line_strip3d.rs | 14 +- .../src/components/magnification_filter.rs | 14 +- .../re_types/src/components/marker_shape.rs | 14 +- .../re_types/src/components/marker_size.rs | 14 +- .../re_types/src/components/media_type.rs | 14 +- crates/store/re_types/src/components/name.rs | 14 +- .../store/re_types/src/components/opacity.rs | 14 +- .../src/components/pinhole_projection.rs | 14 +- .../components/pose_rotation_axis_angle.rs | 14 +- .../src/components/pose_rotation_quat.rs | 14 +- .../re_types/src/components/pose_scale3d.rs | 14 +- .../src/components/pose_transform_mat3x3.rs | 14 +- .../src/components/pose_translation3d.rs | 14 +- .../re_types/src/components/position2d.rs | 14 +- .../re_types/src/components/position3d.rs | 14 +- .../store/re_types/src/components/radius.rs | 14 +- .../store/re_types/src/components/range1d.rs | 14 +- .../re_types/src/components/resolution.rs | 14 +- .../src/components/rotation_axis_angle.rs | 14 +- .../re_types/src/components/rotation_quat.rs | 14 +- .../store/re_types/src/components/scalar.rs | 14 +- .../store/re_types/src/components/scale3d.rs | 14 +- .../re_types/src/components/show_labels.rs | 14 +- .../re_types/src/components/stroke_width.rs | 14 +- .../re_types/src/components/tensor_data.rs | 14 +- .../tensor_dimension_index_selection.rs | 14 +- .../src/components/tensor_height_dimension.rs | 14 +- .../src/components/tensor_width_dimension.rs | 14 +- .../re_types/src/components/texcoord2d.rs | 14 +- crates/store/re_types/src/components/text.rs | 14 +- .../re_types/src/components/text_log_level.rs | 14 +- .../src/components/transform_mat3x3.rs | 14 +- .../src/components/transform_relation.rs | 14 +- .../re_types/src/components/translation3d.rs | 14 +- .../src/components/triangle_indices.rs | 14 +- .../re_types/src/components/value_range.rs | 14 +- .../store/re_types/src/components/vector2d.rs | 14 +- .../store/re_types/src/components/vector3d.rs | 14 +- .../src/components/video_timestamp.rs | 14 +- .../src/components/view_coordinates.rs | 14 +- crates/store/re_types/src/datatypes/angle.rs | 7 - .../re_types/src/datatypes/annotation_info.rs | 7 - crates/store/re_types/src/datatypes/blob.rs | 7 - .../src/datatypes/channel_datatype.rs | 7 - .../src/datatypes/class_description.rs | 7 - .../datatypes/class_description_map_elem.rs | 7 - .../store/re_types/src/datatypes/class_id.rs | 7 - .../re_types/src/datatypes/color_model.rs | 7 - crates/store/re_types/src/datatypes/dvec2d.rs | 7 - .../re_types/src/datatypes/image_format.rs | 7 - .../re_types/src/datatypes/keypoint_id.rs | 7 - .../re_types/src/datatypes/keypoint_pair.rs | 7 - crates/store/re_types/src/datatypes/mat3x3.rs | 7 - crates/store/re_types/src/datatypes/mat4x4.rs | 7 - .../re_types/src/datatypes/pixel_format.rs | 7 - .../re_types/src/datatypes/quaternion.rs | 7 - .../store/re_types/src/datatypes/range1d.rs | 7 - .../store/re_types/src/datatypes/range2d.rs | 7 - crates/store/re_types/src/datatypes/rgba32.rs | 7 - .../src/datatypes/rotation_axis_angle.rs | 7 - .../re_types/src/datatypes/tensor_buffer.rs | 7 - .../re_types/src/datatypes/tensor_data.rs | 7 - .../src/datatypes/tensor_dimension.rs | 7 - .../tensor_dimension_index_selection.rs | 7 - .../datatypes/tensor_dimension_selection.rs | 7 - crates/store/re_types/src/datatypes/uuid.rs | 7 - crates/store/re_types/src/datatypes/uvec2d.rs | 7 - crates/store/re_types/src/datatypes/uvec3d.rs | 7 - crates/store/re_types/src/datatypes/uvec4d.rs | 7 - crates/store/re_types/src/datatypes/vec2d.rs | 7 - crates/store/re_types/src/datatypes/vec3d.rs | 7 - crates/store/re_types/src/datatypes/vec4d.rs | 7 - .../re_types/src/datatypes/video_timestamp.rs | 7 - .../src/datatypes/view_coordinates.rs | 7 - .../src/testing/components/affix_fuzzer1.rs | 14 +- .../src/testing/components/affix_fuzzer10.rs | 14 +- .../src/testing/components/affix_fuzzer11.rs | 14 +- .../src/testing/components/affix_fuzzer12.rs | 14 +- .../src/testing/components/affix_fuzzer13.rs | 14 +- .../src/testing/components/affix_fuzzer14.rs | 14 +- .../src/testing/components/affix_fuzzer15.rs | 14 +- .../src/testing/components/affix_fuzzer16.rs | 14 +- .../src/testing/components/affix_fuzzer17.rs | 14 +- .../src/testing/components/affix_fuzzer18.rs | 14 +- .../src/testing/components/affix_fuzzer19.rs | 14 +- .../src/testing/components/affix_fuzzer2.rs | 14 +- .../src/testing/components/affix_fuzzer20.rs | 14 +- .../src/testing/components/affix_fuzzer21.rs | 14 +- .../src/testing/components/affix_fuzzer22.rs | 14 +- .../src/testing/components/affix_fuzzer23.rs | 14 +- .../src/testing/components/affix_fuzzer3.rs | 14 +- .../src/testing/components/affix_fuzzer4.rs | 14 +- .../src/testing/components/affix_fuzzer5.rs | 14 +- .../src/testing/components/affix_fuzzer6.rs | 14 +- .../src/testing/components/affix_fuzzer7.rs | 14 +- .../src/testing/components/affix_fuzzer8.rs | 14 +- .../src/testing/components/affix_fuzzer9.rs | 14 +- .../src/testing/datatypes/affix_fuzzer1.rs | 7 - .../src/testing/datatypes/affix_fuzzer2.rs | 7 - .../src/testing/datatypes/affix_fuzzer20.rs | 7 - .../src/testing/datatypes/affix_fuzzer21.rs | 7 - .../src/testing/datatypes/affix_fuzzer22.rs | 7 - .../src/testing/datatypes/affix_fuzzer3.rs | 7 - .../src/testing/datatypes/affix_fuzzer4.rs | 7 - .../src/testing/datatypes/affix_fuzzer5.rs | 7 - .../src/testing/datatypes/enum_test.rs | 7 - .../src/testing/datatypes/flattened_scalar.rs | 7 - .../src/testing/datatypes/multi_enum.rs | 7 - .../testing/datatypes/primitive_component.rs | 7 - .../src/testing/datatypes/string_component.rs | 7 - .../src/testing/datatypes/valued_enum.rs | 7 - .../src/blueprint/components/auto_layout.rs | 14 +- .../blueprint/components/auto_space_views.rs | 14 +- .../blueprint/components/container_kind.rs | 14 +- .../src/blueprint/components/grid_columns.rs | 14 +- .../components/included_space_view.rs | 14 +- .../blueprint/components/root_container.rs | 14 +- .../components/space_view_maximized.rs | 14 +- .../components/visualizer_overrides.rs | 14 +- .../src/blueprint/datatypes/utf8list.rs | 7 - crates/store/re_types_core/src/archetype.rs | 46 ++-- .../src/components/clear_is_recursive.rs | 14 +- .../store/re_types_core/src/datatypes/bool.rs | 7 - .../src/datatypes/entity_path.rs | 7 - .../re_types_core/src/datatypes/float32.rs | 7 - .../re_types_core/src/datatypes/float64.rs | 7 - .../re_types_core/src/datatypes/time_int.rs | 7 - .../re_types_core/src/datatypes/time_range.rs | 7 - .../src/datatypes/time_range_boundary.rs | 7 - .../re_types_core/src/datatypes/uint16.rs | 7 - .../re_types_core/src/datatypes/uint32.rs | 7 - .../re_types_core/src/datatypes/uint64.rs | 7 - .../store/re_types_core/src/datatypes/utf8.rs | 7 - .../src/datatypes/visible_time_range.rs | 7 - crates/store/re_types_core/src/loggable.rs | 32 ++- .../store/re_types_core/src/loggable_batch.rs | 166 ++++++-------- crates/store/re_types_core/src/tuid.rs | 27 +-- crates/top/re_sdk/src/recording_stream.rs | 12 +- crates/utils/re_tuid/src/lib.rs | 2 + crates/viewer/re_component_ui/src/lib.rs | 2 +- crates/viewer/re_component_ui/src/timeline.rs | 2 +- crates/viewer/re_data_ui/src/instance_path.rs | 2 +- .../re_selection_panel/src/selection_panel.rs | 2 +- .../src/visible_time_range_ui.rs | 2 +- .../src/visualizers/geo_line_strings.rs | 2 +- .../src/visualizers/geo_points.rs | 2 +- .../src/contexts/depth_offsets.rs | 2 +- .../src/contexts/transform_context.rs | 2 +- .../src/max_image_dimension_subscriber.rs | 2 +- .../re_space_view_spatial/src/mesh_cache.rs | 2 +- .../src/spatial_topology.rs | 4 +- .../src/transform_component_tracker.rs | 2 +- .../re_space_view_spatial/src/view_3d.rs | 2 +- .../src/visualizers/arrows2d.rs | 2 +- .../src/visualizers/arrows3d.rs | 2 +- .../src/visualizers/assets3d.rs | 2 +- .../src/visualizers/boxes2d.rs | 2 +- .../src/visualizers/boxes3d.rs | 2 +- .../src/visualizers/capsules3d.rs | 2 +- .../src/visualizers/depth_images.rs | 2 +- .../src/visualizers/ellipsoids.rs | 2 +- .../src/visualizers/encoded_image.rs | 2 +- .../src/visualizers/images.rs | 2 +- .../src/visualizers/lines2d.rs | 2 +- .../src/visualizers/lines3d.rs | 2 +- .../src/visualizers/meshes.rs | 2 +- .../src/visualizers/points2d.rs | 2 +- .../src/visualizers/points3d.rs | 2 +- .../src/visualizers/segmentation_images.rs | 2 +- .../src/visualizers/transform3d_arrows.rs | 2 +- .../src/visualizers/utilities/labels.rs | 2 +- .../src/visualizers/videos.rs | 2 +- .../src/visualizer_system.rs | 2 +- .../src/visualizer_system.rs | 2 +- .../src/line_visualizer_system.rs | 2 +- .../src/point_visualizer_system.rs | 2 +- crates/viewer/re_viewer/src/reflection/mod.rs | 202 +++++++++--------- .../src/cache/image_decode_cache.rs | 2 +- .../src/cache/image_stats_cache.rs | 2 +- .../src/cache/tensor_stats_cache.rs | 2 +- .../src/cache/video_cache.rs | 2 +- .../src/component_fallbacks.rs | 2 +- .../re_viewport_blueprint/src/space_view.rs | 29 +-- .../src/space_view_contents.rs | 4 +- docs/snippets/all/tutorials/custom_data.rs | 15 +- .../color_coordinates_visualizer_system.rs | 2 +- 269 files changed, 1235 insertions(+), 1750 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 5af0b8486865..a919b4864a04 100644 --- a/crates/build/re_types_builder/src/codegen/rust/api.rs +++ b/crates/build/re_types_builder/src/codegen/rust/api.rs @@ -851,13 +851,6 @@ fn quote_trait_impls_for_datatype_or_component( let name = format_ident!("{name}"); - let quoted_kind = if *kind == ObjectKind::Datatype { - quote!(Datatype) - } else { - quote!(Component) - }; - let kind_name = format_ident!("{quoted_kind}Name"); - let datatype = arrow_registry.get(fqname); let optimize_for_buffer_slice = should_optimize_buffer_slice_deserialize(obj, arrow_registry); @@ -1002,17 +995,21 @@ fn quote_trait_impls_for_datatype_or_component( } }; + let quoted_impl_component = (obj.kind == ObjectKind::Component).then(|| { + quote! { + impl ::re_types_core::Component for #name { + #[inline] + fn name() -> ComponentName { + #fqname.into() + } + } + } + }); + quote! { ::re_types_core::macros::impl_into_cow!(#name); impl ::re_types_core::Loggable for #name { - type Name = ::re_types_core::#kind_name; - - #[inline] - fn name() -> Self::Name { - #fqname.into() - } - #quoted_arrow_datatype #quoted_serializer @@ -1029,6 +1026,8 @@ fn quote_trait_impls_for_datatype_or_component( #quoted_from_arrow } + + #quoted_impl_component } } diff --git a/crates/build/re_types_builder/src/codegen/rust/reflection.rs b/crates/build/re_types_builder/src/codegen/rust/reflection.rs index 9c26710f621e..79819a4fd6a5 100644 --- a/crates/build/re_types_builder/src/codegen/rust/reflection.rs +++ b/crates/build/re_types_builder/src/codegen/rust/reflection.rs @@ -46,7 +46,8 @@ pub fn generate_reflection( use re_types_core::{ ArchetypeName, ComponentName, - Loggable, + Component, + Loggable as _, LoggableBatch as _, reflection::{ ArchetypeFieldReflection, @@ -103,7 +104,7 @@ fn generate_component_reflection( let type_name = format_ident!("{}", obj.name); let quoted_name = if true { - quote!( <#type_name as Loggable>::name() ) + quote!( <#type_name as Component>::name() ) } else { // Works too let fqname = &obj.fqname; diff --git a/crates/store/re_chunk/examples/latest_at.rs b/crates/store/re_chunk/examples/latest_at.rs index 2aed6de34767..6b65f986620f 100644 --- a/crates/store/re_chunk/examples/latest_at.rs +++ b/crates/store/re_chunk/examples/latest_at.rs @@ -1,6 +1,6 @@ use re_chunk::{Chunk, LatestAtQuery, RowId, Timeline}; use re_log_types::example_components::{MyColor, MyLabel, MyPoint}; -use re_types_core::Loggable as _; +use re_types_core::Component as _; // --- diff --git a/crates/store/re_chunk/examples/range.rs b/crates/store/re_chunk/examples/range.rs index 822d1901c399..c7d844e34c66 100644 --- a/crates/store/re_chunk/examples/range.rs +++ b/crates/store/re_chunk/examples/range.rs @@ -3,7 +3,7 @@ use re_log_types::{ example_components::{MyColor, MyLabel, MyPoint}, ResolvedTimeRange, }; -use re_types_core::Loggable as _; +use re_types_core::Component as _; // --- diff --git a/crates/store/re_chunk/src/batcher.rs b/crates/store/re_chunk/src/batcher.rs index 25331cd58f54..c12bda62275a 100644 --- a/crates/store/re_chunk/src/batcher.rs +++ b/crates/store/re_chunk/src/batcher.rs @@ -985,7 +985,7 @@ mod tests { use crossbeam::channel::TryRecvError; use re_log_types::example_components::{MyPoint, MyPoint64}; - use re_types_core::Loggable as _; + use re_types_core::{Component as _, Loggable as _}; use super::*; diff --git a/crates/store/re_chunk/src/merge.rs b/crates/store/re_chunk/src/merge.rs index 2d979699d76f..c93f3f12a196 100644 --- a/crates/store/re_chunk/src/merge.rs +++ b/crates/store/re_chunk/src/merge.rs @@ -274,7 +274,7 @@ mod tests { use super::*; use re_log_types::example_components::{MyColor, MyLabel, MyPoint, MyPoint64}; - use re_types_core::Loggable; + use re_types_core::Component; use crate::{Chunk, RowId, Timeline}; diff --git a/crates/store/re_chunk/src/shuffle.rs b/crates/store/re_chunk/src/shuffle.rs index b92cc43e1ff3..c0df428cb24b 100644 --- a/crates/store/re_chunk/src/shuffle.rs +++ b/crates/store/re_chunk/src/shuffle.rs @@ -321,7 +321,7 @@ mod tests { example_components::{MyColor, MyPoint}, EntityPath, Timeline, }; - use re_types_core::Loggable as _; + use re_types_core::Component as _; use crate::{ChunkId, RowId}; diff --git a/crates/store/re_chunk/src/slice.rs b/crates/store/re_chunk/src/slice.rs index 40a97dfbde66..35a08d21ad31 100644 --- a/crates/store/re_chunk/src/slice.rs +++ b/crates/store/re_chunk/src/slice.rs @@ -875,7 +875,7 @@ mod tests { example_components::{MyColor, MyLabel, MyPoint}, TimePoint, }; - use re_types_core::{ComponentBatch, Loggable}; + use re_types_core::Component; use crate::{Chunk, RowId, Timeline}; @@ -974,7 +974,7 @@ mod tests { eprintln!("chunk:\n{chunk}"); - let expectations: &[(_, _, Option<&dyn ComponentBatch>)] = &[ + let expectations: &[(_, _, Option<&dyn re_types_core::ComponentBatch>)] = &[ (row_id1, MyPoint::name(), Some(points1 as _)), (row_id2, MyLabel::name(), Some(labels4 as _)), (row_id3, MyColor::name(), None), @@ -1101,7 +1101,7 @@ mod tests { eprintln!("got:\n{got}"); assert_eq!(2, got.num_rows()); - let expectations: &[(_, _, Option<&dyn ComponentBatch>)] = &[ + let expectations: &[(_, _, Option<&dyn re_types_core::ComponentBatch>)] = &[ (row_id3, MyPoint::name(), Some(points3 as _)), (row_id3, MyColor::name(), None), (row_id3, MyLabel::name(), Some(labels3 as _)), @@ -1124,7 +1124,7 @@ mod tests { eprintln!("got:\n{got}"); assert_eq!(5, got.num_rows()); - let expectations: &[(_, _, Option<&dyn ComponentBatch>)] = &[ + let expectations: &[(_, _, Option<&dyn re_types_core::ComponentBatch>)] = &[ (row_id1, MyPoint::name(), Some(points1 as _)), (row_id1, MyColor::name(), None), (row_id1, MyLabel::name(), Some(labels1 as _)), @@ -1232,7 +1232,7 @@ mod tests { eprintln!("got:\n{got}"); assert_eq!(1, got.num_rows()); - let expectations: &[(_, _, Option<&dyn ComponentBatch>)] = &[ + let expectations: &[(_, _, Option<&dyn re_types_core::ComponentBatch>)] = &[ (row_id5, MyPoint::name(), None), (row_id5, MyColor::name(), Some(colors5 as _)), (row_id5, MyLabel::name(), Some(labels5 as _)), @@ -1251,7 +1251,7 @@ mod tests { eprintln!("got:\n{got}"); assert_eq!(1, got.num_rows()); - let expectations: &[(_, _, Option<&dyn ComponentBatch>)] = &[ + let expectations: &[(_, _, Option<&dyn re_types_core::ComponentBatch>)] = &[ (row_id5, MyPoint::name(), None), (row_id5, MyColor::name(), Some(colors5 as _)), (row_id5, MyLabel::name(), Some(labels5 as _)), @@ -1370,7 +1370,7 @@ mod tests { eprintln!("got:\n{got}"); assert_eq!(filter.values_iter().filter(|&b| b).count(), got.num_rows()); - let expectations: &[(_, _, Option<&dyn ComponentBatch>)] = &[ + let expectations: &[(_, _, Option<&dyn re_types_core::ComponentBatch>)] = &[ (row_id1, MyPoint::name(), Some(points1 as _)), (row_id1, MyColor::name(), None), (row_id1, MyLabel::name(), Some(labels1 as _)), @@ -1517,7 +1517,7 @@ mod tests { eprintln!("got:\n{got}"); assert_eq!(indices.len(), got.num_rows()); - let expectations: &[(_, _, Option<&dyn ComponentBatch>)] = &[ + let expectations: &[(_, _, Option<&dyn re_types_core::ComponentBatch>)] = &[ (row_id1, MyPoint::name(), Some(points1 as _)), (row_id1, MyColor::name(), None), (row_id1, MyLabel::name(), Some(labels1 as _)), diff --git a/crates/store/re_chunk/src/transport.rs b/crates/store/re_chunk/src/transport.rs index 1c50778b1410..04d9f2ed78ac 100644 --- a/crates/store/re_chunk/src/transport.rs +++ b/crates/store/re_chunk/src/transport.rs @@ -13,7 +13,7 @@ use arrow2::{ }; use re_log_types::{EntityPath, Timeline}; -use re_types_core::{Loggable as _, SizeBytes}; +use re_types_core::{Component as _, Loggable as _, SizeBytes}; use crate::{Chunk, ChunkError, ChunkId, ChunkResult, RowId, TimeColumn}; diff --git a/crates/store/re_chunk/tests/latest_at.rs b/crates/store/re_chunk/tests/latest_at.rs index 596dc21e3a5e..566df5e7df83 100644 --- a/crates/store/re_chunk/tests/latest_at.rs +++ b/crates/store/re_chunk/tests/latest_at.rs @@ -3,7 +3,7 @@ use nohash_hasher::IntMap; use re_chunk::{Chunk, ComponentName, LatestAtQuery, RowId, TimePoint, Timeline}; use re_log_types::example_components::{MyColor, MyLabel, MyPoint}; -use re_types_core::Loggable; +use re_types_core::{Component, Loggable}; // --- diff --git a/crates/store/re_chunk/tests/range.rs b/crates/store/re_chunk/tests/range.rs index 12ae31430dc1..1c37166bd7b8 100644 --- a/crates/store/re_chunk/tests/range.rs +++ b/crates/store/re_chunk/tests/range.rs @@ -6,7 +6,7 @@ use re_log_types::{ example_components::{MyColor, MyLabel, MyPoint}, ResolvedTimeRange, }; -use re_types_core::Loggable as _; +use re_types_core::{Component as _, Loggable as _}; // --- diff --git a/crates/store/re_chunk_store/src/events.rs b/crates/store/re_chunk_store/src/events.rs index 62e990de35f4..4fb34521344a 100644 --- a/crates/store/re_chunk_store/src/events.rs +++ b/crates/store/re_chunk_store/src/events.rs @@ -194,7 +194,7 @@ mod tests { example_components::{MyColor, MyIndex, MyPoint}, EntityPath, TimeInt, TimePoint, Timeline, }; - use re_types_core::{ComponentName, Loggable as _}; + use re_types_core::{Component as _, ComponentName}; use crate::{ChunkStore, GarbageCollectionOptions}; diff --git a/crates/store/re_chunk_store/tests/correctness.rs b/crates/store/re_chunk_store/tests/correctness.rs index a8ee192f7283..794f6e5a2e1d 100644 --- a/crates/store/re_chunk_store/tests/correctness.rs +++ b/crates/store/re_chunk_store/tests/correctness.rs @@ -10,7 +10,7 @@ use re_log_types::{ build_frame_nr, build_log_time, Duration, EntityPath, Time, TimeInt, TimePoint, TimeType, Timeline, }; -use re_types_core::Loggable as _; +use re_types_core::Component as _; // --- diff --git a/crates/store/re_chunk_store/tests/drop_time_range.rs b/crates/store/re_chunk_store/tests/drop_time_range.rs index 2400dcac8127..02acf442ff3a 100644 --- a/crates/store/re_chunk_store/tests/drop_time_range.rs +++ b/crates/store/re_chunk_store/tests/drop_time_range.rs @@ -7,7 +7,7 @@ use re_chunk::{Chunk, RowId}; use re_chunk_store::{ChunkStore, ChunkStoreConfig}; use re_log_types::{example_components::MyColor, ResolvedTimeRange}; use re_log_types::{EntityPath, TimePoint, Timeline}; -use re_types_core::Loggable as _; +use re_types_core::Component as _; #[test] fn drop_time_range() -> anyhow::Result<()> { diff --git a/crates/store/re_chunk_store/tests/gc.rs b/crates/store/re_chunk_store/tests/gc.rs index d4b18aa68b89..9e1bd7d0463f 100644 --- a/crates/store/re_chunk_store/tests/gc.rs +++ b/crates/store/re_chunk_store/tests/gc.rs @@ -14,7 +14,7 @@ use re_log_types::{ EntityPath, ResolvedTimeRange, Time, TimeType, Timeline, }; use re_types::testing::build_some_large_structs; -use re_types_core::Loggable as _; +use re_types_core::Component as _; // --- diff --git a/crates/store/re_chunk_store/tests/memory_test.rs b/crates/store/re_chunk_store/tests/memory_test.rs index 54b90648ef3c..99ffa6ed2ed0 100644 --- a/crates/store/re_chunk_store/tests/memory_test.rs +++ b/crates/store/re_chunk_store/tests/memory_test.rs @@ -73,7 +73,7 @@ use re_chunk::{ }; use re_chunk_store::{ChunkStore, ChunkStoreConfig}; use re_log_types::{TimePoint, TimeType, Timeline}; -use re_types::{components::Scalar, Loggable}; +use re_types::{components::Scalar, Component, Loggable}; /// The memory overhead of storing many scalars in the store. #[test] diff --git a/crates/store/re_chunk_store/tests/reads.rs b/crates/store/re_chunk_store/tests/reads.rs index faf29a34973c..e94eb426183e 100644 --- a/crates/store/re_chunk_store/tests/reads.rs +++ b/crates/store/re_chunk_store/tests/reads.rs @@ -14,7 +14,7 @@ use re_log_types::{ }; use re_types::testing::{build_some_large_structs, LargeStruct}; use re_types::ComponentNameSet; -use re_types_core::{ComponentName, Loggable as _}; +use re_types_core::{Component as _, ComponentName}; // --- diff --git a/crates/store/re_chunk_store/tests/stats.rs b/crates/store/re_chunk_store/tests/stats.rs index a77948677cac..772814961bad 100644 --- a/crates/store/re_chunk_store/tests/stats.rs +++ b/crates/store/re_chunk_store/tests/stats.rs @@ -7,7 +7,7 @@ use re_log_types::{ example_components::{MyColor, MyPoint}, EntityPath, Timeline, }; -use re_types_core::Loggable as _; +use re_types_core::Component as _; #[test] fn stats() -> anyhow::Result<()> { diff --git a/crates/store/re_dataframe/src/query.rs b/crates/store/re_dataframe/src/query.rs index 6ad5e8ce9f00..ae0d24f26dbd 100644 --- a/crates/store/re_dataframe/src/query.rs +++ b/crates/store/re_dataframe/src/query.rs @@ -535,7 +535,7 @@ impl QueryHandle { (!chunk.is_empty()).then_some(chunk) } - use re_types_core::Loggable as _; + use re_types_core::Component as _; let component_names = [re_types_core::components::ClearIsRecursive::name()]; // All unique entity paths present in the view contents. @@ -1296,7 +1296,7 @@ mod tests { }; use re_query::StorageEngine; use re_types::components::ClearIsRecursive; - use re_types_core::Loggable as _; + use re_types_core::Component as _; use crate::{QueryCache, QueryEngine}; diff --git a/crates/store/re_format_arrow/src/lib.rs b/crates/store/re_format_arrow/src/lib.rs index 4d090a7e9f04..9858d1ff9e8c 100644 --- a/crates/store/re_format_arrow/src/lib.rs +++ b/crates/store/re_format_arrow/src/lib.rs @@ -38,7 +38,7 @@ fn get_custom_display<'a, F: std::fmt::Write + 'a>( if let Some(DataType::Extension(name, _, _)) = datatype { // TODO(#1775): This should be registered dynamically. - if name.as_str() == Tuid::name() { + if name.as_str() == Tuid::NAME { return Box::new(|w, index| { if let Some(tuid) = parse_tuid(array, index) { w.write_fmt(format_args!("{tuid}")) diff --git a/crates/store/re_log_types/src/example_components.rs b/crates/store/re_log_types/src/example_components.rs index 6eae2e54a8f4..f3473f713c43 100644 --- a/crates/store/re_log_types/src/example_components.rs +++ b/crates/store/re_log_types/src/example_components.rs @@ -2,7 +2,7 @@ use std::sync::Arc; -use re_types_core::{DeserializationError, Loggable, SizeBytes}; +use re_types_core::{Component, ComponentName, DeserializationError, Loggable, SizeBytes}; // ---------------------------------------------------------------------------- @@ -30,7 +30,7 @@ impl re_types_core::Archetype for MyPoints { fn recommended_components() -> std::borrow::Cow<'static, [re_types_core::ComponentName]> { vec![ - re_types_core::LoggableBatch::name(&Self::Indicator::default()), + re_types_core::ComponentBatch::name(&Self::Indicator::default()), MyColor::name(), MyLabel::name(), ] @@ -75,12 +75,6 @@ impl SizeBytes for MyPoint { } impl Loggable for MyPoint { - type Name = re_types_core::ComponentName; - - fn name() -> Self::Name { - "example.MyPoint".into() - } - fn arrow_datatype() -> arrow2::datatypes::DataType { use arrow2::datatypes::DataType::Float32; arrow2::datatypes::DataType::Struct(Arc::new(vec![ @@ -147,6 +141,12 @@ impl Loggable for MyPoint { } } +impl Component for MyPoint { + fn name() -> ComponentName { + "example.MyPoint".into() + } +} + // ---------------------------------------------------------------------------- #[derive(Clone, Copy, Debug, Default, PartialEq, bytemuck::Pod, bytemuck::Zeroable)] @@ -184,12 +184,6 @@ impl SizeBytes for MyPoint64 { } impl Loggable for MyPoint64 { - type Name = re_types_core::ComponentName; - - fn name() -> Self::Name { - "example.MyPoint64".into() - } - fn arrow_datatype() -> arrow2::datatypes::DataType { use arrow2::datatypes::DataType::Float64; arrow2::datatypes::DataType::Struct(Arc::new(vec![ @@ -256,6 +250,12 @@ impl Loggable for MyPoint64 { } } +impl Component for MyPoint64 { + fn name() -> ComponentName { + "example.MyPoint64".into() + } +} + // ---------------------------------------------------------------------------- #[derive(Clone, Copy, Debug, PartialEq, Eq, bytemuck::Pod, bytemuck::Zeroable)] @@ -296,12 +296,6 @@ impl SizeBytes for MyColor { } impl Loggable for MyColor { - type Name = re_types_core::ComponentName; - - fn name() -> Self::Name { - "example.MyColor".into() - } - fn arrow_datatype() -> arrow2::datatypes::DataType { arrow2::datatypes::DataType::UInt32 } @@ -330,6 +324,12 @@ impl Loggable for MyColor { } } +impl Component for MyColor { + fn name() -> ComponentName { + "example.MyColor".into() + } +} + // ---------------------------------------------------------------------------- #[derive(Debug, Clone, PartialEq, Eq)] @@ -347,12 +347,6 @@ impl SizeBytes for MyLabel { } impl Loggable for MyLabel { - type Name = re_types_core::ComponentName; - - fn name() -> Self::Name { - "example.MyLabel".into() - } - fn arrow_datatype() -> arrow2::datatypes::DataType { re_types_core::datatypes::Utf8::arrow_datatype() } @@ -381,6 +375,12 @@ impl Loggable for MyLabel { } } +impl Component for MyLabel { + fn name() -> ComponentName { + "example.MyLabel".into() + } +} + // ---------------------------------------------------------------------------- #[derive(Clone, Copy, Debug, PartialEq, Eq, bytemuck::Pod, bytemuck::Zeroable)] @@ -407,12 +407,6 @@ impl SizeBytes for MyIndex { } impl Loggable for MyIndex { - type Name = re_types_core::ComponentName; - - fn name() -> Self::Name { - "example.MyIndex".into() - } - fn arrow_datatype() -> arrow2::datatypes::DataType { arrow2::datatypes::DataType::UInt64 } @@ -440,3 +434,9 @@ impl Loggable for MyIndex { .collect()) } } + +impl Component for MyIndex { + fn name() -> ComponentName { + "example.MyIndex".into() + } +} diff --git a/crates/store/re_log_types/src/path/entity_path.rs b/crates/store/re_log_types/src/path/entity_path.rs index a015594c5924..d059f573f188 100644 --- a/crates/store/re_log_types/src/path/entity_path.rs +++ b/crates/store/re_log_types/src/path/entity_path.rs @@ -422,13 +422,6 @@ use re_types_core::Loggable; re_types_core::macros::impl_into_cow!(EntityPath); impl Loggable for EntityPath { - type Name = re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.controls.EntityPath".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { re_types_core::datatypes::Utf8::arrow_datatype() @@ -441,7 +434,7 @@ impl Loggable for EntityPath { Self: 'a, { Err(re_types_core::SerializationError::not_implemented( - Self::name(), + "rerun.controls.EntityPath", "EntityPaths are never nullable, use `to_arrow()` instead", )) } diff --git a/crates/store/re_query/examples/latest_at.rs b/crates/store/re_query/examples/latest_at.rs index eb5d4e208549..e096db0fb8af 100644 --- a/crates/store/re_query/examples/latest_at.rs +++ b/crates/store/re_query/examples/latest_at.rs @@ -8,7 +8,7 @@ use re_chunk::{Chunk, RowId}; use re_chunk_store::{ChunkStore, ChunkStoreHandle, LatestAtQuery}; use re_log_types::example_components::{MyColor, MyLabel, MyPoint, MyPoints}; use re_log_types::{build_frame_nr, Timeline}; -use re_types::{ComponentBatch, Loggable as _}; +use re_types::Component as _; use re_types_core::Archetype as _; use re_query::{clamped_zip_1x2, LatestAtResults}; @@ -116,7 +116,8 @@ fn store() -> anyhow::Result { RowId::new(), timepoint, [ - &[MyPoint::new(1.0, 2.0), MyPoint::new(3.0, 4.0)] as &dyn ComponentBatch, // + &[MyPoint::new(1.0, 2.0), MyPoint::new(3.0, 4.0)] + as &dyn re_types_core::ComponentBatch, // &[MyColor::from_rgb(255, 0, 0)], &[MyLabel("a".into()), MyLabel("b".into())], ], diff --git a/crates/store/re_query/examples/range.rs b/crates/store/re_query/examples/range.rs index f43805a39070..a5ec04ef7173 100644 --- a/crates/store/re_query/examples/range.rs +++ b/crates/store/re_query/examples/range.rs @@ -5,8 +5,7 @@ use re_chunk::{Chunk, RowId}; use re_chunk_store::{ChunkStore, ChunkStoreHandle, RangeQuery}; use re_log_types::example_components::{MyColor, MyLabel, MyPoint, MyPoints}; use re_log_types::{build_frame_nr, ResolvedTimeRange, TimeType, Timeline}; -use re_types::ComponentBatch; -use re_types_core::{Archetype as _, Loggable as _}; +use re_types_core::{Archetype as _, Component as _}; use re_query::{clamped_zip_1x2, range_zip_1x2, RangeResults}; @@ -114,7 +113,8 @@ fn store() -> anyhow::Result { RowId::new(), timepoint, [ - &[MyPoint::new(1.0, 2.0), MyPoint::new(3.0, 4.0)] as &dyn ComponentBatch, // + &[MyPoint::new(1.0, 2.0), MyPoint::new(3.0, 4.0)] + as &dyn re_types_core::ComponentBatch, // &[MyColor::from_rgb(255, 0, 0)], &[MyLabel("a".into()), MyLabel("b".into())], ], @@ -136,7 +136,7 @@ fn store() -> anyhow::Result { MyPoint::new(10.0, 20.0), MyPoint::new(30.0, 40.0), MyPoint::new(50.0, 60.0), - ] as &dyn ComponentBatch, // + ] as &dyn re_types_core::ComponentBatch, // &[MyColor::from_rgb(255, 0, 0), MyColor::from_rgb(0, 0, 255)], ], ) diff --git a/crates/store/re_query/src/cache.rs b/crates/store/re_query/src/cache.rs index 95b076742ead..d027a71fdea7 100644 --- a/crates/store/re_query/src/cache.rs +++ b/crates/store/re_query/src/cache.rs @@ -10,7 +10,7 @@ use parking_lot::RwLock; use re_chunk::ChunkId; use re_chunk_store::{ChunkStoreDiff, ChunkStoreEvent, ChunkStoreHandle, ChunkStoreSubscriber}; use re_log_types::{EntityPath, ResolvedTimeRange, StoreId, TimeInt, Timeline}; -use re_types_core::{components::ClearIsRecursive, ComponentName, Loggable as _}; +use re_types_core::{components::ClearIsRecursive, Component as _, ComponentName}; use crate::{LatestAtCache, RangeCache}; diff --git a/crates/store/re_query/src/latest_at.rs b/crates/store/re_query/src/latest_at.rs index 6dceb6826726..90c65dce7031 100644 --- a/crates/store/re_query/src/latest_at.rs +++ b/crates/store/re_query/src/latest_at.rs @@ -10,9 +10,7 @@ use parking_lot::RwLock; use re_chunk::{Chunk, RowId, UnitChunkShared}; use re_chunk_store::{ChunkStore, LatestAtQuery, TimeInt}; use re_log_types::EntityPath; -use re_types_core::{ - components::ClearIsRecursive, Component, ComponentName, Loggable as _, SizeBytes, -}; +use re_types_core::{components::ClearIsRecursive, Component, ComponentName, SizeBytes}; use crate::{QueryCache, QueryCacheKey, QueryError}; diff --git a/crates/store/re_query/tests/range.rs b/crates/store/re_query/tests/range.rs index 283bc0db27e4..8630b1245364 100644 --- a/crates/store/re_query/tests/range.rs +++ b/crates/store/re_query/tests/range.rs @@ -17,7 +17,7 @@ use re_log_types::{ }; use re_query::QueryCache; use re_types::Archetype; -use re_types_core::Loggable as _; +use re_types_core::Component as _; // --- 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..6d94139188bd 100644 --- a/crates/store/re_types/src/blueprint/components/active_tab.rs +++ b/crates/store/re_types/src/blueprint/components/active_tab.rs @@ -71,13 +71,6 @@ impl std::ops::DerefMut for ActiveTab { ::re_types_core::macros::impl_into_cow!(ActiveTab); impl ::re_types_core::Loggable for ActiveTab { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.blueprint.components.ActiveTab".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::EntityPath::arrow_datatype() @@ -107,3 +100,10 @@ impl ::re_types_core::Loggable for ActiveTab { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::Component for ActiveTab { + #[inline] + fn name() -> ComponentName { + "rerun.blueprint.components.ActiveTab".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..0ac0606db0f2 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 @@ -67,13 +67,6 @@ impl std::ops::DerefMut for ApplyLatestAt { ::re_types_core::macros::impl_into_cow!(ApplyLatestAt); impl ::re_types_core::Loggable for ApplyLatestAt { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.blueprint.components.ApplyLatestAt".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::Bool::arrow_datatype() @@ -103,3 +96,10 @@ impl ::re_types_core::Loggable for ApplyLatestAt { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::Component for ApplyLatestAt { + #[inline] + fn name() -> ComponentName { + "rerun.blueprint.components.ApplyLatestAt".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..d258fb33cfd2 100644 --- a/crates/store/re_types/src/blueprint/components/background_kind.rs +++ b/crates/store/re_types/src/blueprint/components/background_kind.rs @@ -83,13 +83,6 @@ impl std::fmt::Display for BackgroundKind { ::re_types_core::macros::impl_into_cow!(BackgroundKind); impl ::re_types_core::Loggable for BackgroundKind { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.blueprint.components.BackgroundKind".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] @@ -164,3 +157,10 @@ impl ::re_types_core::Loggable for BackgroundKind { .with_context("rerun.blueprint.components.BackgroundKind")?) } } + +impl ::re_types_core::Component for BackgroundKind { + #[inline] + fn name() -> ComponentName { + "rerun.blueprint.components.BackgroundKind".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..feb5792c291d 100644 --- a/crates/store/re_types/src/blueprint/components/column_share.rs +++ b/crates/store/re_types/src/blueprint/components/column_share.rs @@ -69,13 +69,6 @@ impl std::ops::DerefMut for ColumnShare { ::re_types_core::macros::impl_into_cow!(ColumnShare); impl ::re_types_core::Loggable for ColumnShare { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.blueprint.components.ColumnShare".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::Float32::arrow_datatype() @@ -113,3 +106,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::Component for ColumnShare { + #[inline] + fn name() -> ComponentName { + "rerun.blueprint.components.ColumnShare".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..23445fc4ec45 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 @@ -71,13 +71,6 @@ impl std::ops::DerefMut for ComponentColumnSelector { ::re_types_core::macros::impl_into_cow!(ComponentColumnSelector); impl ::re_types_core::Loggable for ComponentColumnSelector { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.blueprint.components.ComponentColumnSelector".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::blueprint::datatypes::ComponentColumnSelector::arrow_datatype() @@ -109,3 +102,10 @@ impl ::re_types_core::Loggable for ComponentColumnSelector { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::Component for ComponentColumnSelector { + #[inline] + fn name() -> ComponentName { + "rerun.blueprint.components.ComponentColumnSelector".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..48eedac43c98 100644 --- a/crates/store/re_types/src/blueprint/components/corner2d.rs +++ b/crates/store/re_types/src/blueprint/components/corner2d.rs @@ -85,13 +85,6 @@ impl std::fmt::Display for Corner2D { ::re_types_core::macros::impl_into_cow!(Corner2D); impl ::re_types_core::Loggable for Corner2D { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.blueprint.components.Corner2D".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] @@ -167,3 +160,10 @@ impl ::re_types_core::Loggable for Corner2D { .with_context("rerun.blueprint.components.Corner2D")?) } } + +impl ::re_types_core::Component for Corner2D { + #[inline] + fn name() -> ComponentName { + "rerun.blueprint.components.Corner2D".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..7532481da050 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 @@ -67,13 +67,6 @@ impl std::ops::DerefMut for FilterByRange { ::re_types_core::macros::impl_into_cow!(FilterByRange); impl ::re_types_core::Loggable for FilterByRange { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.blueprint.components.FilterByRange".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::blueprint::datatypes::FilterByRange::arrow_datatype() @@ -103,3 +96,10 @@ impl ::re_types_core::Loggable for FilterByRange { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::Component for FilterByRange { + #[inline] + fn name() -> ComponentName { + "rerun.blueprint.components.FilterByRange".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..748c06bb858c 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 @@ -67,13 +67,6 @@ impl std::ops::DerefMut for FilterIsNotNull { ::re_types_core::macros::impl_into_cow!(FilterIsNotNull); impl ::re_types_core::Loggable for FilterIsNotNull { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.blueprint.components.FilterIsNotNull".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::blueprint::datatypes::FilterIsNotNull::arrow_datatype() @@ -103,3 +96,10 @@ impl ::re_types_core::Loggable for FilterIsNotNull { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::Component for FilterIsNotNull { + #[inline] + fn name() -> ComponentName { + "rerun.blueprint.components.FilterIsNotNull".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..eb57fc1ea2cc 100644 --- a/crates/store/re_types/src/blueprint/components/included_content.rs +++ b/crates/store/re_types/src/blueprint/components/included_content.rs @@ -72,13 +72,6 @@ impl std::ops::DerefMut for IncludedContent { ::re_types_core::macros::impl_into_cow!(IncludedContent); impl ::re_types_core::Loggable for IncludedContent { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.blueprint.components.IncludedContent".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::EntityPath::arrow_datatype() @@ -108,3 +101,10 @@ impl ::re_types_core::Loggable for IncludedContent { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::Component for IncludedContent { + #[inline] + fn name() -> ComponentName { + "rerun.blueprint.components.IncludedContent".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..267cdc3f0625 100644 --- a/crates/store/re_types/src/blueprint/components/interactive.rs +++ b/crates/store/re_types/src/blueprint/components/interactive.rs @@ -69,13 +69,6 @@ impl std::ops::DerefMut for Interactive { ::re_types_core::macros::impl_into_cow!(Interactive); impl ::re_types_core::Loggable for Interactive { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.blueprint.components.Interactive".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::Bool::arrow_datatype() @@ -105,3 +98,10 @@ impl ::re_types_core::Loggable for Interactive { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::Component for Interactive { + #[inline] + fn name() -> ComponentName { + "rerun.blueprint.components.Interactive".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..1aae7facb00a 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 @@ -69,13 +69,6 @@ impl std::ops::DerefMut for LockRangeDuringZoom { ::re_types_core::macros::impl_into_cow!(LockRangeDuringZoom); impl ::re_types_core::Loggable for LockRangeDuringZoom { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.blueprint.components.LockRangeDuringZoom".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::Bool::arrow_datatype() @@ -105,3 +98,10 @@ impl ::re_types_core::Loggable for LockRangeDuringZoom { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::Component for LockRangeDuringZoom { + #[inline] + fn name() -> ComponentName { + "rerun.blueprint.components.LockRangeDuringZoom".into() + } +} diff --git a/crates/store/re_types/src/blueprint/components/map_provider.rs b/crates/store/re_types/src/blueprint/components/map_provider.rs index ad8101a200ff..795ac984437e 100644 --- a/crates/store/re_types/src/blueprint/components/map_provider.rs +++ b/crates/store/re_types/src/blueprint/components/map_provider.rs @@ -85,13 +85,6 @@ impl std::fmt::Display for MapProvider { ::re_types_core::macros::impl_into_cow!(MapProvider); impl ::re_types_core::Loggable for MapProvider { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.blueprint.components.MapProvider".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] @@ -167,3 +160,10 @@ impl ::re_types_core::Loggable for MapProvider { .with_context("rerun.blueprint.components.MapProvider")?) } } + +impl ::re_types_core::Component for MapProvider { + #[inline] + fn name() -> ComponentName { + "rerun.blueprint.components.MapProvider".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..6260edb501e7 100644 --- a/crates/store/re_types/src/blueprint/components/panel_state.rs +++ b/crates/store/re_types/src/blueprint/components/panel_state.rs @@ -75,13 +75,6 @@ impl std::fmt::Display for PanelState { ::re_types_core::macros::impl_into_cow!(PanelState); impl ::re_types_core::Loggable for PanelState { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.blueprint.components.PanelState".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] @@ -156,3 +149,10 @@ impl ::re_types_core::Loggable for PanelState { .with_context("rerun.blueprint.components.PanelState")?) } } + +impl ::re_types_core::Component for PanelState { + #[inline] + fn name() -> ComponentName { + "rerun.blueprint.components.PanelState".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..4064987cd883 100644 --- a/crates/store/re_types/src/blueprint/components/query_expression.rs +++ b/crates/store/re_types/src/blueprint/components/query_expression.rs @@ -76,13 +76,6 @@ impl std::ops::DerefMut for QueryExpression { ::re_types_core::macros::impl_into_cow!(QueryExpression); impl ::re_types_core::Loggable for QueryExpression { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.blueprint.components.QueryExpression".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::Utf8::arrow_datatype() @@ -112,3 +105,10 @@ impl ::re_types_core::Loggable for QueryExpression { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::Component for QueryExpression { + #[inline] + fn name() -> ComponentName { + "rerun.blueprint.components.QueryExpression".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..5a60b77931a9 100644 --- a/crates/store/re_types/src/blueprint/components/row_share.rs +++ b/crates/store/re_types/src/blueprint/components/row_share.rs @@ -69,13 +69,6 @@ impl std::ops::DerefMut for RowShare { ::re_types_core::macros::impl_into_cow!(RowShare); impl ::re_types_core::Loggable for RowShare { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.blueprint.components.RowShare".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::Float32::arrow_datatype() @@ -113,3 +106,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::Component for RowShare { + #[inline] + fn name() -> ComponentName { + "rerun.blueprint.components.RowShare".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..2d8b9a6aa89b 100644 --- a/crates/store/re_types/src/blueprint/components/selected_columns.rs +++ b/crates/store/re_types/src/blueprint/components/selected_columns.rs @@ -67,13 +67,6 @@ impl std::ops::DerefMut for SelectedColumns { ::re_types_core::macros::impl_into_cow!(SelectedColumns); impl ::re_types_core::Loggable for SelectedColumns { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.blueprint.components.SelectedColumns".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::blueprint::datatypes::SelectedColumns::arrow_datatype() @@ -103,3 +96,10 @@ impl ::re_types_core::Loggable for SelectedColumns { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::Component for SelectedColumns { + #[inline] + fn name() -> ComponentName { + "rerun.blueprint.components.SelectedColumns".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..c10f3f36a560 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 @@ -67,13 +67,6 @@ impl std::ops::DerefMut for SpaceViewClass { ::re_types_core::macros::impl_into_cow!(SpaceViewClass); impl ::re_types_core::Loggable for SpaceViewClass { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.blueprint.components.SpaceViewClass".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::Utf8::arrow_datatype() @@ -103,3 +96,10 @@ impl ::re_types_core::Loggable for SpaceViewClass { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::Component for SpaceViewClass { + #[inline] + fn name() -> ComponentName { + "rerun.blueprint.components.SpaceViewClass".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..9341bd0313a0 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 @@ -67,13 +67,6 @@ impl std::ops::DerefMut for SpaceViewOrigin { ::re_types_core::macros::impl_into_cow!(SpaceViewOrigin); impl ::re_types_core::Loggable for SpaceViewOrigin { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.blueprint.components.SpaceViewOrigin".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::EntityPath::arrow_datatype() @@ -103,3 +96,10 @@ impl ::re_types_core::Loggable for SpaceViewOrigin { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::Component for SpaceViewOrigin { + #[inline] + fn name() -> ComponentName { + "rerun.blueprint.components.SpaceViewOrigin".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..c5ff59a9a80a 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 @@ -71,13 +71,6 @@ impl std::ops::DerefMut for TensorDimensionIndexSlider { ::re_types_core::macros::impl_into_cow!(TensorDimensionIndexSlider); impl ::re_types_core::Loggable for TensorDimensionIndexSlider { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.blueprint.components.TensorDimensionIndexSlider".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::blueprint::datatypes::TensorDimensionIndexSlider::arrow_datatype() @@ -109,3 +102,10 @@ impl ::re_types_core::Loggable for TensorDimensionIndexSlider { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::Component for TensorDimensionIndexSlider { + #[inline] + fn name() -> ComponentName { + "rerun.blueprint.components.TensorDimensionIndexSlider".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..895faea6acc4 100644 --- a/crates/store/re_types/src/blueprint/components/timeline_name.rs +++ b/crates/store/re_types/src/blueprint/components/timeline_name.rs @@ -67,13 +67,6 @@ impl std::ops::DerefMut for TimelineName { ::re_types_core::macros::impl_into_cow!(TimelineName); impl ::re_types_core::Loggable for TimelineName { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.blueprint.components.TimelineName".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::Utf8::arrow_datatype() @@ -103,3 +96,10 @@ impl ::re_types_core::Loggable for TimelineName { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::Component for TimelineName { + #[inline] + fn name() -> ComponentName { + "rerun.blueprint.components.TimelineName".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..c2bba38de9a2 100644 --- a/crates/store/re_types/src/blueprint/components/view_fit.rs +++ b/crates/store/re_types/src/blueprint/components/view_fit.rs @@ -81,13 +81,6 @@ impl std::fmt::Display for ViewFit { ::re_types_core::macros::impl_into_cow!(ViewFit); impl ::re_types_core::Loggable for ViewFit { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.blueprint.components.ViewFit".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] @@ -162,3 +155,10 @@ impl ::re_types_core::Loggable for ViewFit { .with_context("rerun.blueprint.components.ViewFit")?) } } + +impl ::re_types_core::Component for ViewFit { + #[inline] + fn name() -> ComponentName { + "rerun.blueprint.components.ViewFit".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..7a920e591889 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 @@ -69,13 +69,6 @@ impl std::ops::DerefMut for ViewerRecommendationHash { ::re_types_core::macros::impl_into_cow!(ViewerRecommendationHash); impl ::re_types_core::Loggable for ViewerRecommendationHash { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.blueprint.components.ViewerRecommendationHash".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::UInt64::arrow_datatype() @@ -113,3 +106,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::Component for ViewerRecommendationHash { + #[inline] + fn name() -> ComponentName { + "rerun.blueprint.components.ViewerRecommendationHash".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..0b32354da401 100644 --- a/crates/store/re_types/src/blueprint/components/visible.rs +++ b/crates/store/re_types/src/blueprint/components/visible.rs @@ -67,13 +67,6 @@ impl std::ops::DerefMut for Visible { ::re_types_core::macros::impl_into_cow!(Visible); impl ::re_types_core::Loggable for Visible { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.blueprint.components.Visible".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::Bool::arrow_datatype() @@ -103,3 +96,10 @@ impl ::re_types_core::Loggable for Visible { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::Component for Visible { + #[inline] + fn name() -> ComponentName { + "rerun.blueprint.components.Visible".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..2b75530f8ba8 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 @@ -69,13 +69,6 @@ impl std::ops::DerefMut for VisibleTimeRange { ::re_types_core::macros::impl_into_cow!(VisibleTimeRange); impl ::re_types_core::Loggable for VisibleTimeRange { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.blueprint.components.VisibleTimeRange".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::VisibleTimeRange::arrow_datatype() @@ -105,3 +98,10 @@ impl ::re_types_core::Loggable for VisibleTimeRange { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::Component for VisibleTimeRange { + #[inline] + fn name() -> ComponentName { + "rerun.blueprint.components.VisibleTimeRange".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..20fcc14f3943 100644 --- a/crates/store/re_types/src/blueprint/components/visual_bounds2d.rs +++ b/crates/store/re_types/src/blueprint/components/visual_bounds2d.rs @@ -70,13 +70,6 @@ impl std::ops::DerefMut for VisualBounds2D { ::re_types_core::macros::impl_into_cow!(VisualBounds2D); impl ::re_types_core::Loggable for VisualBounds2D { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.blueprint.components.VisualBounds2D".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::Range2D::arrow_datatype() @@ -106,3 +99,10 @@ impl ::re_types_core::Loggable for VisualBounds2D { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::Component for VisualBounds2D { + #[inline] + fn name() -> ComponentName { + "rerun.blueprint.components.VisualBounds2D".into() + } +} diff --git a/crates/store/re_types/src/blueprint/components/zoom_level.rs b/crates/store/re_types/src/blueprint/components/zoom_level.rs index bed14e9b5f78..2a4f8bd97619 100644 --- a/crates/store/re_types/src/blueprint/components/zoom_level.rs +++ b/crates/store/re_types/src/blueprint/components/zoom_level.rs @@ -69,13 +69,6 @@ impl std::ops::DerefMut for ZoomLevel { ::re_types_core::macros::impl_into_cow!(ZoomLevel); impl ::re_types_core::Loggable for ZoomLevel { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.blueprint.components.ZoomLevel".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::Float64::arrow_datatype() @@ -113,3 +106,10 @@ impl ::re_types_core::Loggable for ZoomLevel { crate::datatypes::Float64::from_arrow(arrow_data).map(|v| v.into_iter().map(Self).collect()) } } + +impl ::re_types_core::Component for ZoomLevel { + #[inline] + fn name() -> ComponentName { + "rerun.blueprint.components.ZoomLevel".into() + } +} diff --git a/crates/store/re_types/src/blueprint/datatypes/component_column_selector.rs b/crates/store/re_types/src/blueprint/datatypes/component_column_selector.rs index aea172dac81f..a161499feb2c 100644 --- a/crates/store/re_types/src/blueprint/datatypes/component_column_selector.rs +++ b/crates/store/re_types/src/blueprint/datatypes/component_column_selector.rs @@ -43,13 +43,6 @@ impl ::re_types_core::SizeBytes for ComponentColumnSelector { ::re_types_core::macros::impl_into_cow!(ComponentColumnSelector); impl ::re_types_core::Loggable for ComponentColumnSelector { - type Name = ::re_types_core::DatatypeName; - - #[inline] - fn name() -> Self::Name { - "rerun.blueprint.datatypes.ComponentColumnSelector".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] diff --git a/crates/store/re_types/src/blueprint/datatypes/filter_by_range.rs b/crates/store/re_types/src/blueprint/datatypes/filter_by_range.rs index 24aeee2b4774..072117f1a739 100644 --- a/crates/store/re_types/src/blueprint/datatypes/filter_by_range.rs +++ b/crates/store/re_types/src/blueprint/datatypes/filter_by_range.rs @@ -43,13 +43,6 @@ impl ::re_types_core::SizeBytes for FilterByRange { ::re_types_core::macros::impl_into_cow!(FilterByRange); impl ::re_types_core::Loggable for FilterByRange { - type Name = ::re_types_core::DatatypeName; - - #[inline] - fn name() -> Self::Name { - "rerun.blueprint.datatypes.FilterByRange".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] diff --git a/crates/store/re_types/src/blueprint/datatypes/filter_is_not_null.rs b/crates/store/re_types/src/blueprint/datatypes/filter_is_not_null.rs index 81f3a055056f..90717038cfe1 100644 --- a/crates/store/re_types/src/blueprint/datatypes/filter_is_not_null.rs +++ b/crates/store/re_types/src/blueprint/datatypes/filter_is_not_null.rs @@ -44,13 +44,6 @@ impl ::re_types_core::SizeBytes for FilterIsNotNull { ::re_types_core::macros::impl_into_cow!(FilterIsNotNull); impl ::re_types_core::Loggable for FilterIsNotNull { - type Name = ::re_types_core::DatatypeName; - - #[inline] - fn name() -> Self::Name { - "rerun.blueprint.datatypes.FilterIsNotNull".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] diff --git a/crates/store/re_types/src/blueprint/datatypes/selected_columns.rs b/crates/store/re_types/src/blueprint/datatypes/selected_columns.rs index 90e493404809..65c3fce46ffb 100644 --- a/crates/store/re_types/src/blueprint/datatypes/selected_columns.rs +++ b/crates/store/re_types/src/blueprint/datatypes/selected_columns.rs @@ -44,13 +44,6 @@ impl ::re_types_core::SizeBytes for SelectedColumns { ::re_types_core::macros::impl_into_cow!(SelectedColumns); impl ::re_types_core::Loggable for SelectedColumns { - type Name = ::re_types_core::DatatypeName; - - #[inline] - fn name() -> Self::Name { - "rerun.blueprint.datatypes.SelectedColumns".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] diff --git a/crates/store/re_types/src/blueprint/datatypes/tensor_dimension_index_slider.rs b/crates/store/re_types/src/blueprint/datatypes/tensor_dimension_index_slider.rs index 376ef185803c..5e064ed1d9c2 100644 --- a/crates/store/re_types/src/blueprint/datatypes/tensor_dimension_index_slider.rs +++ b/crates/store/re_types/src/blueprint/datatypes/tensor_dimension_index_slider.rs @@ -54,13 +54,6 @@ impl From for u32 { ::re_types_core::macros::impl_into_cow!(TensorDimensionIndexSlider); impl ::re_types_core::Loggable for TensorDimensionIndexSlider { - type Name = ::re_types_core::DatatypeName; - - #[inline] - fn name() -> Self::Name { - "rerun.blueprint.datatypes.TensorDimensionIndexSlider".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] diff --git a/crates/store/re_types/src/components/aggregation_policy.rs b/crates/store/re_types/src/components/aggregation_policy.rs index c8b696f5a2d2..421ac0083c5f 100644 --- a/crates/store/re_types/src/components/aggregation_policy.rs +++ b/crates/store/re_types/src/components/aggregation_policy.rs @@ -107,13 +107,6 @@ impl std::fmt::Display for AggregationPolicy { ::re_types_core::macros::impl_into_cow!(AggregationPolicy); impl ::re_types_core::Loggable for AggregationPolicy { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.components.AggregationPolicy".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] @@ -191,3 +184,10 @@ impl ::re_types_core::Loggable for AggregationPolicy { .with_context("rerun.components.AggregationPolicy")?) } } + +impl ::re_types_core::Component for AggregationPolicy { + #[inline] + fn name() -> ComponentName { + "rerun.components.AggregationPolicy".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..b1300535248e 100644 --- a/crates/store/re_types/src/components/albedo_factor.rs +++ b/crates/store/re_types/src/components/albedo_factor.rs @@ -69,13 +69,6 @@ impl std::ops::DerefMut for AlbedoFactor { ::re_types_core::macros::impl_into_cow!(AlbedoFactor); impl ::re_types_core::Loggable for AlbedoFactor { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.components.AlbedoFactor".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::Rgba32::arrow_datatype() @@ -113,3 +106,10 @@ impl ::re_types_core::Loggable for AlbedoFactor { crate::datatypes::Rgba32::from_arrow(arrow_data).map(bytemuck::cast_vec) } } + +impl ::re_types_core::Component for AlbedoFactor { + #[inline] + fn name() -> ComponentName { + "rerun.components.AlbedoFactor".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..3c5d7b627abc 100644 --- a/crates/store/re_types/src/components/annotation_context.rs +++ b/crates/store/re_types/src/components/annotation_context.rs @@ -54,13 +54,6 @@ impl, T: IntoIterator Self::Name { - "rerun.components.AnnotationContext".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] @@ -188,3 +181,10 @@ impl ::re_types_core::Loggable for AnnotationContext { .with_context("rerun.components.AnnotationContext")?) } } + +impl ::re_types_core::Component for AnnotationContext { + #[inline] + fn name() -> ComponentName { + "rerun.components.AnnotationContext".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..95e6033c1c54 100644 --- a/crates/store/re_types/src/components/axis_length.rs +++ b/crates/store/re_types/src/components/axis_length.rs @@ -67,13 +67,6 @@ impl std::ops::DerefMut for AxisLength { ::re_types_core::macros::impl_into_cow!(AxisLength); impl ::re_types_core::Loggable for AxisLength { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.components.AxisLength".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::Float32::arrow_datatype() @@ -111,3 +104,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::Component for AxisLength { + #[inline] + fn name() -> ComponentName { + "rerun.components.AxisLength".into() + } +} diff --git a/crates/store/re_types/src/components/blob.rs b/crates/store/re_types/src/components/blob.rs index 2d5e717b8ab5..6dc378a9cd00 100644 --- a/crates/store/re_types/src/components/blob.rs +++ b/crates/store/re_types/src/components/blob.rs @@ -69,13 +69,6 @@ impl std::ops::DerefMut for Blob { ::re_types_core::macros::impl_into_cow!(Blob); impl ::re_types_core::Loggable for Blob { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.components.Blob".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::Blob::arrow_datatype() @@ -105,3 +98,10 @@ impl ::re_types_core::Loggable for Blob { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::Component for Blob { + #[inline] + fn name() -> ComponentName { + "rerun.components.Blob".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..209a001e849e 100644 --- a/crates/store/re_types/src/components/class_id.rs +++ b/crates/store/re_types/src/components/class_id.rs @@ -72,13 +72,6 @@ impl std::ops::DerefMut for ClassId { ::re_types_core::macros::impl_into_cow!(ClassId); impl ::re_types_core::Loggable for ClassId { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.components.ClassId".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::ClassId::arrow_datatype() @@ -116,3 +109,10 @@ impl ::re_types_core::Loggable for ClassId { crate::datatypes::ClassId::from_arrow(arrow_data).map(bytemuck::cast_vec) } } + +impl ::re_types_core::Component for ClassId { + #[inline] + fn name() -> ComponentName { + "rerun.components.ClassId".into() + } +} diff --git a/crates/store/re_types/src/components/color.rs b/crates/store/re_types/src/components/color.rs index 49eeec45e360..1d8d3d674f0a 100644 --- a/crates/store/re_types/src/components/color.rs +++ b/crates/store/re_types/src/components/color.rs @@ -70,13 +70,6 @@ impl std::ops::DerefMut for Color { ::re_types_core::macros::impl_into_cow!(Color); impl ::re_types_core::Loggable for Color { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.components.Color".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::Rgba32::arrow_datatype() @@ -114,3 +107,10 @@ impl ::re_types_core::Loggable for Color { crate::datatypes::Rgba32::from_arrow(arrow_data).map(bytemuck::cast_vec) } } + +impl ::re_types_core::Component for Color { + #[inline] + fn name() -> ComponentName { + "rerun.components.Color".into() + } +} diff --git a/crates/store/re_types/src/components/colormap.rs b/crates/store/re_types/src/components/colormap.rs index 3110a4077440..669df72b69d8 100644 --- a/crates/store/re_types/src/components/colormap.rs +++ b/crates/store/re_types/src/components/colormap.rs @@ -144,13 +144,6 @@ impl std::fmt::Display for Colormap { ::re_types_core::macros::impl_into_cow!(Colormap); impl ::re_types_core::Loggable for Colormap { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.components.Colormap".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] @@ -229,3 +222,10 @@ impl ::re_types_core::Loggable for Colormap { .with_context("rerun.components.Colormap")?) } } + +impl ::re_types_core::Component for Colormap { + #[inline] + fn name() -> ComponentName { + "rerun.components.Colormap".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..20813ecef617 100644 --- a/crates/store/re_types/src/components/depth_meter.rs +++ b/crates/store/re_types/src/components/depth_meter.rs @@ -74,13 +74,6 @@ impl std::ops::DerefMut for DepthMeter { ::re_types_core::macros::impl_into_cow!(DepthMeter); impl ::re_types_core::Loggable for DepthMeter { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.components.DepthMeter".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::Float32::arrow_datatype() @@ -118,3 +111,10 @@ impl ::re_types_core::Loggable for DepthMeter { crate::datatypes::Float32::from_arrow(arrow_data).map(bytemuck::cast_vec) } } + +impl ::re_types_core::Component for DepthMeter { + #[inline] + fn name() -> ComponentName { + "rerun.components.DepthMeter".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..76b174ba8653 100644 --- a/crates/store/re_types/src/components/disconnected_space.rs +++ b/crates/store/re_types/src/components/disconnected_space.rs @@ -78,13 +78,6 @@ impl std::ops::DerefMut for DisconnectedSpace { ::re_types_core::macros::impl_into_cow!(DisconnectedSpace); impl ::re_types_core::Loggable for DisconnectedSpace { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.components.DisconnectedSpace".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::Bool::arrow_datatype() @@ -114,3 +107,10 @@ impl ::re_types_core::Loggable for DisconnectedSpace { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::Component for DisconnectedSpace { + #[inline] + fn name() -> ComponentName { + "rerun.components.DisconnectedSpace".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..8d7e61eecaad 100644 --- a/crates/store/re_types/src/components/draw_order.rs +++ b/crates/store/re_types/src/components/draw_order.rs @@ -72,13 +72,6 @@ impl std::ops::DerefMut for DrawOrder { ::re_types_core::macros::impl_into_cow!(DrawOrder); impl ::re_types_core::Loggable for DrawOrder { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.components.DrawOrder".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::Float32::arrow_datatype() @@ -116,3 +109,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::Component for DrawOrder { + #[inline] + fn name() -> ComponentName { + "rerun.components.DrawOrder".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..e1c357fba335 100644 --- a/crates/store/re_types/src/components/entity_path.rs +++ b/crates/store/re_types/src/components/entity_path.rs @@ -67,13 +67,6 @@ impl std::ops::DerefMut for EntityPath { ::re_types_core::macros::impl_into_cow!(EntityPath); impl ::re_types_core::Loggable for EntityPath { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.components.EntityPath".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::EntityPath::arrow_datatype() @@ -103,3 +96,10 @@ impl ::re_types_core::Loggable for EntityPath { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::Component for EntityPath { + #[inline] + fn name() -> ComponentName { + "rerun.components.EntityPath".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..42c23f52636f 100644 --- a/crates/store/re_types/src/components/fill_mode.rs +++ b/crates/store/re_types/src/components/fill_mode.rs @@ -93,13 +93,6 @@ impl std::fmt::Display for FillMode { ::re_types_core::macros::impl_into_cow!(FillMode); impl ::re_types_core::Loggable for FillMode { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.components.FillMode".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] @@ -174,3 +167,10 @@ impl ::re_types_core::Loggable for FillMode { .with_context("rerun.components.FillMode")?) } } + +impl ::re_types_core::Component for FillMode { + #[inline] + fn name() -> ComponentName { + "rerun.components.FillMode".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..875eabeaaba1 100644 --- a/crates/store/re_types/src/components/fill_ratio.rs +++ b/crates/store/re_types/src/components/fill_ratio.rs @@ -72,13 +72,6 @@ impl std::ops::DerefMut for FillRatio { ::re_types_core::macros::impl_into_cow!(FillRatio); impl ::re_types_core::Loggable for FillRatio { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.components.FillRatio".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::Float32::arrow_datatype() @@ -116,3 +109,10 @@ impl ::re_types_core::Loggable for FillRatio { crate::datatypes::Float32::from_arrow(arrow_data).map(bytemuck::cast_vec) } } + +impl ::re_types_core::Component for FillRatio { + #[inline] + fn name() -> ComponentName { + "rerun.components.FillRatio".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..1f0eb92f020f 100644 --- a/crates/store/re_types/src/components/gamma_correction.rs +++ b/crates/store/re_types/src/components/gamma_correction.rs @@ -73,13 +73,6 @@ impl std::ops::DerefMut for GammaCorrection { ::re_types_core::macros::impl_into_cow!(GammaCorrection); impl ::re_types_core::Loggable for GammaCorrection { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.components.GammaCorrection".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::Float32::arrow_datatype() @@ -117,3 +110,10 @@ impl ::re_types_core::Loggable for GammaCorrection { crate::datatypes::Float32::from_arrow(arrow_data).map(bytemuck::cast_vec) } } + +impl ::re_types_core::Component for GammaCorrection { + #[inline] + fn name() -> ComponentName { + "rerun.components.GammaCorrection".into() + } +} diff --git a/crates/store/re_types/src/components/geo_line_string.rs b/crates/store/re_types/src/components/geo_line_string.rs index 32895478df20..78b55f7f6434 100644 --- a/crates/store/re_types/src/components/geo_line_string.rs +++ b/crates/store/re_types/src/components/geo_line_string.rs @@ -44,13 +44,6 @@ impl, T: IntoIterator> From for G ::re_types_core::macros::impl_into_cow!(GeoLineString); impl ::re_types_core::Loggable for GeoLineString { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.components.GeoLineString".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] @@ -263,3 +256,10 @@ impl ::re_types_core::Loggable for GeoLineString { .with_context("rerun.components.GeoLineString")?) } } + +impl ::re_types_core::Component for GeoLineString { + #[inline] + fn name() -> ComponentName { + "rerun.components.GeoLineString".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..4df2ee5a055f 100644 --- a/crates/store/re_types/src/components/half_size2d.rs +++ b/crates/store/re_types/src/components/half_size2d.rs @@ -72,13 +72,6 @@ impl std::ops::DerefMut for HalfSize2D { ::re_types_core::macros::impl_into_cow!(HalfSize2D); impl ::re_types_core::Loggable for HalfSize2D { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.components.HalfSize2D".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::Vec2D::arrow_datatype() @@ -116,3 +109,10 @@ impl ::re_types_core::Loggable for HalfSize2D { crate::datatypes::Vec2D::from_arrow(arrow_data).map(bytemuck::cast_vec) } } + +impl ::re_types_core::Component for HalfSize2D { + #[inline] + fn name() -> ComponentName { + "rerun.components.HalfSize2D".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..13f12fb41c14 100644 --- a/crates/store/re_types/src/components/half_size3d.rs +++ b/crates/store/re_types/src/components/half_size3d.rs @@ -72,13 +72,6 @@ impl std::ops::DerefMut for HalfSize3D { ::re_types_core::macros::impl_into_cow!(HalfSize3D); impl ::re_types_core::Loggable for HalfSize3D { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.components.HalfSize3D".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::Vec3D::arrow_datatype() @@ -116,3 +109,10 @@ impl ::re_types_core::Loggable for HalfSize3D { crate::datatypes::Vec3D::from_arrow(arrow_data).map(bytemuck::cast_vec) } } + +impl ::re_types_core::Component for HalfSize3D { + #[inline] + fn name() -> ComponentName { + "rerun.components.HalfSize3D".into() + } +} diff --git a/crates/store/re_types/src/components/image_buffer.rs b/crates/store/re_types/src/components/image_buffer.rs index 954a4cff5a52..0d7b03a7bcc2 100644 --- a/crates/store/re_types/src/components/image_buffer.rs +++ b/crates/store/re_types/src/components/image_buffer.rs @@ -69,13 +69,6 @@ impl std::ops::DerefMut for ImageBuffer { ::re_types_core::macros::impl_into_cow!(ImageBuffer); impl ::re_types_core::Loggable for ImageBuffer { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.components.ImageBuffer".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::Blob::arrow_datatype() @@ -105,3 +98,10 @@ impl ::re_types_core::Loggable for ImageBuffer { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::Component for ImageBuffer { + #[inline] + fn name() -> ComponentName { + "rerun.components.ImageBuffer".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..cd5d9c9a6149 100644 --- a/crates/store/re_types/src/components/image_format.rs +++ b/crates/store/re_types/src/components/image_format.rs @@ -67,13 +67,6 @@ impl std::ops::DerefMut for ImageFormat { ::re_types_core::macros::impl_into_cow!(ImageFormat); impl ::re_types_core::Loggable for ImageFormat { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.components.ImageFormat".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::ImageFormat::arrow_datatype() @@ -103,3 +96,10 @@ impl ::re_types_core::Loggable for ImageFormat { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::Component for ImageFormat { + #[inline] + fn name() -> ComponentName { + "rerun.components.ImageFormat".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..d17116c0398c 100644 --- a/crates/store/re_types/src/components/image_plane_distance.rs +++ b/crates/store/re_types/src/components/image_plane_distance.rs @@ -68,13 +68,6 @@ impl std::ops::DerefMut for ImagePlaneDistance { ::re_types_core::macros::impl_into_cow!(ImagePlaneDistance); impl ::re_types_core::Loggable for ImagePlaneDistance { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.components.ImagePlaneDistance".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::Float32::arrow_datatype() @@ -112,3 +105,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::Component for ImagePlaneDistance { + #[inline] + fn name() -> ComponentName { + "rerun.components.ImagePlaneDistance".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..4ff4b070446a 100644 --- a/crates/store/re_types/src/components/keypoint_id.rs +++ b/crates/store/re_types/src/components/keypoint_id.rs @@ -84,13 +84,6 @@ impl std::ops::DerefMut for KeypointId { ::re_types_core::macros::impl_into_cow!(KeypointId); impl ::re_types_core::Loggable for KeypointId { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.components.KeypointId".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::KeypointId::arrow_datatype() @@ -128,3 +121,10 @@ impl ::re_types_core::Loggable for KeypointId { crate::datatypes::KeypointId::from_arrow(arrow_data).map(bytemuck::cast_vec) } } + +impl ::re_types_core::Component for KeypointId { + #[inline] + fn name() -> ComponentName { + "rerun.components.KeypointId".into() + } +} diff --git a/crates/store/re_types/src/components/lat_lon.rs b/crates/store/re_types/src/components/lat_lon.rs index 5f86e5927a3e..3ac0b624308e 100644 --- a/crates/store/re_types/src/components/lat_lon.rs +++ b/crates/store/re_types/src/components/lat_lon.rs @@ -67,13 +67,6 @@ impl std::ops::DerefMut for LatLon { ::re_types_core::macros::impl_into_cow!(LatLon); impl ::re_types_core::Loggable for LatLon { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.components.LatLon".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::DVec2D::arrow_datatype() @@ -111,3 +104,10 @@ impl ::re_types_core::Loggable for LatLon { crate::datatypes::DVec2D::from_arrow(arrow_data).map(bytemuck::cast_vec) } } + +impl ::re_types_core::Component for LatLon { + #[inline] + fn name() -> ComponentName { + "rerun.components.LatLon".into() + } +} diff --git a/crates/store/re_types/src/components/length.rs b/crates/store/re_types/src/components/length.rs index d30925082cda..9f63882a748c 100644 --- a/crates/store/re_types/src/components/length.rs +++ b/crates/store/re_types/src/components/length.rs @@ -70,13 +70,6 @@ impl std::ops::DerefMut for Length { ::re_types_core::macros::impl_into_cow!(Length); impl ::re_types_core::Loggable for Length { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.components.Length".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::Float32::arrow_datatype() @@ -114,3 +107,10 @@ impl ::re_types_core::Loggable for Length { crate::datatypes::Float32::from_arrow(arrow_data).map(bytemuck::cast_vec) } } + +impl ::re_types_core::Component for Length { + #[inline] + fn name() -> ComponentName { + "rerun.components.Length".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..92bcefa77a39 100644 --- a/crates/store/re_types/src/components/line_strip2d.rs +++ b/crates/store/re_types/src/components/line_strip2d.rs @@ -54,13 +54,6 @@ impl, T: IntoIterator> From for Li ::re_types_core::macros::impl_into_cow!(LineStrip2D); impl ::re_types_core::Loggable for LineStrip2D { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.components.LineStrip2D".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] @@ -272,3 +265,10 @@ impl ::re_types_core::Loggable for LineStrip2D { .with_context("rerun.components.LineStrip2D")?) } } + +impl ::re_types_core::Component for LineStrip2D { + #[inline] + fn name() -> ComponentName { + "rerun.components.LineStrip2D".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..17eb04132b3f 100644 --- a/crates/store/re_types/src/components/line_strip3d.rs +++ b/crates/store/re_types/src/components/line_strip3d.rs @@ -54,13 +54,6 @@ impl, T: IntoIterator> From for Li ::re_types_core::macros::impl_into_cow!(LineStrip3D); impl ::re_types_core::Loggable for LineStrip3D { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.components.LineStrip3D".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] @@ -272,3 +265,10 @@ impl ::re_types_core::Loggable for LineStrip3D { .with_context("rerun.components.LineStrip3D")?) } } + +impl ::re_types_core::Component for LineStrip3D { + #[inline] + fn name() -> ComponentName { + "rerun.components.LineStrip3D".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..57d83aeed587 100644 --- a/crates/store/re_types/src/components/magnification_filter.rs +++ b/crates/store/re_types/src/components/magnification_filter.rs @@ -79,13 +79,6 @@ impl std::fmt::Display for MagnificationFilter { ::re_types_core::macros::impl_into_cow!(MagnificationFilter); impl ::re_types_core::Loggable for MagnificationFilter { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.components.MagnificationFilter".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] @@ -159,3 +152,10 @@ impl ::re_types_core::Loggable for MagnificationFilter { .with_context("rerun.components.MagnificationFilter")?) } } + +impl ::re_types_core::Component for MagnificationFilter { + #[inline] + fn name() -> ComponentName { + "rerun.components.MagnificationFilter".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..caaf90f7ef74 100644 --- a/crates/store/re_types/src/components/marker_shape.rs +++ b/crates/store/re_types/src/components/marker_shape.rs @@ -121,13 +121,6 @@ impl std::fmt::Display for MarkerShape { ::re_types_core::macros::impl_into_cow!(MarkerShape); impl ::re_types_core::Loggable for MarkerShape { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.components.MarkerShape".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] @@ -209,3 +202,10 @@ impl ::re_types_core::Loggable for MarkerShape { .with_context("rerun.components.MarkerShape")?) } } + +impl ::re_types_core::Component for MarkerShape { + #[inline] + fn name() -> ComponentName { + "rerun.components.MarkerShape".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..a9051d1dfe5f 100644 --- a/crates/store/re_types/src/components/marker_size.rs +++ b/crates/store/re_types/src/components/marker_size.rs @@ -67,13 +67,6 @@ impl std::ops::DerefMut for MarkerSize { ::re_types_core::macros::impl_into_cow!(MarkerSize); impl ::re_types_core::Loggable for MarkerSize { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.components.MarkerSize".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::Float32::arrow_datatype() @@ -111,3 +104,10 @@ impl ::re_types_core::Loggable for MarkerSize { crate::datatypes::Float32::from_arrow(arrow_data).map(bytemuck::cast_vec) } } + +impl ::re_types_core::Component for MarkerSize { + #[inline] + fn name() -> ComponentName { + "rerun.components.MarkerSize".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..938d0325bdf2 100644 --- a/crates/store/re_types/src/components/media_type.rs +++ b/crates/store/re_types/src/components/media_type.rs @@ -70,13 +70,6 @@ impl std::ops::DerefMut for MediaType { ::re_types_core::macros::impl_into_cow!(MediaType); impl ::re_types_core::Loggable for MediaType { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.components.MediaType".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::Utf8::arrow_datatype() @@ -106,3 +99,10 @@ impl ::re_types_core::Loggable for MediaType { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::Component for MediaType { + #[inline] + fn name() -> ComponentName { + "rerun.components.MediaType".into() + } +} diff --git a/crates/store/re_types/src/components/name.rs b/crates/store/re_types/src/components/name.rs index 594eeaa745fb..ba403152e728 100644 --- a/crates/store/re_types/src/components/name.rs +++ b/crates/store/re_types/src/components/name.rs @@ -67,13 +67,6 @@ impl std::ops::DerefMut for Name { ::re_types_core::macros::impl_into_cow!(Name); impl ::re_types_core::Loggable for Name { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.components.Name".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::Utf8::arrow_datatype() @@ -103,3 +96,10 @@ impl ::re_types_core::Loggable for Name { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::Component for Name { + #[inline] + fn name() -> ComponentName { + "rerun.components.Name".into() + } +} diff --git a/crates/store/re_types/src/components/opacity.rs b/crates/store/re_types/src/components/opacity.rs index 0651b18a08f0..7b79c7204f1c 100644 --- a/crates/store/re_types/src/components/opacity.rs +++ b/crates/store/re_types/src/components/opacity.rs @@ -70,13 +70,6 @@ impl std::ops::DerefMut for Opacity { ::re_types_core::macros::impl_into_cow!(Opacity); impl ::re_types_core::Loggable for Opacity { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.components.Opacity".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::Float32::arrow_datatype() @@ -114,3 +107,10 @@ impl ::re_types_core::Loggable for Opacity { crate::datatypes::Float32::from_arrow(arrow_data).map(bytemuck::cast_vec) } } + +impl ::re_types_core::Component for Opacity { + #[inline] + fn name() -> ComponentName { + "rerun.components.Opacity".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..66ce2e2f8cba 100644 --- a/crates/store/re_types/src/components/pinhole_projection.rs +++ b/crates/store/re_types/src/components/pinhole_projection.rs @@ -76,13 +76,6 @@ impl std::ops::DerefMut for PinholeProjection { ::re_types_core::macros::impl_into_cow!(PinholeProjection); impl ::re_types_core::Loggable for PinholeProjection { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.components.PinholeProjection".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::Mat3x3::arrow_datatype() @@ -120,3 +113,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::Component for PinholeProjection { + #[inline] + fn name() -> ComponentName { + "rerun.components.PinholeProjection".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..7036a92c1ffe 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 @@ -67,13 +67,6 @@ impl std::ops::DerefMut for PoseRotationAxisAngle { ::re_types_core::macros::impl_into_cow!(PoseRotationAxisAngle); impl ::re_types_core::Loggable for PoseRotationAxisAngle { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.components.PoseRotationAxisAngle".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::RotationAxisAngle::arrow_datatype() @@ -103,3 +96,10 @@ impl ::re_types_core::Loggable for PoseRotationAxisAngle { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::Component for PoseRotationAxisAngle { + #[inline] + fn name() -> ComponentName { + "rerun.components.PoseRotationAxisAngle".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..335c1b5edcc6 100644 --- a/crates/store/re_types/src/components/pose_rotation_quat.rs +++ b/crates/store/re_types/src/components/pose_rotation_quat.rs @@ -70,13 +70,6 @@ impl std::ops::DerefMut for PoseRotationQuat { ::re_types_core::macros::impl_into_cow!(PoseRotationQuat); impl ::re_types_core::Loggable for PoseRotationQuat { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.components.PoseRotationQuat".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::Quaternion::arrow_datatype() @@ -114,3 +107,10 @@ impl ::re_types_core::Loggable for PoseRotationQuat { crate::datatypes::Quaternion::from_arrow(arrow_data).map(bytemuck::cast_vec) } } + +impl ::re_types_core::Component for PoseRotationQuat { + #[inline] + fn name() -> ComponentName { + "rerun.components.PoseRotationQuat".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..6f8fdd65d638 100644 --- a/crates/store/re_types/src/components/pose_scale3d.rs +++ b/crates/store/re_types/src/components/pose_scale3d.rs @@ -71,13 +71,6 @@ impl std::ops::DerefMut for PoseScale3D { ::re_types_core::macros::impl_into_cow!(PoseScale3D); impl ::re_types_core::Loggable for PoseScale3D { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.components.PoseScale3D".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::Vec3D::arrow_datatype() @@ -115,3 +108,10 @@ impl ::re_types_core::Loggable for PoseScale3D { crate::datatypes::Vec3D::from_arrow(arrow_data).map(bytemuck::cast_vec) } } + +impl ::re_types_core::Component for PoseScale3D { + #[inline] + fn name() -> ComponentName { + "rerun.components.PoseScale3D".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..3c5b9256d639 100644 --- a/crates/store/re_types/src/components/pose_transform_mat3x3.rs +++ b/crates/store/re_types/src/components/pose_transform_mat3x3.rs @@ -79,13 +79,6 @@ impl std::ops::DerefMut for PoseTransformMat3x3 { ::re_types_core::macros::impl_into_cow!(PoseTransformMat3x3); impl ::re_types_core::Loggable for PoseTransformMat3x3 { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.components.PoseTransformMat3x3".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::Mat3x3::arrow_datatype() @@ -123,3 +116,10 @@ impl ::re_types_core::Loggable for PoseTransformMat3x3 { crate::datatypes::Mat3x3::from_arrow(arrow_data).map(bytemuck::cast_vec) } } + +impl ::re_types_core::Component for PoseTransformMat3x3 { + #[inline] + fn name() -> ComponentName { + "rerun.components.PoseTransformMat3x3".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..9d72cf4acf58 100644 --- a/crates/store/re_types/src/components/pose_translation3d.rs +++ b/crates/store/re_types/src/components/pose_translation3d.rs @@ -67,13 +67,6 @@ impl std::ops::DerefMut for PoseTranslation3D { ::re_types_core::macros::impl_into_cow!(PoseTranslation3D); impl ::re_types_core::Loggable for PoseTranslation3D { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.components.PoseTranslation3D".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::Vec3D::arrow_datatype() @@ -111,3 +104,10 @@ impl ::re_types_core::Loggable for PoseTranslation3D { crate::datatypes::Vec3D::from_arrow(arrow_data).map(bytemuck::cast_vec) } } + +impl ::re_types_core::Component for PoseTranslation3D { + #[inline] + fn name() -> ComponentName { + "rerun.components.PoseTranslation3D".into() + } +} diff --git a/crates/store/re_types/src/components/position2d.rs b/crates/store/re_types/src/components/position2d.rs index 458f005edb66..38b582ddb3f4 100644 --- a/crates/store/re_types/src/components/position2d.rs +++ b/crates/store/re_types/src/components/position2d.rs @@ -67,13 +67,6 @@ impl std::ops::DerefMut for Position2D { ::re_types_core::macros::impl_into_cow!(Position2D); impl ::re_types_core::Loggable for Position2D { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.components.Position2D".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::Vec2D::arrow_datatype() @@ -111,3 +104,10 @@ impl ::re_types_core::Loggable for Position2D { crate::datatypes::Vec2D::from_arrow(arrow_data).map(bytemuck::cast_vec) } } + +impl ::re_types_core::Component for Position2D { + #[inline] + fn name() -> ComponentName { + "rerun.components.Position2D".into() + } +} diff --git a/crates/store/re_types/src/components/position3d.rs b/crates/store/re_types/src/components/position3d.rs index 04346cf26b49..f60f59a5e372 100644 --- a/crates/store/re_types/src/components/position3d.rs +++ b/crates/store/re_types/src/components/position3d.rs @@ -67,13 +67,6 @@ impl std::ops::DerefMut for Position3D { ::re_types_core::macros::impl_into_cow!(Position3D); impl ::re_types_core::Loggable for Position3D { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.components.Position3D".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::Vec3D::arrow_datatype() @@ -111,3 +104,10 @@ impl ::re_types_core::Loggable for Position3D { crate::datatypes::Vec3D::from_arrow(arrow_data).map(bytemuck::cast_vec) } } + +impl ::re_types_core::Component for Position3D { + #[inline] + fn name() -> ComponentName { + "rerun.components.Position3D".into() + } +} diff --git a/crates/store/re_types/src/components/radius.rs b/crates/store/re_types/src/components/radius.rs index b9e799191a76..241e71257936 100644 --- a/crates/store/re_types/src/components/radius.rs +++ b/crates/store/re_types/src/components/radius.rs @@ -74,13 +74,6 @@ impl std::ops::DerefMut for Radius { ::re_types_core::macros::impl_into_cow!(Radius); impl ::re_types_core::Loggable for Radius { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.components.Radius".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::Float32::arrow_datatype() @@ -118,3 +111,10 @@ impl ::re_types_core::Loggable for Radius { crate::datatypes::Float32::from_arrow(arrow_data).map(bytemuck::cast_vec) } } + +impl ::re_types_core::Component for Radius { + #[inline] + fn name() -> ComponentName { + "rerun.components.Radius".into() + } +} diff --git a/crates/store/re_types/src/components/range1d.rs b/crates/store/re_types/src/components/range1d.rs index b9559677ab7e..50b82a1354b2 100644 --- a/crates/store/re_types/src/components/range1d.rs +++ b/crates/store/re_types/src/components/range1d.rs @@ -67,13 +67,6 @@ impl std::ops::DerefMut for Range1D { ::re_types_core::macros::impl_into_cow!(Range1D); impl ::re_types_core::Loggable for Range1D { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.components.Range1D".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::Range1D::arrow_datatype() @@ -111,3 +104,10 @@ impl ::re_types_core::Loggable for Range1D { crate::datatypes::Range1D::from_arrow(arrow_data).map(bytemuck::cast_vec) } } + +impl ::re_types_core::Component for Range1D { + #[inline] + fn name() -> ComponentName { + "rerun.components.Range1D".into() + } +} diff --git a/crates/store/re_types/src/components/resolution.rs b/crates/store/re_types/src/components/resolution.rs index e53a361af936..bcadde0be16f 100644 --- a/crates/store/re_types/src/components/resolution.rs +++ b/crates/store/re_types/src/components/resolution.rs @@ -68,13 +68,6 @@ impl std::ops::DerefMut for Resolution { ::re_types_core::macros::impl_into_cow!(Resolution); impl ::re_types_core::Loggable for Resolution { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.components.Resolution".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::Vec2D::arrow_datatype() @@ -112,3 +105,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::Component for Resolution { + #[inline] + fn name() -> ComponentName { + "rerun.components.Resolution".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..80330fe35bab 100644 --- a/crates/store/re_types/src/components/rotation_axis_angle.rs +++ b/crates/store/re_types/src/components/rotation_axis_angle.rs @@ -67,13 +67,6 @@ impl std::ops::DerefMut for RotationAxisAngle { ::re_types_core::macros::impl_into_cow!(RotationAxisAngle); impl ::re_types_core::Loggable for RotationAxisAngle { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.components.RotationAxisAngle".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::RotationAxisAngle::arrow_datatype() @@ -103,3 +96,10 @@ impl ::re_types_core::Loggable for RotationAxisAngle { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::Component for RotationAxisAngle { + #[inline] + fn name() -> ComponentName { + "rerun.components.RotationAxisAngle".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..12905957ef5c 100644 --- a/crates/store/re_types/src/components/rotation_quat.rs +++ b/crates/store/re_types/src/components/rotation_quat.rs @@ -70,13 +70,6 @@ impl std::ops::DerefMut for RotationQuat { ::re_types_core::macros::impl_into_cow!(RotationQuat); impl ::re_types_core::Loggable for RotationQuat { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.components.RotationQuat".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::Quaternion::arrow_datatype() @@ -114,3 +107,10 @@ impl ::re_types_core::Loggable for RotationQuat { crate::datatypes::Quaternion::from_arrow(arrow_data).map(bytemuck::cast_vec) } } + +impl ::re_types_core::Component for RotationQuat { + #[inline] + fn name() -> ComponentName { + "rerun.components.RotationQuat".into() + } +} diff --git a/crates/store/re_types/src/components/scalar.rs b/crates/store/re_types/src/components/scalar.rs index f98bdae0300c..aa0f455c50a9 100644 --- a/crates/store/re_types/src/components/scalar.rs +++ b/crates/store/re_types/src/components/scalar.rs @@ -69,13 +69,6 @@ impl std::ops::DerefMut for Scalar { ::re_types_core::macros::impl_into_cow!(Scalar); impl ::re_types_core::Loggable for Scalar { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.components.Scalar".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::Float64::arrow_datatype() @@ -113,3 +106,10 @@ impl ::re_types_core::Loggable for Scalar { crate::datatypes::Float64::from_arrow(arrow_data).map(bytemuck::cast_vec) } } + +impl ::re_types_core::Component for Scalar { + #[inline] + fn name() -> ComponentName { + "rerun.components.Scalar".into() + } +} diff --git a/crates/store/re_types/src/components/scale3d.rs b/crates/store/re_types/src/components/scale3d.rs index 05e5b420b6f0..78ab07a8e026 100644 --- a/crates/store/re_types/src/components/scale3d.rs +++ b/crates/store/re_types/src/components/scale3d.rs @@ -71,13 +71,6 @@ impl std::ops::DerefMut for Scale3D { ::re_types_core::macros::impl_into_cow!(Scale3D); impl ::re_types_core::Loggable for Scale3D { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.components.Scale3D".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::Vec3D::arrow_datatype() @@ -115,3 +108,10 @@ impl ::re_types_core::Loggable for Scale3D { crate::datatypes::Vec3D::from_arrow(arrow_data).map(bytemuck::cast_vec) } } + +impl ::re_types_core::Component for Scale3D { + #[inline] + fn name() -> ComponentName { + "rerun.components.Scale3D".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..d02798e8c38a 100644 --- a/crates/store/re_types/src/components/show_labels.rs +++ b/crates/store/re_types/src/components/show_labels.rs @@ -73,13 +73,6 @@ impl std::ops::DerefMut for ShowLabels { ::re_types_core::macros::impl_into_cow!(ShowLabels); impl ::re_types_core::Loggable for ShowLabels { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.components.ShowLabels".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::Bool::arrow_datatype() @@ -109,3 +102,10 @@ impl ::re_types_core::Loggable for ShowLabels { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::Component for ShowLabels { + #[inline] + fn name() -> ComponentName { + "rerun.components.ShowLabels".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..7c4794498d29 100644 --- a/crates/store/re_types/src/components/stroke_width.rs +++ b/crates/store/re_types/src/components/stroke_width.rs @@ -67,13 +67,6 @@ impl std::ops::DerefMut for StrokeWidth { ::re_types_core::macros::impl_into_cow!(StrokeWidth); impl ::re_types_core::Loggable for StrokeWidth { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.components.StrokeWidth".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::Float32::arrow_datatype() @@ -111,3 +104,10 @@ impl ::re_types_core::Loggable for StrokeWidth { crate::datatypes::Float32::from_arrow(arrow_data).map(bytemuck::cast_vec) } } + +impl ::re_types_core::Component for StrokeWidth { + #[inline] + fn name() -> ComponentName { + "rerun.components.StrokeWidth".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..a23f31c80924 100644 --- a/crates/store/re_types/src/components/tensor_data.rs +++ b/crates/store/re_types/src/components/tensor_data.rs @@ -74,13 +74,6 @@ impl std::ops::DerefMut for TensorData { ::re_types_core::macros::impl_into_cow!(TensorData); impl ::re_types_core::Loggable for TensorData { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.components.TensorData".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::TensorData::arrow_datatype() @@ -110,3 +103,10 @@ impl ::re_types_core::Loggable for TensorData { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::Component for TensorData { + #[inline] + fn name() -> ComponentName { + "rerun.components.TensorData".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..359293dc5d1c 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 @@ -71,13 +71,6 @@ impl std::ops::DerefMut for TensorDimensionIndexSelection { ::re_types_core::macros::impl_into_cow!(TensorDimensionIndexSelection); impl ::re_types_core::Loggable for TensorDimensionIndexSelection { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.components.TensorDimensionIndexSelection".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::TensorDimensionIndexSelection::arrow_datatype() @@ -109,3 +102,10 @@ impl ::re_types_core::Loggable for TensorDimensionIndexSelection { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::Component for TensorDimensionIndexSelection { + #[inline] + fn name() -> ComponentName { + "rerun.components.TensorDimensionIndexSelection".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..344098d2c4cd 100644 --- a/crates/store/re_types/src/components/tensor_height_dimension.rs +++ b/crates/store/re_types/src/components/tensor_height_dimension.rs @@ -67,13 +67,6 @@ impl std::ops::DerefMut for TensorHeightDimension { ::re_types_core::macros::impl_into_cow!(TensorHeightDimension); impl ::re_types_core::Loggable for TensorHeightDimension { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.components.TensorHeightDimension".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::TensorDimensionSelection::arrow_datatype() @@ -103,3 +96,10 @@ impl ::re_types_core::Loggable for TensorHeightDimension { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::Component for TensorHeightDimension { + #[inline] + fn name() -> ComponentName { + "rerun.components.TensorHeightDimension".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..3f0225fc2dc6 100644 --- a/crates/store/re_types/src/components/tensor_width_dimension.rs +++ b/crates/store/re_types/src/components/tensor_width_dimension.rs @@ -67,13 +67,6 @@ impl std::ops::DerefMut for TensorWidthDimension { ::re_types_core::macros::impl_into_cow!(TensorWidthDimension); impl ::re_types_core::Loggable for TensorWidthDimension { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.components.TensorWidthDimension".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::TensorDimensionSelection::arrow_datatype() @@ -103,3 +96,10 @@ impl ::re_types_core::Loggable for TensorWidthDimension { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::Component for TensorWidthDimension { + #[inline] + fn name() -> ComponentName { + "rerun.components.TensorWidthDimension".into() + } +} diff --git a/crates/store/re_types/src/components/texcoord2d.rs b/crates/store/re_types/src/components/texcoord2d.rs index 69ad88bd9992..7600e6fa6dc4 100644 --- a/crates/store/re_types/src/components/texcoord2d.rs +++ b/crates/store/re_types/src/components/texcoord2d.rs @@ -82,13 +82,6 @@ impl std::ops::DerefMut for Texcoord2D { ::re_types_core::macros::impl_into_cow!(Texcoord2D); impl ::re_types_core::Loggable for Texcoord2D { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.components.Texcoord2D".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::Vec2D::arrow_datatype() @@ -126,3 +119,10 @@ impl ::re_types_core::Loggable for Texcoord2D { crate::datatypes::Vec2D::from_arrow(arrow_data).map(bytemuck::cast_vec) } } + +impl ::re_types_core::Component for Texcoord2D { + #[inline] + fn name() -> ComponentName { + "rerun.components.Texcoord2D".into() + } +} diff --git a/crates/store/re_types/src/components/text.rs b/crates/store/re_types/src/components/text.rs index f59e6698ed83..3bb4bb31401f 100644 --- a/crates/store/re_types/src/components/text.rs +++ b/crates/store/re_types/src/components/text.rs @@ -67,13 +67,6 @@ impl std::ops::DerefMut for Text { ::re_types_core::macros::impl_into_cow!(Text); impl ::re_types_core::Loggable for Text { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.components.Text".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::Utf8::arrow_datatype() @@ -103,3 +96,10 @@ impl ::re_types_core::Loggable for Text { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::Component for Text { + #[inline] + fn name() -> ComponentName { + "rerun.components.Text".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..0f7dd2fc5212 100644 --- a/crates/store/re_types/src/components/text_log_level.rs +++ b/crates/store/re_types/src/components/text_log_level.rs @@ -75,13 +75,6 @@ impl std::ops::DerefMut for TextLogLevel { ::re_types_core::macros::impl_into_cow!(TextLogLevel); impl ::re_types_core::Loggable for TextLogLevel { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.components.TextLogLevel".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::Utf8::arrow_datatype() @@ -111,3 +104,10 @@ impl ::re_types_core::Loggable for TextLogLevel { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::Component for TextLogLevel { + #[inline] + fn name() -> ComponentName { + "rerun.components.TextLogLevel".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..a81503f38655 100644 --- a/crates/store/re_types/src/components/transform_mat3x3.rs +++ b/crates/store/re_types/src/components/transform_mat3x3.rs @@ -79,13 +79,6 @@ impl std::ops::DerefMut for TransformMat3x3 { ::re_types_core::macros::impl_into_cow!(TransformMat3x3); impl ::re_types_core::Loggable for TransformMat3x3 { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.components.TransformMat3x3".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::Mat3x3::arrow_datatype() @@ -123,3 +116,10 @@ impl ::re_types_core::Loggable for TransformMat3x3 { crate::datatypes::Mat3x3::from_arrow(arrow_data).map(bytemuck::cast_vec) } } + +impl ::re_types_core::Component for TransformMat3x3 { + #[inline] + fn name() -> ComponentName { + "rerun.components.TransformMat3x3".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..57f31984b01c 100644 --- a/crates/store/re_types/src/components/transform_relation.rs +++ b/crates/store/re_types/src/components/transform_relation.rs @@ -82,13 +82,6 @@ impl std::fmt::Display for TransformRelation { ::re_types_core::macros::impl_into_cow!(TransformRelation); impl ::re_types_core::Loggable for TransformRelation { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.components.TransformRelation".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] @@ -162,3 +155,10 @@ impl ::re_types_core::Loggable for TransformRelation { .with_context("rerun.components.TransformRelation")?) } } + +impl ::re_types_core::Component for TransformRelation { + #[inline] + fn name() -> ComponentName { + "rerun.components.TransformRelation".into() + } +} diff --git a/crates/store/re_types/src/components/translation3d.rs b/crates/store/re_types/src/components/translation3d.rs index 89b150684914..d07c575983f0 100644 --- a/crates/store/re_types/src/components/translation3d.rs +++ b/crates/store/re_types/src/components/translation3d.rs @@ -67,13 +67,6 @@ impl std::ops::DerefMut for Translation3D { ::re_types_core::macros::impl_into_cow!(Translation3D); impl ::re_types_core::Loggable for Translation3D { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.components.Translation3D".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::Vec3D::arrow_datatype() @@ -111,3 +104,10 @@ impl ::re_types_core::Loggable for Translation3D { crate::datatypes::Vec3D::from_arrow(arrow_data).map(bytemuck::cast_vec) } } + +impl ::re_types_core::Component for Translation3D { + #[inline] + fn name() -> ComponentName { + "rerun.components.Translation3D".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..9412a0a130fe 100644 --- a/crates/store/re_types/src/components/triangle_indices.rs +++ b/crates/store/re_types/src/components/triangle_indices.rs @@ -67,13 +67,6 @@ impl std::ops::DerefMut for TriangleIndices { ::re_types_core::macros::impl_into_cow!(TriangleIndices); impl ::re_types_core::Loggable for TriangleIndices { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.components.TriangleIndices".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::UVec3D::arrow_datatype() @@ -111,3 +104,10 @@ impl ::re_types_core::Loggable for TriangleIndices { crate::datatypes::UVec3D::from_arrow(arrow_data).map(bytemuck::cast_vec) } } + +impl ::re_types_core::Component for TriangleIndices { + #[inline] + fn name() -> ComponentName { + "rerun.components.TriangleIndices".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..7a7ed95828c1 100644 --- a/crates/store/re_types/src/components/value_range.rs +++ b/crates/store/re_types/src/components/value_range.rs @@ -67,13 +67,6 @@ impl std::ops::DerefMut for ValueRange { ::re_types_core::macros::impl_into_cow!(ValueRange); impl ::re_types_core::Loggable for ValueRange { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.components.ValueRange".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::Range1D::arrow_datatype() @@ -111,3 +104,10 @@ impl ::re_types_core::Loggable for ValueRange { crate::datatypes::Range1D::from_arrow(arrow_data).map(bytemuck::cast_vec) } } + +impl ::re_types_core::Component for ValueRange { + #[inline] + fn name() -> ComponentName { + "rerun.components.ValueRange".into() + } +} diff --git a/crates/store/re_types/src/components/vector2d.rs b/crates/store/re_types/src/components/vector2d.rs index a46386b7ea93..33187fcdeb78 100644 --- a/crates/store/re_types/src/components/vector2d.rs +++ b/crates/store/re_types/src/components/vector2d.rs @@ -67,13 +67,6 @@ impl std::ops::DerefMut for Vector2D { ::re_types_core::macros::impl_into_cow!(Vector2D); impl ::re_types_core::Loggable for Vector2D { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.components.Vector2D".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::Vec2D::arrow_datatype() @@ -111,3 +104,10 @@ impl ::re_types_core::Loggable for Vector2D { crate::datatypes::Vec2D::from_arrow(arrow_data).map(bytemuck::cast_vec) } } + +impl ::re_types_core::Component for Vector2D { + #[inline] + fn name() -> ComponentName { + "rerun.components.Vector2D".into() + } +} diff --git a/crates/store/re_types/src/components/vector3d.rs b/crates/store/re_types/src/components/vector3d.rs index 292ce0ac302a..26ac8e82edd0 100644 --- a/crates/store/re_types/src/components/vector3d.rs +++ b/crates/store/re_types/src/components/vector3d.rs @@ -67,13 +67,6 @@ impl std::ops::DerefMut for Vector3D { ::re_types_core::macros::impl_into_cow!(Vector3D); impl ::re_types_core::Loggable for Vector3D { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.components.Vector3D".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::Vec3D::arrow_datatype() @@ -111,3 +104,10 @@ impl ::re_types_core::Loggable for Vector3D { crate::datatypes::Vec3D::from_arrow(arrow_data).map(bytemuck::cast_vec) } } + +impl ::re_types_core::Component for Vector3D { + #[inline] + fn name() -> ComponentName { + "rerun.components.Vector3D".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..65d16d89293d 100644 --- a/crates/store/re_types/src/components/video_timestamp.rs +++ b/crates/store/re_types/src/components/video_timestamp.rs @@ -67,13 +67,6 @@ impl std::ops::DerefMut for VideoTimestamp { ::re_types_core::macros::impl_into_cow!(VideoTimestamp); impl ::re_types_core::Loggable for VideoTimestamp { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.components.VideoTimestamp".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::VideoTimestamp::arrow_datatype() @@ -112,3 +105,10 @@ impl ::re_types_core::Loggable for VideoTimestamp { .map(|v| v.into_iter().map(Self).collect()) } } + +impl ::re_types_core::Component for VideoTimestamp { + #[inline] + fn name() -> ComponentName { + "rerun.components.VideoTimestamp".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..422cda856412 100644 --- a/crates/store/re_types/src/components/view_coordinates.rs +++ b/crates/store/re_types/src/components/view_coordinates.rs @@ -87,13 +87,6 @@ impl std::ops::DerefMut for ViewCoordinates { ::re_types_core::macros::impl_into_cow!(ViewCoordinates); impl ::re_types_core::Loggable for ViewCoordinates { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.components.ViewCoordinates".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::ViewCoordinates::arrow_datatype() @@ -131,3 +124,10 @@ impl ::re_types_core::Loggable for ViewCoordinates { crate::datatypes::ViewCoordinates::from_arrow(arrow_data).map(bytemuck::cast_vec) } } + +impl ::re_types_core::Component for ViewCoordinates { + #[inline] + fn name() -> ComponentName { + "rerun.components.ViewCoordinates".into() + } +} diff --git a/crates/store/re_types/src/datatypes/angle.rs b/crates/store/re_types/src/datatypes/angle.rs index fee1d19874d9..3a6a5d243089 100644 --- a/crates/store/re_types/src/datatypes/angle.rs +++ b/crates/store/re_types/src/datatypes/angle.rs @@ -55,13 +55,6 @@ impl From for f32 { ::re_types_core::macros::impl_into_cow!(Angle); impl ::re_types_core::Loggable for Angle { - type Name = ::re_types_core::DatatypeName; - - #[inline] - fn name() -> Self::Name { - "rerun.datatypes.Angle".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] diff --git a/crates/store/re_types/src/datatypes/annotation_info.rs b/crates/store/re_types/src/datatypes/annotation_info.rs index a0e8101caaf6..8a5c0936888b 100644 --- a/crates/store/re_types/src/datatypes/annotation_info.rs +++ b/crates/store/re_types/src/datatypes/annotation_info.rs @@ -51,13 +51,6 @@ impl ::re_types_core::SizeBytes for AnnotationInfo { ::re_types_core::macros::impl_into_cow!(AnnotationInfo); impl ::re_types_core::Loggable for AnnotationInfo { - type Name = ::re_types_core::DatatypeName; - - #[inline] - fn name() -> Self::Name { - "rerun.datatypes.AnnotationInfo".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] diff --git a/crates/store/re_types/src/datatypes/blob.rs b/crates/store/re_types/src/datatypes/blob.rs index 670848197997..dda608dd1e88 100644 --- a/crates/store/re_types/src/datatypes/blob.rs +++ b/crates/store/re_types/src/datatypes/blob.rs @@ -54,13 +54,6 @@ impl From for ::re_types_core::ArrowBuffer { ::re_types_core::macros::impl_into_cow!(Blob); impl ::re_types_core::Loggable for Blob { - type Name = ::re_types_core::DatatypeName; - - #[inline] - fn name() -> Self::Name { - "rerun.datatypes.Blob".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] diff --git a/crates/store/re_types/src/datatypes/channel_datatype.rs b/crates/store/re_types/src/datatypes/channel_datatype.rs index e58e4d970e7d..4a4bff2a7c2a 100644 --- a/crates/store/re_types/src/datatypes/channel_datatype.rs +++ b/crates/store/re_types/src/datatypes/channel_datatype.rs @@ -129,13 +129,6 @@ impl std::fmt::Display for ChannelDatatype { ::re_types_core::macros::impl_into_cow!(ChannelDatatype); impl ::re_types_core::Loggable for ChannelDatatype { - type Name = ::re_types_core::DatatypeName; - - #[inline] - fn name() -> Self::Name { - "rerun.datatypes.ChannelDatatype".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] diff --git a/crates/store/re_types/src/datatypes/class_description.rs b/crates/store/re_types/src/datatypes/class_description.rs index ff8207d94fdd..ab0c980cda64 100644 --- a/crates/store/re_types/src/datatypes/class_description.rs +++ b/crates/store/re_types/src/datatypes/class_description.rs @@ -63,13 +63,6 @@ impl ::re_types_core::SizeBytes for ClassDescription { ::re_types_core::macros::impl_into_cow!(ClassDescription); impl ::re_types_core::Loggable for ClassDescription { - type Name = ::re_types_core::DatatypeName; - - #[inline] - fn name() -> Self::Name { - "rerun.datatypes.ClassDescription".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] diff --git a/crates/store/re_types/src/datatypes/class_description_map_elem.rs b/crates/store/re_types/src/datatypes/class_description_map_elem.rs index bfc1bd7e4d9c..bffd52d956d0 100644 --- a/crates/store/re_types/src/datatypes/class_description_map_elem.rs +++ b/crates/store/re_types/src/datatypes/class_description_map_elem.rs @@ -45,13 +45,6 @@ impl ::re_types_core::SizeBytes for ClassDescriptionMapElem { ::re_types_core::macros::impl_into_cow!(ClassDescriptionMapElem); impl ::re_types_core::Loggable for ClassDescriptionMapElem { - type Name = ::re_types_core::DatatypeName; - - #[inline] - fn name() -> Self::Name { - "rerun.datatypes.ClassDescriptionMapElem".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] diff --git a/crates/store/re_types/src/datatypes/class_id.rs b/crates/store/re_types/src/datatypes/class_id.rs index c9e2673c801d..62c6eba85e21 100644 --- a/crates/store/re_types/src/datatypes/class_id.rs +++ b/crates/store/re_types/src/datatypes/class_id.rs @@ -67,13 +67,6 @@ impl From for u16 { ::re_types_core::macros::impl_into_cow!(ClassId); impl ::re_types_core::Loggable for ClassId { - type Name = ::re_types_core::DatatypeName; - - #[inline] - fn name() -> Self::Name { - "rerun.datatypes.ClassId".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] diff --git a/crates/store/re_types/src/datatypes/color_model.rs b/crates/store/re_types/src/datatypes/color_model.rs index 48a677a4bbe7..a9dd2aaa1ff9 100644 --- a/crates/store/re_types/src/datatypes/color_model.rs +++ b/crates/store/re_types/src/datatypes/color_model.rs @@ -91,13 +91,6 @@ impl std::fmt::Display for ColorModel { ::re_types_core::macros::impl_into_cow!(ColorModel); impl ::re_types_core::Loggable for ColorModel { - type Name = ::re_types_core::DatatypeName; - - #[inline] - fn name() -> Self::Name { - "rerun.datatypes.ColorModel".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] diff --git a/crates/store/re_types/src/datatypes/dvec2d.rs b/crates/store/re_types/src/datatypes/dvec2d.rs index b3e69b36ca81..88feeaa89eef 100644 --- a/crates/store/re_types/src/datatypes/dvec2d.rs +++ b/crates/store/re_types/src/datatypes/dvec2d.rs @@ -52,13 +52,6 @@ impl From for [f64; 2usize] { ::re_types_core::macros::impl_into_cow!(DVec2D); impl ::re_types_core::Loggable for DVec2D { - type Name = ::re_types_core::DatatypeName; - - #[inline] - fn name() -> Self::Name { - "rerun.datatypes.DVec2D".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] diff --git a/crates/store/re_types/src/datatypes/image_format.rs b/crates/store/re_types/src/datatypes/image_format.rs index 4dafc8faa458..fb7c7da0a036 100644 --- a/crates/store/re_types/src/datatypes/image_format.rs +++ b/crates/store/re_types/src/datatypes/image_format.rs @@ -66,13 +66,6 @@ impl ::re_types_core::SizeBytes for ImageFormat { ::re_types_core::macros::impl_into_cow!(ImageFormat); impl ::re_types_core::Loggable for ImageFormat { - type Name = ::re_types_core::DatatypeName; - - #[inline] - fn name() -> Self::Name { - "rerun.datatypes.ImageFormat".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] diff --git a/crates/store/re_types/src/datatypes/keypoint_id.rs b/crates/store/re_types/src/datatypes/keypoint_id.rs index 78e2b3de1d1f..021cddb15a3f 100644 --- a/crates/store/re_types/src/datatypes/keypoint_id.rs +++ b/crates/store/re_types/src/datatypes/keypoint_id.rs @@ -69,13 +69,6 @@ impl From for u16 { ::re_types_core::macros::impl_into_cow!(KeypointId); impl ::re_types_core::Loggable for KeypointId { - type Name = ::re_types_core::DatatypeName; - - #[inline] - fn name() -> Self::Name { - "rerun.datatypes.KeypointId".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] diff --git a/crates/store/re_types/src/datatypes/keypoint_pair.rs b/crates/store/re_types/src/datatypes/keypoint_pair.rs index 11de25412e52..53e36fefaf20 100644 --- a/crates/store/re_types/src/datatypes/keypoint_pair.rs +++ b/crates/store/re_types/src/datatypes/keypoint_pair.rs @@ -43,13 +43,6 @@ impl ::re_types_core::SizeBytes for KeypointPair { ::re_types_core::macros::impl_into_cow!(KeypointPair); impl ::re_types_core::Loggable for KeypointPair { - type Name = ::re_types_core::DatatypeName; - - #[inline] - fn name() -> Self::Name { - "rerun.datatypes.KeypointPair".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] diff --git a/crates/store/re_types/src/datatypes/mat3x3.rs b/crates/store/re_types/src/datatypes/mat3x3.rs index 50fd8d12c62a..0d1fba45f192 100644 --- a/crates/store/re_types/src/datatypes/mat3x3.rs +++ b/crates/store/re_types/src/datatypes/mat3x3.rs @@ -64,13 +64,6 @@ impl From for [f32; 9usize] { ::re_types_core::macros::impl_into_cow!(Mat3x3); impl ::re_types_core::Loggable for Mat3x3 { - type Name = ::re_types_core::DatatypeName; - - #[inline] - fn name() -> Self::Name { - "rerun.datatypes.Mat3x3".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] diff --git a/crates/store/re_types/src/datatypes/mat4x4.rs b/crates/store/re_types/src/datatypes/mat4x4.rs index 9c3dd21574ab..495a22530749 100644 --- a/crates/store/re_types/src/datatypes/mat4x4.rs +++ b/crates/store/re_types/src/datatypes/mat4x4.rs @@ -64,13 +64,6 @@ impl From for [f32; 16usize] { ::re_types_core::macros::impl_into_cow!(Mat4x4); impl ::re_types_core::Loggable for Mat4x4 { - type Name = ::re_types_core::DatatypeName; - - #[inline] - fn name() -> Self::Name { - "rerun.datatypes.Mat4x4".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] diff --git a/crates/store/re_types/src/datatypes/pixel_format.rs b/crates/store/re_types/src/datatypes/pixel_format.rs index 348b292cd930..7ae785bfd107 100644 --- a/crates/store/re_types/src/datatypes/pixel_format.rs +++ b/crates/store/re_types/src/datatypes/pixel_format.rs @@ -211,13 +211,6 @@ impl std::fmt::Display for PixelFormat { ::re_types_core::macros::impl_into_cow!(PixelFormat); impl ::re_types_core::Loggable for PixelFormat { - type Name = ::re_types_core::DatatypeName; - - #[inline] - fn name() -> Self::Name { - "rerun.datatypes.PixelFormat".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] diff --git a/crates/store/re_types/src/datatypes/quaternion.rs b/crates/store/re_types/src/datatypes/quaternion.rs index 79d3bb0c003b..f2dc9dfbd4da 100644 --- a/crates/store/re_types/src/datatypes/quaternion.rs +++ b/crates/store/re_types/src/datatypes/quaternion.rs @@ -55,13 +55,6 @@ impl From for [f32; 4usize] { ::re_types_core::macros::impl_into_cow!(Quaternion); impl ::re_types_core::Loggable for Quaternion { - type Name = ::re_types_core::DatatypeName; - - #[inline] - fn name() -> Self::Name { - "rerun.datatypes.Quaternion".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] diff --git a/crates/store/re_types/src/datatypes/range1d.rs b/crates/store/re_types/src/datatypes/range1d.rs index affcfa183670..7fe8284a96f3 100644 --- a/crates/store/re_types/src/datatypes/range1d.rs +++ b/crates/store/re_types/src/datatypes/range1d.rs @@ -52,13 +52,6 @@ impl From for [f64; 2usize] { ::re_types_core::macros::impl_into_cow!(Range1D); impl ::re_types_core::Loggable for Range1D { - type Name = ::re_types_core::DatatypeName; - - #[inline] - fn name() -> Self::Name { - "rerun.datatypes.Range1D".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] diff --git a/crates/store/re_types/src/datatypes/range2d.rs b/crates/store/re_types/src/datatypes/range2d.rs index 77f5d3a97b22..6ff2b5c2a794 100644 --- a/crates/store/re_types/src/datatypes/range2d.rs +++ b/crates/store/re_types/src/datatypes/range2d.rs @@ -44,13 +44,6 @@ impl ::re_types_core::SizeBytes for Range2D { ::re_types_core::macros::impl_into_cow!(Range2D); impl ::re_types_core::Loggable for Range2D { - type Name = ::re_types_core::DatatypeName; - - #[inline] - fn name() -> Self::Name { - "rerun.datatypes.Range2D".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] diff --git a/crates/store/re_types/src/datatypes/rgba32.rs b/crates/store/re_types/src/datatypes/rgba32.rs index 8a8661018a3f..334794cd573c 100644 --- a/crates/store/re_types/src/datatypes/rgba32.rs +++ b/crates/store/re_types/src/datatypes/rgba32.rs @@ -57,13 +57,6 @@ impl From for u32 { ::re_types_core::macros::impl_into_cow!(Rgba32); impl ::re_types_core::Loggable for Rgba32 { - type Name = ::re_types_core::DatatypeName; - - #[inline] - fn name() -> Self::Name { - "rerun.datatypes.Rgba32".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] diff --git a/crates/store/re_types/src/datatypes/rotation_axis_angle.rs b/crates/store/re_types/src/datatypes/rotation_axis_angle.rs index 7f602a5686a3..9a0bf318414c 100644 --- a/crates/store/re_types/src/datatypes/rotation_axis_angle.rs +++ b/crates/store/re_types/src/datatypes/rotation_axis_angle.rs @@ -47,13 +47,6 @@ impl ::re_types_core::SizeBytes for RotationAxisAngle { ::re_types_core::macros::impl_into_cow!(RotationAxisAngle); impl ::re_types_core::Loggable for RotationAxisAngle { - type Name = ::re_types_core::DatatypeName; - - #[inline] - fn name() -> Self::Name { - "rerun.datatypes.RotationAxisAngle".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] diff --git a/crates/store/re_types/src/datatypes/tensor_buffer.rs b/crates/store/re_types/src/datatypes/tensor_buffer.rs index 0416f0496e7d..217d0e0216a3 100644 --- a/crates/store/re_types/src/datatypes/tensor_buffer.rs +++ b/crates/store/re_types/src/datatypes/tensor_buffer.rs @@ -95,13 +95,6 @@ impl ::re_types_core::SizeBytes for TensorBuffer { ::re_types_core::macros::impl_into_cow!(TensorBuffer); impl ::re_types_core::Loggable for TensorBuffer { - type Name = ::re_types_core::DatatypeName; - - #[inline] - fn name() -> Self::Name { - "rerun.datatypes.TensorBuffer".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] diff --git a/crates/store/re_types/src/datatypes/tensor_data.rs b/crates/store/re_types/src/datatypes/tensor_data.rs index c09bb29c8993..54b901c239d8 100644 --- a/crates/store/re_types/src/datatypes/tensor_data.rs +++ b/crates/store/re_types/src/datatypes/tensor_data.rs @@ -51,13 +51,6 @@ impl ::re_types_core::SizeBytes for TensorData { ::re_types_core::macros::impl_into_cow!(TensorData); impl ::re_types_core::Loggable for TensorData { - type Name = ::re_types_core::DatatypeName; - - #[inline] - fn name() -> Self::Name { - "rerun.datatypes.TensorData".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] diff --git a/crates/store/re_types/src/datatypes/tensor_dimension.rs b/crates/store/re_types/src/datatypes/tensor_dimension.rs index 0177f44e46fb..392fac41b454 100644 --- a/crates/store/re_types/src/datatypes/tensor_dimension.rs +++ b/crates/store/re_types/src/datatypes/tensor_dimension.rs @@ -43,13 +43,6 @@ impl ::re_types_core::SizeBytes for TensorDimension { ::re_types_core::macros::impl_into_cow!(TensorDimension); impl ::re_types_core::Loggable for TensorDimension { - type Name = ::re_types_core::DatatypeName; - - #[inline] - fn name() -> Self::Name { - "rerun.datatypes.TensorDimension".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] diff --git a/crates/store/re_types/src/datatypes/tensor_dimension_index_selection.rs b/crates/store/re_types/src/datatypes/tensor_dimension_index_selection.rs index 5b3d3bda50de..722771a877b6 100644 --- a/crates/store/re_types/src/datatypes/tensor_dimension_index_selection.rs +++ b/crates/store/re_types/src/datatypes/tensor_dimension_index_selection.rs @@ -45,13 +45,6 @@ impl ::re_types_core::SizeBytes for TensorDimensionIndexSelection { ::re_types_core::macros::impl_into_cow!(TensorDimensionIndexSelection); impl ::re_types_core::Loggable for TensorDimensionIndexSelection { - type Name = ::re_types_core::DatatypeName; - - #[inline] - fn name() -> Self::Name { - "rerun.datatypes.TensorDimensionIndexSelection".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] diff --git a/crates/store/re_types/src/datatypes/tensor_dimension_selection.rs b/crates/store/re_types/src/datatypes/tensor_dimension_selection.rs index 07eeeb66fabe..389b7729daf9 100644 --- a/crates/store/re_types/src/datatypes/tensor_dimension_selection.rs +++ b/crates/store/re_types/src/datatypes/tensor_dimension_selection.rs @@ -43,13 +43,6 @@ impl ::re_types_core::SizeBytes for TensorDimensionSelection { ::re_types_core::macros::impl_into_cow!(TensorDimensionSelection); impl ::re_types_core::Loggable for TensorDimensionSelection { - type Name = ::re_types_core::DatatypeName; - - #[inline] - fn name() -> Self::Name { - "rerun.datatypes.TensorDimensionSelection".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] diff --git a/crates/store/re_types/src/datatypes/uuid.rs b/crates/store/re_types/src/datatypes/uuid.rs index cf91db614ad5..880430630bf4 100644 --- a/crates/store/re_types/src/datatypes/uuid.rs +++ b/crates/store/re_types/src/datatypes/uuid.rs @@ -55,13 +55,6 @@ impl From for [u8; 16usize] { ::re_types_core::macros::impl_into_cow!(Uuid); impl ::re_types_core::Loggable for Uuid { - type Name = ::re_types_core::DatatypeName; - - #[inline] - fn name() -> Self::Name { - "rerun.datatypes.Uuid".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] diff --git a/crates/store/re_types/src/datatypes/uvec2d.rs b/crates/store/re_types/src/datatypes/uvec2d.rs index d513a8284a2a..8947ce6e84d5 100644 --- a/crates/store/re_types/src/datatypes/uvec2d.rs +++ b/crates/store/re_types/src/datatypes/uvec2d.rs @@ -52,13 +52,6 @@ impl From for [u32; 2usize] { ::re_types_core::macros::impl_into_cow!(UVec2D); impl ::re_types_core::Loggable for UVec2D { - type Name = ::re_types_core::DatatypeName; - - #[inline] - fn name() -> Self::Name { - "rerun.datatypes.UVec2D".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] diff --git a/crates/store/re_types/src/datatypes/uvec3d.rs b/crates/store/re_types/src/datatypes/uvec3d.rs index 2d47ecb5c43e..9eaf0cf6de97 100644 --- a/crates/store/re_types/src/datatypes/uvec3d.rs +++ b/crates/store/re_types/src/datatypes/uvec3d.rs @@ -52,13 +52,6 @@ impl From for [u32; 3usize] { ::re_types_core::macros::impl_into_cow!(UVec3D); impl ::re_types_core::Loggable for UVec3D { - type Name = ::re_types_core::DatatypeName; - - #[inline] - fn name() -> Self::Name { - "rerun.datatypes.UVec3D".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] diff --git a/crates/store/re_types/src/datatypes/uvec4d.rs b/crates/store/re_types/src/datatypes/uvec4d.rs index 7d6222cc1d1b..8bd1aaf9c07d 100644 --- a/crates/store/re_types/src/datatypes/uvec4d.rs +++ b/crates/store/re_types/src/datatypes/uvec4d.rs @@ -52,13 +52,6 @@ impl From for [u32; 4usize] { ::re_types_core::macros::impl_into_cow!(UVec4D); impl ::re_types_core::Loggable for UVec4D { - type Name = ::re_types_core::DatatypeName; - - #[inline] - fn name() -> Self::Name { - "rerun.datatypes.UVec4D".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] diff --git a/crates/store/re_types/src/datatypes/vec2d.rs b/crates/store/re_types/src/datatypes/vec2d.rs index 5ecbe91e462c..7e51b9111549 100644 --- a/crates/store/re_types/src/datatypes/vec2d.rs +++ b/crates/store/re_types/src/datatypes/vec2d.rs @@ -52,13 +52,6 @@ impl From for [f32; 2usize] { ::re_types_core::macros::impl_into_cow!(Vec2D); impl ::re_types_core::Loggable for Vec2D { - type Name = ::re_types_core::DatatypeName; - - #[inline] - fn name() -> Self::Name { - "rerun.datatypes.Vec2D".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] diff --git a/crates/store/re_types/src/datatypes/vec3d.rs b/crates/store/re_types/src/datatypes/vec3d.rs index df4f5e56df4b..aa458ef63c1b 100644 --- a/crates/store/re_types/src/datatypes/vec3d.rs +++ b/crates/store/re_types/src/datatypes/vec3d.rs @@ -52,13 +52,6 @@ impl From for [f32; 3usize] { ::re_types_core::macros::impl_into_cow!(Vec3D); impl ::re_types_core::Loggable for Vec3D { - type Name = ::re_types_core::DatatypeName; - - #[inline] - fn name() -> Self::Name { - "rerun.datatypes.Vec3D".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] diff --git a/crates/store/re_types/src/datatypes/vec4d.rs b/crates/store/re_types/src/datatypes/vec4d.rs index 2b86f930699c..3a0078ae8f5d 100644 --- a/crates/store/re_types/src/datatypes/vec4d.rs +++ b/crates/store/re_types/src/datatypes/vec4d.rs @@ -52,13 +52,6 @@ impl From for [f32; 4usize] { ::re_types_core::macros::impl_into_cow!(Vec4D); impl ::re_types_core::Loggable for Vec4D { - type Name = ::re_types_core::DatatypeName; - - #[inline] - fn name() -> Self::Name { - "rerun.datatypes.Vec4D".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] diff --git a/crates/store/re_types/src/datatypes/video_timestamp.rs b/crates/store/re_types/src/datatypes/video_timestamp.rs index de4a7a383bd5..fc8c8918fca4 100644 --- a/crates/store/re_types/src/datatypes/video_timestamp.rs +++ b/crates/store/re_types/src/datatypes/video_timestamp.rs @@ -57,13 +57,6 @@ impl From for i64 { ::re_types_core::macros::impl_into_cow!(VideoTimestamp); impl ::re_types_core::Loggable for VideoTimestamp { - type Name = ::re_types_core::DatatypeName; - - #[inline] - fn name() -> Self::Name { - "rerun.datatypes.VideoTimestamp".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] diff --git a/crates/store/re_types/src/datatypes/view_coordinates.rs b/crates/store/re_types/src/datatypes/view_coordinates.rs index ce99e676e6b7..18b7e4db7907 100644 --- a/crates/store/re_types/src/datatypes/view_coordinates.rs +++ b/crates/store/re_types/src/datatypes/view_coordinates.rs @@ -72,13 +72,6 @@ impl From for [u8; 3usize] { ::re_types_core::macros::impl_into_cow!(ViewCoordinates); impl ::re_types_core::Loggable for ViewCoordinates { - type Name = ::re_types_core::DatatypeName; - - #[inline] - fn name() -> Self::Name { - "rerun.datatypes.ViewCoordinates".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] 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..7b7eb6231af4 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer1.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer1.rs @@ -65,13 +65,6 @@ impl std::ops::DerefMut for AffixFuzzer1 { ::re_types_core::macros::impl_into_cow!(AffixFuzzer1); impl ::re_types_core::Loggable for AffixFuzzer1 { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.testing.components.AffixFuzzer1".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::testing::datatypes::AffixFuzzer1::arrow_datatype() @@ -101,3 +94,10 @@ impl ::re_types_core::Loggable for AffixFuzzer1 { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::Component for AffixFuzzer1 { + #[inline] + fn name() -> ComponentName { + "rerun.testing.components.AffixFuzzer1".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..089ea46944d6 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer10.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer10.rs @@ -66,13 +66,6 @@ impl std::ops::DerefMut for AffixFuzzer10 { ::re_types_core::macros::impl_into_cow!(AffixFuzzer10); impl ::re_types_core::Loggable for AffixFuzzer10 { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.testing.components.AffixFuzzer10".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] @@ -183,3 +176,10 @@ impl ::re_types_core::Loggable for AffixFuzzer10 { .with_context("rerun.testing.components.AffixFuzzer10")?) } } + +impl ::re_types_core::Component for AffixFuzzer10 { + #[inline] + fn name() -> ComponentName { + "rerun.testing.components.AffixFuzzer10".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..084a550a5053 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer11.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer11.rs @@ -66,13 +66,6 @@ impl std::ops::DerefMut for AffixFuzzer11 { ::re_types_core::macros::impl_into_cow!(AffixFuzzer11); impl ::re_types_core::Loggable for AffixFuzzer11 { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.testing.components.AffixFuzzer11".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] @@ -210,3 +203,10 @@ impl ::re_types_core::Loggable for AffixFuzzer11 { .with_context("rerun.testing.components.AffixFuzzer11")?) } } + +impl ::re_types_core::Component for AffixFuzzer11 { + #[inline] + fn name() -> ComponentName { + "rerun.testing.components.AffixFuzzer11".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..261a65e6a551 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer12.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer12.rs @@ -66,13 +66,6 @@ impl std::ops::DerefMut for AffixFuzzer12 { ::re_types_core::macros::impl_into_cow!(AffixFuzzer12); impl ::re_types_core::Loggable for AffixFuzzer12 { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.testing.components.AffixFuzzer12".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] @@ -258,3 +251,10 @@ impl ::re_types_core::Loggable for AffixFuzzer12 { .with_context("rerun.testing.components.AffixFuzzer12")?) } } + +impl ::re_types_core::Component for AffixFuzzer12 { + #[inline] + fn name() -> ComponentName { + "rerun.testing.components.AffixFuzzer12".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..945dea2c3b5a 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer13.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer13.rs @@ -66,13 +66,6 @@ impl std::ops::DerefMut for AffixFuzzer13 { ::re_types_core::macros::impl_into_cow!(AffixFuzzer13); impl ::re_types_core::Loggable for AffixFuzzer13 { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.testing.components.AffixFuzzer13".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] @@ -258,3 +251,10 @@ impl ::re_types_core::Loggable for AffixFuzzer13 { .with_context("rerun.testing.components.AffixFuzzer13")?) } } + +impl ::re_types_core::Component for AffixFuzzer13 { + #[inline] + fn name() -> ComponentName { + "rerun.testing.components.AffixFuzzer13".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..be03f5900bf2 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer14.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer14.rs @@ -65,13 +65,6 @@ impl std::ops::DerefMut for AffixFuzzer14 { ::re_types_core::macros::impl_into_cow!(AffixFuzzer14); impl ::re_types_core::Loggable for AffixFuzzer14 { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.testing.components.AffixFuzzer14".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::testing::datatypes::AffixFuzzer3::arrow_datatype() @@ -101,3 +94,10 @@ impl ::re_types_core::Loggable for AffixFuzzer14 { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::Component for AffixFuzzer14 { + #[inline] + fn name() -> ComponentName { + "rerun.testing.components.AffixFuzzer14".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..f0cb039bfcb9 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer15.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer15.rs @@ -65,13 +65,6 @@ impl std::ops::DerefMut for AffixFuzzer15 { ::re_types_core::macros::impl_into_cow!(AffixFuzzer15); impl ::re_types_core::Loggable for AffixFuzzer15 { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.testing.components.AffixFuzzer15".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] @@ -155,3 +148,10 @@ impl ::re_types_core::Loggable for AffixFuzzer15 { ) } } + +impl ::re_types_core::Component for AffixFuzzer15 { + #[inline] + fn name() -> ComponentName { + "rerun.testing.components.AffixFuzzer15".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..90becc8d5799 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer16.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer16.rs @@ -44,13 +44,6 @@ impl, T: IntoIterator ::re_types_core::macros::impl_into_cow!(AffixFuzzer16); impl ::re_types_core::Loggable for AffixFuzzer16 { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.testing.components.AffixFuzzer16".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] @@ -180,3 +173,10 @@ impl ::re_types_core::Loggable for AffixFuzzer16 { .with_context("rerun.testing.components.AffixFuzzer16")?) } } + +impl ::re_types_core::Component for AffixFuzzer16 { + #[inline] + fn name() -> ComponentName { + "rerun.testing.components.AffixFuzzer16".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..c380dbdbe64a 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer17.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer17.rs @@ -44,13 +44,6 @@ impl, T: IntoIterator ::re_types_core::macros::impl_into_cow!(AffixFuzzer17); impl ::re_types_core::Loggable for AffixFuzzer17 { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.testing.components.AffixFuzzer17".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] @@ -180,3 +173,10 @@ impl ::re_types_core::Loggable for AffixFuzzer17 { .with_context("rerun.testing.components.AffixFuzzer17")?) } } + +impl ::re_types_core::Component for AffixFuzzer17 { + #[inline] + fn name() -> ComponentName { + "rerun.testing.components.AffixFuzzer17".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..714bc2441f88 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer18.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer18.rs @@ -44,13 +44,6 @@ impl, T: IntoIterator ::re_types_core::macros::impl_into_cow!(AffixFuzzer18); impl ::re_types_core::Loggable for AffixFuzzer18 { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.testing.components.AffixFuzzer18".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] @@ -180,3 +173,10 @@ impl ::re_types_core::Loggable for AffixFuzzer18 { .with_context("rerun.testing.components.AffixFuzzer18")?) } } + +impl ::re_types_core::Component for AffixFuzzer18 { + #[inline] + fn name() -> ComponentName { + "rerun.testing.components.AffixFuzzer18".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..d2c032b907ef 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer19.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer19.rs @@ -65,13 +65,6 @@ impl std::ops::DerefMut for AffixFuzzer19 { ::re_types_core::macros::impl_into_cow!(AffixFuzzer19); impl ::re_types_core::Loggable for AffixFuzzer19 { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.testing.components.AffixFuzzer19".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::testing::datatypes::AffixFuzzer5::arrow_datatype() @@ -101,3 +94,10 @@ impl ::re_types_core::Loggable for AffixFuzzer19 { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::Component for AffixFuzzer19 { + #[inline] + fn name() -> ComponentName { + "rerun.testing.components.AffixFuzzer19".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..82fb7a5be685 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer2.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer2.rs @@ -65,13 +65,6 @@ impl std::ops::DerefMut for AffixFuzzer2 { ::re_types_core::macros::impl_into_cow!(AffixFuzzer2); impl ::re_types_core::Loggable for AffixFuzzer2 { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.testing.components.AffixFuzzer2".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::testing::datatypes::AffixFuzzer1::arrow_datatype() @@ -101,3 +94,10 @@ impl ::re_types_core::Loggable for AffixFuzzer2 { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::Component for AffixFuzzer2 { + #[inline] + fn name() -> ComponentName { + "rerun.testing.components.AffixFuzzer2".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..9008a0b2821c 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer20.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer20.rs @@ -65,13 +65,6 @@ impl std::ops::DerefMut for AffixFuzzer20 { ::re_types_core::macros::impl_into_cow!(AffixFuzzer20); impl ::re_types_core::Loggable for AffixFuzzer20 { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.testing.components.AffixFuzzer20".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::testing::datatypes::AffixFuzzer20::arrow_datatype() @@ -101,3 +94,10 @@ impl ::re_types_core::Loggable for AffixFuzzer20 { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::Component for AffixFuzzer20 { + #[inline] + fn name() -> ComponentName { + "rerun.testing.components.AffixFuzzer20".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..3ee032822b9b 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer21.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer21.rs @@ -65,13 +65,6 @@ impl std::ops::DerefMut for AffixFuzzer21 { ::re_types_core::macros::impl_into_cow!(AffixFuzzer21); impl ::re_types_core::Loggable for AffixFuzzer21 { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.testing.components.AffixFuzzer21".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::testing::datatypes::AffixFuzzer21::arrow_datatype() @@ -101,3 +94,10 @@ impl ::re_types_core::Loggable for AffixFuzzer21 { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::Component for AffixFuzzer21 { + #[inline] + fn name() -> ComponentName { + "rerun.testing.components.AffixFuzzer21".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..4e7e70e7434d 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer22.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer22.rs @@ -65,13 +65,6 @@ impl std::ops::DerefMut for AffixFuzzer22 { ::re_types_core::macros::impl_into_cow!(AffixFuzzer22); impl ::re_types_core::Loggable for AffixFuzzer22 { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.testing.components.AffixFuzzer22".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] @@ -137,3 +130,10 @@ impl ::re_types_core::Loggable for AffixFuzzer22 { ) } } + +impl ::re_types_core::Component for AffixFuzzer22 { + #[inline] + fn name() -> ComponentName { + "rerun.testing.components.AffixFuzzer22".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..08a9e59fe5c1 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer23.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer23.rs @@ -65,13 +65,6 @@ impl std::ops::DerefMut for AffixFuzzer23 { ::re_types_core::macros::impl_into_cow!(AffixFuzzer23); impl ::re_types_core::Loggable for AffixFuzzer23 { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.testing.components.AffixFuzzer23".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] @@ -141,3 +134,10 @@ impl ::re_types_core::Loggable for AffixFuzzer23 { ) } } + +impl ::re_types_core::Component for AffixFuzzer23 { + #[inline] + fn name() -> ComponentName { + "rerun.testing.components.AffixFuzzer23".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..9e66eb630274 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer3.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer3.rs @@ -65,13 +65,6 @@ impl std::ops::DerefMut for AffixFuzzer3 { ::re_types_core::macros::impl_into_cow!(AffixFuzzer3); impl ::re_types_core::Loggable for AffixFuzzer3 { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.testing.components.AffixFuzzer3".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::testing::datatypes::AffixFuzzer1::arrow_datatype() @@ -101,3 +94,10 @@ impl ::re_types_core::Loggable for AffixFuzzer3 { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::Component for AffixFuzzer3 { + #[inline] + fn name() -> ComponentName { + "rerun.testing.components.AffixFuzzer3".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..b133db98b95a 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer4.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer4.rs @@ -65,13 +65,6 @@ impl std::ops::DerefMut for AffixFuzzer4 { ::re_types_core::macros::impl_into_cow!(AffixFuzzer4); impl ::re_types_core::Loggable for AffixFuzzer4 { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.testing.components.AffixFuzzer4".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] @@ -168,3 +161,10 @@ impl ::re_types_core::Loggable for AffixFuzzer4 { ) } } + +impl ::re_types_core::Component for AffixFuzzer4 { + #[inline] + fn name() -> ComponentName { + "rerun.testing.components.AffixFuzzer4".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..9d741271a565 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer5.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer5.rs @@ -65,13 +65,6 @@ impl std::ops::DerefMut for AffixFuzzer5 { ::re_types_core::macros::impl_into_cow!(AffixFuzzer5); impl ::re_types_core::Loggable for AffixFuzzer5 { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.testing.components.AffixFuzzer5".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] @@ -168,3 +161,10 @@ impl ::re_types_core::Loggable for AffixFuzzer5 { ) } } + +impl ::re_types_core::Component for AffixFuzzer5 { + #[inline] + fn name() -> ComponentName { + "rerun.testing.components.AffixFuzzer5".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..bbd60a73034c 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer6.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer6.rs @@ -65,13 +65,6 @@ impl std::ops::DerefMut for AffixFuzzer6 { ::re_types_core::macros::impl_into_cow!(AffixFuzzer6); impl ::re_types_core::Loggable for AffixFuzzer6 { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.testing.components.AffixFuzzer6".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] @@ -168,3 +161,10 @@ impl ::re_types_core::Loggable for AffixFuzzer6 { ) } } + +impl ::re_types_core::Component for AffixFuzzer6 { + #[inline] + fn name() -> ComponentName { + "rerun.testing.components.AffixFuzzer6".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..a123532f5ca0 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer7.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer7.rs @@ -44,13 +44,6 @@ impl, T: IntoIterator ::re_types_core::macros::impl_into_cow!(AffixFuzzer7); impl ::re_types_core::Loggable for AffixFuzzer7 { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.testing.components.AffixFuzzer7".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] @@ -178,3 +171,10 @@ impl ::re_types_core::Loggable for AffixFuzzer7 { .with_context("rerun.testing.components.AffixFuzzer7")?) } } + +impl ::re_types_core::Component for AffixFuzzer7 { + #[inline] + fn name() -> ComponentName { + "rerun.testing.components.AffixFuzzer7".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..f0f5efc763e7 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer8.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer8.rs @@ -66,13 +66,6 @@ impl std::ops::DerefMut for AffixFuzzer8 { ::re_types_core::macros::impl_into_cow!(AffixFuzzer8); impl ::re_types_core::Loggable for AffixFuzzer8 { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.testing.components.AffixFuzzer8".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] @@ -139,3 +132,10 @@ impl ::re_types_core::Loggable for AffixFuzzer8 { .with_context("rerun.testing.components.AffixFuzzer8")?) } } + +impl ::re_types_core::Component for AffixFuzzer8 { + #[inline] + fn name() -> ComponentName { + "rerun.testing.components.AffixFuzzer8".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..f22b296b73ce 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer9.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer9.rs @@ -66,13 +66,6 @@ impl std::ops::DerefMut for AffixFuzzer9 { ::re_types_core::macros::impl_into_cow!(AffixFuzzer9); impl ::re_types_core::Loggable for AffixFuzzer9 { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.testing.components.AffixFuzzer9".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] @@ -183,3 +176,10 @@ impl ::re_types_core::Loggable for AffixFuzzer9 { .with_context("rerun.testing.components.AffixFuzzer9")?) } } + +impl ::re_types_core::Component for AffixFuzzer9 { + #[inline] + fn name() -> ComponentName { + "rerun.testing.components.AffixFuzzer9".into() + } +} diff --git a/crates/store/re_types/src/testing/datatypes/affix_fuzzer1.rs b/crates/store/re_types/src/testing/datatypes/affix_fuzzer1.rs index f66851bb850e..cb43031ebae8 100644 --- a/crates/store/re_types/src/testing/datatypes/affix_fuzzer1.rs +++ b/crates/store/re_types/src/testing/datatypes/affix_fuzzer1.rs @@ -62,13 +62,6 @@ impl ::re_types_core::SizeBytes for AffixFuzzer1 { ::re_types_core::macros::impl_into_cow!(AffixFuzzer1); impl ::re_types_core::Loggable for AffixFuzzer1 { - type Name = ::re_types_core::DatatypeName; - - #[inline] - fn name() -> Self::Name { - "rerun.testing.datatypes.AffixFuzzer1".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] diff --git a/crates/store/re_types/src/testing/datatypes/affix_fuzzer2.rs b/crates/store/re_types/src/testing/datatypes/affix_fuzzer2.rs index 61a2e271bf8d..179fa1ea0a6e 100644 --- a/crates/store/re_types/src/testing/datatypes/affix_fuzzer2.rs +++ b/crates/store/re_types/src/testing/datatypes/affix_fuzzer2.rs @@ -50,13 +50,6 @@ impl From for Option { ::re_types_core::macros::impl_into_cow!(AffixFuzzer2); impl ::re_types_core::Loggable for AffixFuzzer2 { - type Name = ::re_types_core::DatatypeName; - - #[inline] - fn name() -> Self::Name { - "rerun.testing.datatypes.AffixFuzzer2".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] diff --git a/crates/store/re_types/src/testing/datatypes/affix_fuzzer20.rs b/crates/store/re_types/src/testing/datatypes/affix_fuzzer20.rs index 3b777489cd90..ceb389037160 100644 --- a/crates/store/re_types/src/testing/datatypes/affix_fuzzer20.rs +++ b/crates/store/re_types/src/testing/datatypes/affix_fuzzer20.rs @@ -40,13 +40,6 @@ impl ::re_types_core::SizeBytes for AffixFuzzer20 { ::re_types_core::macros::impl_into_cow!(AffixFuzzer20); impl ::re_types_core::Loggable for AffixFuzzer20 { - type Name = ::re_types_core::DatatypeName; - - #[inline] - fn name() -> Self::Name { - "rerun.testing.datatypes.AffixFuzzer20".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] diff --git a/crates/store/re_types/src/testing/datatypes/affix_fuzzer21.rs b/crates/store/re_types/src/testing/datatypes/affix_fuzzer21.rs index 9a7aff16acaf..6c16fe95ebeb 100644 --- a/crates/store/re_types/src/testing/datatypes/affix_fuzzer21.rs +++ b/crates/store/re_types/src/testing/datatypes/affix_fuzzer21.rs @@ -40,13 +40,6 @@ impl ::re_types_core::SizeBytes for AffixFuzzer21 { ::re_types_core::macros::impl_into_cow!(AffixFuzzer21); impl ::re_types_core::Loggable for AffixFuzzer21 { - type Name = ::re_types_core::DatatypeName; - - #[inline] - fn name() -> Self::Name { - "rerun.testing.datatypes.AffixFuzzer21".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] diff --git a/crates/store/re_types/src/testing/datatypes/affix_fuzzer22.rs b/crates/store/re_types/src/testing/datatypes/affix_fuzzer22.rs index 755afa29d148..a826fe086900 100644 --- a/crates/store/re_types/src/testing/datatypes/affix_fuzzer22.rs +++ b/crates/store/re_types/src/testing/datatypes/affix_fuzzer22.rs @@ -52,13 +52,6 @@ impl From for [u8; 4usize] { ::re_types_core::macros::impl_into_cow!(AffixFuzzer22); impl ::re_types_core::Loggable for AffixFuzzer22 { - type Name = ::re_types_core::DatatypeName; - - #[inline] - fn name() -> Self::Name { - "rerun.testing.datatypes.AffixFuzzer22".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] diff --git a/crates/store/re_types/src/testing/datatypes/affix_fuzzer3.rs b/crates/store/re_types/src/testing/datatypes/affix_fuzzer3.rs index b2c9efc81961..9bf5051d454e 100644 --- a/crates/store/re_types/src/testing/datatypes/affix_fuzzer3.rs +++ b/crates/store/re_types/src/testing/datatypes/affix_fuzzer3.rs @@ -49,13 +49,6 @@ impl ::re_types_core::SizeBytes for AffixFuzzer3 { ::re_types_core::macros::impl_into_cow!(AffixFuzzer3); impl ::re_types_core::Loggable for AffixFuzzer3 { - type Name = ::re_types_core::DatatypeName; - - #[inline] - fn name() -> Self::Name { - "rerun.testing.datatypes.AffixFuzzer3".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] diff --git a/crates/store/re_types/src/testing/datatypes/affix_fuzzer4.rs b/crates/store/re_types/src/testing/datatypes/affix_fuzzer4.rs index e6bae33698e1..3488a15d4987 100644 --- a/crates/store/re_types/src/testing/datatypes/affix_fuzzer4.rs +++ b/crates/store/re_types/src/testing/datatypes/affix_fuzzer4.rs @@ -44,13 +44,6 @@ impl ::re_types_core::SizeBytes for AffixFuzzer4 { ::re_types_core::macros::impl_into_cow!(AffixFuzzer4); impl ::re_types_core::Loggable for AffixFuzzer4 { - type Name = ::re_types_core::DatatypeName; - - #[inline] - fn name() -> Self::Name { - "rerun.testing.datatypes.AffixFuzzer4".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] diff --git a/crates/store/re_types/src/testing/datatypes/affix_fuzzer5.rs b/crates/store/re_types/src/testing/datatypes/affix_fuzzer5.rs index 32abd888871e..853bdd8f1237 100644 --- a/crates/store/re_types/src/testing/datatypes/affix_fuzzer5.rs +++ b/crates/store/re_types/src/testing/datatypes/affix_fuzzer5.rs @@ -69,13 +69,6 @@ impl std::ops::DerefMut for AffixFuzzer5 { ::re_types_core::macros::impl_into_cow!(AffixFuzzer5); impl ::re_types_core::Loggable for AffixFuzzer5 { - type Name = ::re_types_core::DatatypeName; - - #[inline] - fn name() -> Self::Name { - "rerun.testing.datatypes.AffixFuzzer5".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] diff --git a/crates/store/re_types/src/testing/datatypes/enum_test.rs b/crates/store/re_types/src/testing/datatypes/enum_test.rs index a8417db68617..498aa76e6a12 100644 --- a/crates/store/re_types/src/testing/datatypes/enum_test.rs +++ b/crates/store/re_types/src/testing/datatypes/enum_test.rs @@ -97,13 +97,6 @@ impl std::fmt::Display for EnumTest { ::re_types_core::macros::impl_into_cow!(EnumTest); impl ::re_types_core::Loggable for EnumTest { - type Name = ::re_types_core::DatatypeName; - - #[inline] - fn name() -> Self::Name { - "rerun.testing.datatypes.EnumTest".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] diff --git a/crates/store/re_types/src/testing/datatypes/flattened_scalar.rs b/crates/store/re_types/src/testing/datatypes/flattened_scalar.rs index 1dc3e0241ef0..6cfbd9bd4455 100644 --- a/crates/store/re_types/src/testing/datatypes/flattened_scalar.rs +++ b/crates/store/re_types/src/testing/datatypes/flattened_scalar.rs @@ -52,13 +52,6 @@ impl From for f32 { ::re_types_core::macros::impl_into_cow!(FlattenedScalar); impl ::re_types_core::Loggable for FlattenedScalar { - type Name = ::re_types_core::DatatypeName; - - #[inline] - fn name() -> Self::Name { - "rerun.testing.datatypes.FlattenedScalar".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] diff --git a/crates/store/re_types/src/testing/datatypes/multi_enum.rs b/crates/store/re_types/src/testing/datatypes/multi_enum.rs index 9dd537d8a18e..a6a82f0ec089 100644 --- a/crates/store/re_types/src/testing/datatypes/multi_enum.rs +++ b/crates/store/re_types/src/testing/datatypes/multi_enum.rs @@ -43,13 +43,6 @@ impl ::re_types_core::SizeBytes for MultiEnum { ::re_types_core::macros::impl_into_cow!(MultiEnum); impl ::re_types_core::Loggable for MultiEnum { - type Name = ::re_types_core::DatatypeName; - - #[inline] - fn name() -> Self::Name { - "rerun.testing.datatypes.MultiEnum".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] diff --git a/crates/store/re_types/src/testing/datatypes/primitive_component.rs b/crates/store/re_types/src/testing/datatypes/primitive_component.rs index 12d868d756b0..f9c70c54b957 100644 --- a/crates/store/re_types/src/testing/datatypes/primitive_component.rs +++ b/crates/store/re_types/src/testing/datatypes/primitive_component.rs @@ -51,13 +51,6 @@ impl From for u32 { ::re_types_core::macros::impl_into_cow!(PrimitiveComponent); impl ::re_types_core::Loggable for PrimitiveComponent { - type Name = ::re_types_core::DatatypeName; - - #[inline] - fn name() -> Self::Name { - "rerun.testing.datatypes.PrimitiveComponent".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] diff --git a/crates/store/re_types/src/testing/datatypes/string_component.rs b/crates/store/re_types/src/testing/datatypes/string_component.rs index ce31ba30c756..8d3ceedddf6c 100644 --- a/crates/store/re_types/src/testing/datatypes/string_component.rs +++ b/crates/store/re_types/src/testing/datatypes/string_component.rs @@ -51,13 +51,6 @@ impl From for ::re_types_core::ArrowString { ::re_types_core::macros::impl_into_cow!(StringComponent); impl ::re_types_core::Loggable for StringComponent { - type Name = ::re_types_core::DatatypeName; - - #[inline] - fn name() -> Self::Name { - "rerun.testing.datatypes.StringComponent".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] diff --git a/crates/store/re_types/src/testing/datatypes/valued_enum.rs b/crates/store/re_types/src/testing/datatypes/valued_enum.rs index 66063d1121b2..9c5716906b7d 100644 --- a/crates/store/re_types/src/testing/datatypes/valued_enum.rs +++ b/crates/store/re_types/src/testing/datatypes/valued_enum.rs @@ -79,13 +79,6 @@ impl std::fmt::Display for ValuedEnum { ::re_types_core::macros::impl_into_cow!(ValuedEnum); impl ::re_types_core::Loggable for ValuedEnum { - type Name = ::re_types_core::DatatypeName; - - #[inline] - fn name() -> Self::Name { - "rerun.testing.datatypes.ValuedEnum".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] 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..d9db5c88b910 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 @@ -67,13 +67,6 @@ impl std::ops::DerefMut for AutoLayout { ::re_types_core::macros::impl_into_cow!(AutoLayout); impl ::re_types_core::Loggable for AutoLayout { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.blueprint.components.AutoLayout".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::Bool::arrow_datatype() @@ -103,3 +96,10 @@ impl ::re_types_core::Loggable for AutoLayout { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::Component for AutoLayout { + #[inline] + fn name() -> ComponentName { + "rerun.blueprint.components.AutoLayout".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..c15b548c580e 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 @@ -67,13 +67,6 @@ impl std::ops::DerefMut for AutoSpaceViews { ::re_types_core::macros::impl_into_cow!(AutoSpaceViews); impl ::re_types_core::Loggable for AutoSpaceViews { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.blueprint.components.AutoSpaceViews".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::Bool::arrow_datatype() @@ -103,3 +96,10 @@ impl ::re_types_core::Loggable for AutoSpaceViews { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::Component for AutoSpaceViews { + #[inline] + fn name() -> ComponentName { + "rerun.blueprint.components.AutoSpaceViews".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..bed17da7ed23 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 @@ -80,13 +80,6 @@ impl std::fmt::Display for ContainerKind { ::re_types_core::macros::impl_into_cow!(ContainerKind); impl ::re_types_core::Loggable for ContainerKind { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.blueprint.components.ContainerKind".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] @@ -162,3 +155,10 @@ impl ::re_types_core::Loggable for ContainerKind { .with_context("rerun.blueprint.components.ContainerKind")?) } } + +impl ::re_types_core::Component for ContainerKind { + #[inline] + fn name() -> ComponentName { + "rerun.blueprint.components.ContainerKind".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..37d364c8ede9 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 @@ -69,13 +69,6 @@ impl std::ops::DerefMut for GridColumns { ::re_types_core::macros::impl_into_cow!(GridColumns); impl ::re_types_core::Loggable for GridColumns { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.blueprint.components.GridColumns".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::UInt32::arrow_datatype() @@ -113,3 +106,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::Component for GridColumns { + #[inline] + fn name() -> ComponentName { + "rerun.blueprint.components.GridColumns".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..c04918db3752 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 @@ -67,13 +67,6 @@ impl std::ops::DerefMut for IncludedSpaceView { ::re_types_core::macros::impl_into_cow!(IncludedSpaceView); impl ::re_types_core::Loggable for IncludedSpaceView { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.blueprint.components.IncludedSpaceView".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::Uuid::arrow_datatype() @@ -111,3 +104,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::Component for IncludedSpaceView { + #[inline] + fn name() -> ComponentName { + "rerun.blueprint.components.IncludedSpaceView".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..4c3888fc11fa 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 @@ -70,13 +70,6 @@ impl std::ops::DerefMut for RootContainer { ::re_types_core::macros::impl_into_cow!(RootContainer); impl ::re_types_core::Loggable for RootContainer { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.blueprint.components.RootContainer".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::Uuid::arrow_datatype() @@ -114,3 +107,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::Component for RootContainer { + #[inline] + fn name() -> ComponentName { + "rerun.blueprint.components.RootContainer".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..2af3e05428ac 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 @@ -67,13 +67,6 @@ impl std::ops::DerefMut for SpaceViewMaximized { ::re_types_core::macros::impl_into_cow!(SpaceViewMaximized); impl ::re_types_core::Loggable for SpaceViewMaximized { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.blueprint.components.SpaceViewMaximized".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::Uuid::arrow_datatype() @@ -111,3 +104,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::Component for SpaceViewMaximized { + #[inline] + fn name() -> ComponentName { + "rerun.blueprint.components.SpaceViewMaximized".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..ade47bf4371e 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 @@ -102,13 +102,6 @@ impl std::ops::DerefMut for VisualizerOverrides { ::re_types_core::macros::impl_into_cow!(VisualizerOverrides); impl ::re_types_core::Loggable for VisualizerOverrides { - type Name = ::re_types_core::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.blueprint.components.VisualizerOverrides".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::blueprint::datatypes::Utf8List::arrow_datatype() @@ -138,3 +131,10 @@ impl ::re_types_core::Loggable for VisualizerOverrides { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl ::re_types_core::Component for VisualizerOverrides { + #[inline] + fn name() -> ComponentName { + "rerun.blueprint.components.VisualizerOverrides".into() + } +} diff --git a/crates/store/re_types_blueprint/src/blueprint/datatypes/utf8list.rs b/crates/store/re_types_blueprint/src/blueprint/datatypes/utf8list.rs index d9ceed4d2c9c..c06c964f4539 100644 --- a/crates/store/re_types_blueprint/src/blueprint/datatypes/utf8list.rs +++ b/crates/store/re_types_blueprint/src/blueprint/datatypes/utf8list.rs @@ -52,13 +52,6 @@ impl From for Vec<::re_types_core::ArrowString> { ::re_types_core::macros::impl_into_cow!(Utf8List); impl ::re_types_core::Loggable for Utf8List { - type Name = ::re_types_core::DatatypeName; - - #[inline] - fn name() -> Self::Name { - "rerun.blueprint.datatypes.Utf8List".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] diff --git a/crates/store/re_types_core/src/archetype.rs b/crates/store/re_types_core/src/archetype.rs index 6eef97eb8176..3a54852c030c 100644 --- a/crates/store/re_types_core/src/archetype.rs +++ b/crates/store/re_types_core/src/archetype.rs @@ -215,15 +215,6 @@ impl Default for GenericIndicatorComponent { } impl crate::LoggableBatch for GenericIndicatorComponent { - type Name = ComponentName; - - #[inline] - fn name(&self) -> Self::Name { - format!("{}Indicator", A::name().full_name()) - .replace("archetypes", "components") - .into() - } - #[inline] fn to_arrow(&self) -> SerializationResult> { let datatype = arrow2::datatypes::DataType::Null; @@ -231,7 +222,14 @@ impl crate::LoggableBatch for GenericIndicatorComponent { } } -impl crate::ComponentBatch for GenericIndicatorComponent {} +impl crate::ComponentBatch for GenericIndicatorComponent { + #[inline] + fn name(&self) -> ComponentName { + format!("{}Indicator", A::name().full_name()) + .replace("archetypes", "components") + .into() + } +} /// A generic [indicator component] array of a given length. /// @@ -248,13 +246,6 @@ pub struct GenericIndicatorComponentArray { } impl crate::LoggableBatch for GenericIndicatorComponentArray { - type Name = ComponentName; - - #[inline] - fn name(&self) -> Self::Name { - GenericIndicatorComponent::::DEFAULT.name() - } - #[inline] fn to_arrow(&self) -> SerializationResult> { let datatype = arrow2::datatypes::DataType::Null; @@ -262,7 +253,12 @@ impl crate::LoggableBatch for GenericIndicatorComponentArray { } } -impl crate::ComponentBatch for GenericIndicatorComponentArray {} +impl crate::ComponentBatch for GenericIndicatorComponentArray { + #[inline] + fn name(&self) -> ComponentName { + GenericIndicatorComponent::::DEFAULT.name() + } +} // --- @@ -285,13 +281,6 @@ impl NamedIndicatorComponent { } impl crate::LoggableBatch for NamedIndicatorComponent { - type Name = ComponentName; - - #[inline] - fn name(&self) -> Self::Name { - self.0 - } - #[inline] fn to_arrow(&self) -> SerializationResult> { let datatype = arrow2::datatypes::DataType::Null; @@ -299,4 +288,9 @@ impl crate::LoggableBatch for NamedIndicatorComponent { } } -impl crate::ComponentBatch for NamedIndicatorComponent {} +impl crate::ComponentBatch for NamedIndicatorComponent { + #[inline] + fn name(&self) -> ComponentName { + self.0 + } +} 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..351c56738587 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 @@ -69,13 +69,6 @@ impl std::ops::DerefMut for ClearIsRecursive { crate::macros::impl_into_cow!(ClearIsRecursive); impl crate::Loggable for ClearIsRecursive { - type Name = crate::ComponentName; - - #[inline] - fn name() -> Self::Name { - "rerun.components.ClearIsRecursive".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { crate::datatypes::Bool::arrow_datatype() @@ -105,3 +98,10 @@ impl crate::Loggable for ClearIsRecursive { .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } + +impl crate::Component for ClearIsRecursive { + #[inline] + fn name() -> ComponentName { + "rerun.components.ClearIsRecursive".into() + } +} diff --git a/crates/store/re_types_core/src/datatypes/bool.rs b/crates/store/re_types_core/src/datatypes/bool.rs index 029e3413a108..d833f7fc4c83 100644 --- a/crates/store/re_types_core/src/datatypes/bool.rs +++ b/crates/store/re_types_core/src/datatypes/bool.rs @@ -52,13 +52,6 @@ impl From for bool { crate::macros::impl_into_cow!(Bool); impl crate::Loggable for Bool { - type Name = crate::DatatypeName; - - #[inline] - fn name() -> Self::Name { - "rerun.datatypes.Bool".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] diff --git a/crates/store/re_types_core/src/datatypes/entity_path.rs b/crates/store/re_types_core/src/datatypes/entity_path.rs index c6b779014ea6..ee68542b15f6 100644 --- a/crates/store/re_types_core/src/datatypes/entity_path.rs +++ b/crates/store/re_types_core/src/datatypes/entity_path.rs @@ -52,13 +52,6 @@ impl From for crate::ArrowString { crate::macros::impl_into_cow!(EntityPath); impl crate::Loggable for EntityPath { - type Name = crate::DatatypeName; - - #[inline] - fn name() -> Self::Name { - "rerun.datatypes.EntityPath".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] diff --git a/crates/store/re_types_core/src/datatypes/float32.rs b/crates/store/re_types_core/src/datatypes/float32.rs index 5f8cedfda6c0..0917fa5c4f3e 100644 --- a/crates/store/re_types_core/src/datatypes/float32.rs +++ b/crates/store/re_types_core/src/datatypes/float32.rs @@ -52,13 +52,6 @@ impl From for f32 { crate::macros::impl_into_cow!(Float32); impl crate::Loggable for Float32 { - type Name = crate::DatatypeName; - - #[inline] - fn name() -> Self::Name { - "rerun.datatypes.Float32".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] diff --git a/crates/store/re_types_core/src/datatypes/float64.rs b/crates/store/re_types_core/src/datatypes/float64.rs index 1cd11e674d81..4ac1e0a0ac36 100644 --- a/crates/store/re_types_core/src/datatypes/float64.rs +++ b/crates/store/re_types_core/src/datatypes/float64.rs @@ -52,13 +52,6 @@ impl From for f64 { crate::macros::impl_into_cow!(Float64); impl crate::Loggable for Float64 { - type Name = crate::DatatypeName; - - #[inline] - fn name() -> Self::Name { - "rerun.datatypes.Float64".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] diff --git a/crates/store/re_types_core/src/datatypes/time_int.rs b/crates/store/re_types_core/src/datatypes/time_int.rs index f08f1ca05067..64e0138f5b56 100644 --- a/crates/store/re_types_core/src/datatypes/time_int.rs +++ b/crates/store/re_types_core/src/datatypes/time_int.rs @@ -51,13 +51,6 @@ impl From for i64 { crate::macros::impl_into_cow!(TimeInt); impl crate::Loggable for TimeInt { - type Name = crate::DatatypeName; - - #[inline] - fn name() -> Self::Name { - "rerun.datatypes.TimeInt".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] diff --git a/crates/store/re_types_core/src/datatypes/time_range.rs b/crates/store/re_types_core/src/datatypes/time_range.rs index 3af8124786d5..17618f772479 100644 --- a/crates/store/re_types_core/src/datatypes/time_range.rs +++ b/crates/store/re_types_core/src/datatypes/time_range.rs @@ -44,13 +44,6 @@ impl crate::SizeBytes for TimeRange { crate::macros::impl_into_cow!(TimeRange); impl crate::Loggable for TimeRange { - type Name = crate::DatatypeName; - - #[inline] - fn name() -> Self::Name { - "rerun.datatypes.TimeRange".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] diff --git a/crates/store/re_types_core/src/datatypes/time_range_boundary.rs b/crates/store/re_types_core/src/datatypes/time_range_boundary.rs index 853c7b88236c..c8d110cfc4d6 100644 --- a/crates/store/re_types_core/src/datatypes/time_range_boundary.rs +++ b/crates/store/re_types_core/src/datatypes/time_range_boundary.rs @@ -51,13 +51,6 @@ impl crate::SizeBytes for TimeRangeBoundary { crate::macros::impl_into_cow!(TimeRangeBoundary); impl crate::Loggable for TimeRangeBoundary { - type Name = crate::DatatypeName; - - #[inline] - fn name() -> Self::Name { - "rerun.datatypes.TimeRangeBoundary".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] diff --git a/crates/store/re_types_core/src/datatypes/uint16.rs b/crates/store/re_types_core/src/datatypes/uint16.rs index 37647de4c434..a89ce8ec4717 100644 --- a/crates/store/re_types_core/src/datatypes/uint16.rs +++ b/crates/store/re_types_core/src/datatypes/uint16.rs @@ -51,13 +51,6 @@ impl From for u16 { crate::macros::impl_into_cow!(UInt16); impl crate::Loggable for UInt16 { - type Name = crate::DatatypeName; - - #[inline] - fn name() -> Self::Name { - "rerun.datatypes.UInt16".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] diff --git a/crates/store/re_types_core/src/datatypes/uint32.rs b/crates/store/re_types_core/src/datatypes/uint32.rs index a73745327732..5273ce4dd9a8 100644 --- a/crates/store/re_types_core/src/datatypes/uint32.rs +++ b/crates/store/re_types_core/src/datatypes/uint32.rs @@ -51,13 +51,6 @@ impl From for u32 { crate::macros::impl_into_cow!(UInt32); impl crate::Loggable for UInt32 { - type Name = crate::DatatypeName; - - #[inline] - fn name() -> Self::Name { - "rerun.datatypes.UInt32".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] diff --git a/crates/store/re_types_core/src/datatypes/uint64.rs b/crates/store/re_types_core/src/datatypes/uint64.rs index 79ad2799a9bb..89d3f2e926fe 100644 --- a/crates/store/re_types_core/src/datatypes/uint64.rs +++ b/crates/store/re_types_core/src/datatypes/uint64.rs @@ -51,13 +51,6 @@ impl From for u64 { crate::macros::impl_into_cow!(UInt64); impl crate::Loggable for UInt64 { - type Name = crate::DatatypeName; - - #[inline] - fn name() -> Self::Name { - "rerun.datatypes.UInt64".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] diff --git a/crates/store/re_types_core/src/datatypes/utf8.rs b/crates/store/re_types_core/src/datatypes/utf8.rs index cb532f7abefb..b11a47bde2ed 100644 --- a/crates/store/re_types_core/src/datatypes/utf8.rs +++ b/crates/store/re_types_core/src/datatypes/utf8.rs @@ -52,13 +52,6 @@ impl From for crate::ArrowString { crate::macros::impl_into_cow!(Utf8); impl crate::Loggable for Utf8 { - type Name = crate::DatatypeName; - - #[inline] - fn name() -> Self::Name { - "rerun.datatypes.Utf8".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] diff --git a/crates/store/re_types_core/src/datatypes/visible_time_range.rs b/crates/store/re_types_core/src/datatypes/visible_time_range.rs index 224b92c22e47..ba2522a264a3 100644 --- a/crates/store/re_types_core/src/datatypes/visible_time_range.rs +++ b/crates/store/re_types_core/src/datatypes/visible_time_range.rs @@ -43,13 +43,6 @@ impl crate::SizeBytes for VisibleTimeRange { crate::macros::impl_into_cow!(VisibleTimeRange); impl crate::Loggable for VisibleTimeRange { - type Name = crate::DatatypeName; - - #[inline] - fn name() -> Self::Name { - "rerun.datatypes.VisibleTimeRange".into() - } - #[inline] fn arrow_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] diff --git a/crates/store/re_types_core/src/loggable.rs b/crates/store/re_types_core/src/loggable.rs index 7fc1c48fada6..d18c09ed3c72 100644 --- a/crates/store/re_types_core/src/loggable.rs +++ b/crates/store/re_types_core/src/loggable.rs @@ -1,6 +1,4 @@ -use crate::{ - result::_Backtrace, DeserializationResult, ResultExt as _, SerializationResult, SizeBytes, -}; +use crate::{result::_Backtrace, DeserializationResult, SerializationResult, SizeBytes}; #[allow(unused_imports)] // used in docstrings use crate::{Archetype, ComponentBatch, LoggableBatch}; @@ -12,18 +10,12 @@ use crate::{Archetype, ComponentBatch, LoggableBatch}; /// Internally, Arrow, and by extension Rerun, only deal with arrays of data. /// We refer to individual entries in these arrays as instances. /// -/// [`Component`] is a specialization of the [`Loggable`] trait where [`Loggable::Name`] == -/// [`ComponentName`]. +/// A [`Loggable`] has no semantics (such as a name, for example): it's just data. +/// If you want to encode semantics, then you're looking for a [`Component`], which extends [`Loggable`]. /// -/// Implementing the [`Loggable`] trait (and by extension [`Component`]) automatically derives the -/// [`LoggableBatch`] implementation (and by extension [`ComponentBatch`]), which makes it possible to -/// work with lists' worth of data in a generic fashion. +/// Implementing the [`Loggable`] trait automatically derives the [`LoggableBatch`] implementation, +/// which makes it possible to work with lists' worth of data in a generic fashion. pub trait Loggable: 'static + Send + Sync + Clone + Sized + SizeBytes { - type Name: std::fmt::Display; - - /// The fully-qualified name of this loggable, e.g. `rerun.datatypes.Vec2D`. - fn name() -> Self::Name; - /// The underlying [`arrow2::datatypes::DataType`], excluding datatype extensions. fn arrow_datatype() -> arrow2::datatypes::DataType; @@ -72,7 +64,6 @@ pub trait Loggable: 'static + Send + Sync + Clone + Sized + SizeBytes { }) }) .collect::>>() - .with_context(Self::name().to_string()) } /// Given an Arrow array, deserializes it into a collection of optional [`Loggable`]s. @@ -81,7 +72,7 @@ pub trait Loggable: 'static + Send + Sync + Clone + Sized + SizeBytes { ) -> DeserializationResult>> { _ = data; // NOTE: do this here to avoid breaking users' autocomplete snippets Err(crate::DeserializationError::NotImplemented { - fqname: Self::name().to_string(), + fqname: "".to_owned(), backtrace: _Backtrace::new_unresolved(), }) } @@ -89,11 +80,12 @@ pub trait Loggable: 'static + Send + Sync + Clone + Sized + SizeBytes { /// A [`Component`] describes semantic data that can be used by any number of [`Archetype`]s. /// -/// Any [`Loggable`] with a [`Loggable::Name`] set to [`ComponentName`] automatically implements -/// [`Component`]. -pub trait Component: Loggable {} - -impl> Component for L {} +/// Implementing the [`Component`] trait automatically derives the [`ComponentBatch`] implementation, +/// which makes it possible to work with lists' worth of data in a generic fashion. +pub trait Component: Loggable { + /// The fully-qualified name of this component, e.g. `rerun.components.Position2D`. + fn name() -> ComponentName; +} // --- diff --git a/crates/store/re_types_core/src/loggable_batch.rs b/crates/store/re_types_core/src/loggable_batch.rs index 0ad382f06ad4..b51f45807d23 100644 --- a/crates/store/re_types_core/src/loggable_batch.rs +++ b/crates/store/re_types_core/src/loggable_batch.rs @@ -17,24 +17,19 @@ use crate::Archetype; /// You should almost never need to implement [`LoggableBatch`] manually, as it is already /// blanket implemented for most common use cases (arrays/vectors/slices of loggables, etc). pub trait LoggableBatch { - type Name; - // NOTE: It'd be tempting to have the following associated type, but that'd be // counterproductive, the whole point of this is to allow for heterogeneous collections! // type Loggable: Loggable; - /// The fully-qualified name of this batch, e.g. `rerun.datatypes.Vec2D`. - fn name(&self) -> Self::Name; - /// Serializes the batch into an Arrow array. fn to_arrow(&self) -> SerializationResult>; } /// A [`ComponentBatch`] represents an array's worth of [`Component`] instances. -/// -/// Any [`LoggableBatch`] with a [`Loggable::Name`] set to [`ComponentName`] automatically -/// implements [`ComponentBatch`]. -pub trait ComponentBatch: LoggableBatch { +pub trait ComponentBatch: LoggableBatch { + /// The fully-qualified name of this component batch, e.g. `rerun.components.Position2D`. + fn name(&self) -> ComponentName; + /// Serializes the batch into an Arrow list array with a single component per list. fn to_arrow_list_array(&self) -> SerializationResult> { let array = self.to_arrow()?; @@ -92,85 +87,69 @@ impl<'a> std::ops::Deref for MaybeOwnedComponentBatch<'a> { } impl<'a> LoggableBatch for MaybeOwnedComponentBatch<'a> { - type Name = ComponentName; - - #[inline] - fn name(&self) -> Self::Name { - self.as_ref().name() - } - #[inline] fn to_arrow(&self) -> SerializationResult> { self.as_ref().to_arrow() } } -impl<'a> ComponentBatch for MaybeOwnedComponentBatch<'a> {} +impl<'a> ComponentBatch for MaybeOwnedComponentBatch<'a> { + #[inline] + fn name(&self) -> ComponentName { + self.as_ref().name() + } +} // --- Unary --- impl LoggableBatch for L { - type Name = L::Name; - - #[inline] - fn name(&self) -> Self::Name { - L::name() - } - #[inline] fn to_arrow(&self) -> SerializationResult> { L::to_arrow([std::borrow::Cow::Borrowed(self)]) } } -impl ComponentBatch for C {} +impl ComponentBatch for C { + fn name(&self) -> ComponentName { + C::name() + } +} // --- Unary Option --- impl LoggableBatch for Option { - type Name = L::Name; - - #[inline] - fn name(&self) -> Self::Name { - L::name() - } - #[inline] fn to_arrow(&self) -> SerializationResult> { L::to_arrow(self.iter().map(|v| std::borrow::Cow::Borrowed(v))) } } -impl ComponentBatch for Option {} +impl ComponentBatch for Option { + #[inline] + fn name(&self) -> ComponentName { + C::name() + } +} // --- Vec --- impl LoggableBatch for Vec { - type Name = L::Name; - - #[inline] - fn name(&self) -> Self::Name { - L::name() - } - #[inline] fn to_arrow(&self) -> SerializationResult> { L::to_arrow(self.iter().map(|v| std::borrow::Cow::Borrowed(v))) } } -impl ComponentBatch for Vec {} +impl ComponentBatch for Vec { + #[inline] + fn name(&self) -> ComponentName { + C::name() + } +} // --- Vec