From 5a7c4ec29bc77c604097eade38375bd0783fcbb3 Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Thu, 21 Nov 2024 16:22:44 +0100 Subject: [PATCH 1/3] Revert "Use gh-pages hosted rust doc while doc.rs docs are broken" (#8195) * Reverts rerun-io/rerun#8166 --- BUILD.md | 2 +- CHANGELOG.md | 2 +- README.md | 2 +- .../re_types_builder/src/codegen/docs/mod.rs | 4 +-- crates/top/rerun-cli/README.md | 4 +-- crates/top/rerun/README.md | 6 ++--- docs/content/concepts/annotation-context.md | 4 +-- docs/content/concepts/app-model.md | 4 +-- docs/content/concepts/apps-and-recordings.md | 2 +- .../getting-started/data-in/open-any-file.md | 2 +- docs/content/getting-started/data-in/rust.md | 26 +++++++++++-------- docs/content/howto/logging/custom-data.md | 2 +- docs/content/howto/logging/send-columns.md | 2 +- .../howto/visualization/reuse-blueprints.md | 2 +- .../reference/data-loaders/overview.md | 2 +- docs/content/reference/dataframes.md | 6 ++--- .../reference/migration/migration-0-9.md | 14 +++++----- docs/content/reference/rust.md | 2 +- docs/content/reference/sdk/operating-modes.md | 12 ++++----- .../types/archetypes/annotation_context.md | 2 +- .../reference/types/archetypes/arrows2d.md | 2 +- .../reference/types/archetypes/arrows3d.md | 2 +- .../reference/types/archetypes/asset3d.md | 2 +- .../reference/types/archetypes/asset_video.md | 2 +- .../reference/types/archetypes/bar_chart.md | 2 +- .../reference/types/archetypes/boxes2d.md | 2 +- .../reference/types/archetypes/boxes3d.md | 2 +- .../reference/types/archetypes/capsules3d.md | 2 +- .../reference/types/archetypes/clear.md | 2 +- .../reference/types/archetypes/depth_image.md | 2 +- .../types/archetypes/disconnected_space.md | 2 +- .../types/archetypes/ellipsoids3d.md | 2 +- .../types/archetypes/encoded_image.md | 2 +- .../types/archetypes/geo_line_strings.md | 2 +- .../reference/types/archetypes/geo_points.md | 2 +- .../reference/types/archetypes/image.md | 2 +- .../types/archetypes/instance_poses3d.md | 2 +- .../types/archetypes/line_strips2d.md | 2 +- .../types/archetypes/line_strips3d.md | 2 +- .../reference/types/archetypes/mesh3d.md | 2 +- .../reference/types/archetypes/pinhole.md | 2 +- .../reference/types/archetypes/points2d.md | 2 +- .../reference/types/archetypes/points3d.md | 2 +- .../reference/types/archetypes/scalar.md | 2 +- .../types/archetypes/segmentation_image.md | 2 +- .../reference/types/archetypes/series_line.md | 2 +- .../types/archetypes/series_point.md | 2 +- .../reference/types/archetypes/tensor.md | 2 +- .../types/archetypes/text_document.md | 2 +- .../reference/types/archetypes/text_log.md | 2 +- .../reference/types/archetypes/transform3d.md | 2 +- .../types/archetypes/video_frame_reference.md | 2 +- .../types/archetypes/view_coordinates.md | 2 +- .../types/components/aggregation_policy.md | 2 +- .../types/components/albedo_factor.md | 2 +- .../types/components/annotation_context.md | 2 +- .../reference/types/components/axis_length.md | 2 +- .../reference/types/components/blob.md | 2 +- .../reference/types/components/class_id.md | 2 +- .../types/components/clear_is_recursive.md | 2 +- .../reference/types/components/color.md | 2 +- .../reference/types/components/colormap.md | 2 +- .../reference/types/components/depth_meter.md | 2 +- .../types/components/disconnected_space.md | 2 +- .../reference/types/components/draw_order.md | 2 +- .../reference/types/components/entity_path.md | 2 +- .../reference/types/components/fill_mode.md | 2 +- .../reference/types/components/fill_ratio.md | 2 +- .../types/components/gamma_correction.md | 2 +- .../types/components/geo_line_string.md | 2 +- .../reference/types/components/half_size2d.md | 2 +- .../reference/types/components/half_size3d.md | 2 +- .../types/components/image_buffer.md | 2 +- .../types/components/image_format.md | 2 +- .../types/components/image_plane_distance.md | 2 +- .../reference/types/components/keypoint_id.md | 2 +- .../reference/types/components/lat_lon.md | 2 +- .../reference/types/components/length.md | 2 +- .../types/components/line_strip2d.md | 2 +- .../types/components/line_strip3d.md | 2 +- .../types/components/magnification_filter.md | 2 +- .../types/components/marker_shape.md | 2 +- .../reference/types/components/marker_size.md | 2 +- .../reference/types/components/media_type.md | 2 +- .../reference/types/components/name.md | 2 +- .../reference/types/components/opacity.md | 2 +- .../types/components/pinhole_projection.md | 2 +- .../components/pose_rotation_axis_angle.md | 2 +- .../types/components/pose_rotation_quat.md | 2 +- .../types/components/pose_scale3d.md | 2 +- .../types/components/pose_transform_mat3x3.md | 2 +- .../types/components/pose_translation3d.md | 2 +- .../reference/types/components/position2d.md | 2 +- .../reference/types/components/position3d.md | 2 +- .../reference/types/components/radius.md | 2 +- .../reference/types/components/range1d.md | 2 +- .../reference/types/components/resolution.md | 2 +- .../types/components/rotation_axis_angle.md | 2 +- .../types/components/rotation_quat.md | 2 +- .../reference/types/components/scalar.md | 2 +- .../reference/types/components/scale3d.md | 2 +- .../reference/types/components/show_labels.md | 2 +- .../types/components/stroke_width.md | 2 +- .../reference/types/components/tensor_data.md | 2 +- .../tensor_dimension_index_selection.md | 2 +- .../components/tensor_height_dimension.md | 2 +- .../components/tensor_width_dimension.md | 2 +- .../reference/types/components/texcoord2d.md | 2 +- .../reference/types/components/text.md | 2 +- .../types/components/text_log_level.md | 2 +- .../types/components/transform_mat3x3.md | 2 +- .../types/components/transform_relation.md | 2 +- .../types/components/translation3d.md | 2 +- .../types/components/triangle_indices.md | 2 +- .../reference/types/components/value_range.md | 2 +- .../reference/types/components/vector2d.md | 2 +- .../reference/types/components/vector3d.md | 2 +- .../types/components/video_timestamp.md | 2 +- .../types/components/view_coordinates.md | 2 +- .../reference/types/datatypes/angle.md | 2 +- .../types/datatypes/annotation_info.md | 2 +- .../content/reference/types/datatypes/blob.md | 2 +- .../content/reference/types/datatypes/bool.md | 2 +- .../types/datatypes/channel_datatype.md | 2 +- .../types/datatypes/class_description.md | 2 +- .../datatypes/class_description_map_elem.md | 2 +- .../reference/types/datatypes/class_id.md | 2 +- .../reference/types/datatypes/color_model.md | 2 +- .../reference/types/datatypes/dvec2d.md | 2 +- .../reference/types/datatypes/entity_path.md | 2 +- .../reference/types/datatypes/float32.md | 2 +- .../reference/types/datatypes/float64.md | 2 +- .../reference/types/datatypes/image_format.md | 2 +- .../reference/types/datatypes/keypoint_id.md | 2 +- .../types/datatypes/keypoint_pair.md | 2 +- .../reference/types/datatypes/mat3x3.md | 2 +- .../reference/types/datatypes/mat4x4.md | 2 +- .../reference/types/datatypes/pixel_format.md | 2 +- .../reference/types/datatypes/quaternion.md | 2 +- .../reference/types/datatypes/range1d.md | 2 +- .../reference/types/datatypes/range2d.md | 2 +- .../reference/types/datatypes/rgba32.md | 2 +- .../types/datatypes/rotation_axis_angle.md | 2 +- .../types/datatypes/tensor_buffer.md | 2 +- .../reference/types/datatypes/tensor_data.md | 2 +- .../types/datatypes/tensor_dimension.md | 2 +- .../tensor_dimension_index_selection.md | 2 +- .../datatypes/tensor_dimension_selection.md | 2 +- .../reference/types/datatypes/time_int.md | 2 +- .../reference/types/datatypes/time_range.md | 2 +- .../types/datatypes/time_range_boundary.md | 2 +- .../reference/types/datatypes/uint16.md | 2 +- .../reference/types/datatypes/uint32.md | 2 +- .../reference/types/datatypes/uint64.md | 2 +- .../content/reference/types/datatypes/utf8.md | 2 +- .../content/reference/types/datatypes/uuid.md | 2 +- .../reference/types/datatypes/uvec2d.md | 2 +- .../reference/types/datatypes/uvec3d.md | 2 +- .../reference/types/datatypes/uvec4d.md | 2 +- .../reference/types/datatypes/vec2d.md | 2 +- .../reference/types/datatypes/vec3d.md | 2 +- .../reference/types/datatypes/vec4d.md | 2 +- .../types/datatypes/video_timestamp.md | 2 +- .../types/datatypes/view_coordinates.md | 2 +- .../types/datatypes/visible_time_range.md | 2 +- examples/rust/external_data_loader/README.md | 2 +- examples/rust/revy/README.md | 2 +- 167 files changed, 197 insertions(+), 199 deletions(-) diff --git a/BUILD.md b/BUILD.md index d690a4d9bc72..8e22c44d6c3c 100644 --- a/BUILD.md +++ b/BUILD.md @@ -112,7 +112,7 @@ High-level documentation for Rerun can be found at [http://rerun.io/docs](http:/ - 🌊 [C++ API docs](https://ref.rerun.io/docs/cpp) are built with `doxygen` and hosted on GitHub. Use `pixi run -e cpp cpp-docs` to build them locally. For details on the C++ doc-system, see [Writing Docs](rerun_cpp/docs/writing_docs.md). - 🐍 [Python API docs](https://ref.rerun.io/docs/python) are built via `mkdocs` and hosted on GitHub. For details on the Python doc-system, see [Writing Docs](rerun_py/docs/writing_docs.md). -- 🦀 [Rust API docs](https://ref.rerun.io/docs/rust/stable) are hosted on . You can build them locally with: `cargo doc --all-features --no-deps --open`. +- 🦀 [Rust API docs](https://docs.rs/rerun/) are hosted on . You can build them locally with: `cargo doc --all-features --no-deps --open`. ## Building for the web diff --git a/CHANGELOG.md b/CHANGELOG.md index cd532229dd54..1894237c62e9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -318,7 +318,7 @@ This can both greatly simplify logging code and drastically improve performance API documentation: * 🐍 [Python `send_columns` docs](https://ref.rerun.io/docs/python/stable/common/columnar_api/#rerun.send_columns) * 🌊 [C++ `send_columns` docs](https://ref.rerun.io/docs/cpp/stable/classrerun_1_1RecordingStream.html#ad17571d51185ce2fc2fc2f5c3070ad65) -* 🦀 [Rust `send_columns` docs](https://ref.rerun.io/docs/rust/stable/rerun/struct.RecordingStream.html#method.send_columns) +* 🦀 [Rust `send_columns` docs](https://docs.rs/rerun/latest/rerun/struct.RecordingStream.html#method.send_columns) API usage examples:
diff --git a/README.md b/README.md index 1e75c2f789ed..5ae94c682b7b 100644 --- a/README.md +++ b/README.md @@ -73,7 +73,7 @@ You should now be able to run `rerun --help` in any terminal. - ⚙️ [Examples](http://rerun.io/examples) - 🌊 [C++ API docs](https://ref.rerun.io/docs/cpp) - 🐍 [Python API docs](https://ref.rerun.io/docs/python) -- 🦀 [Rust API docs](https://ref.rerun.io/docs/rust/stable) +- 🦀 [Rust API docs](https://docs.rs/rerun/) - ⁉️ [Troubleshooting](https://www.rerun.io/docs/getting-started/troubleshooting) diff --git a/crates/build/re_types_builder/src/codegen/docs/mod.rs b/crates/build/re_types_builder/src/codegen/docs/mod.rs index e7e4795095a6..22123d734614 100644 --- a/crates/build/re_types_builder/src/codegen/docs/mod.rs +++ b/crates/build/re_types_builder/src/codegen/docs/mod.rs @@ -381,9 +381,7 @@ fn list_links(is_unreleased: bool, page: &mut String, object: &Object) { putln!( page, - // TODO(#8165): docs.rs/rerun is broken right now - // " * 🦀 [Rust API docs for `{}`](https://docs.rs/rerun/latest/rerun/{}/{}.{}.html{speculative_marker})", - " * 🦀 [Rust API docs for `{}`](https://ref.rerun.io/docs/rust/stable/rerun/{}/{}.{}.html{speculative_marker})", + " * 🦀 [Rust API docs for `{}`](https://docs.rs/rerun/latest/rerun/{}/{}.{}.html{speculative_marker})", object.name, object.kind.plural_snake_case(), if object.is_struct() { "struct" } else { "enum" }, diff --git a/crates/top/rerun-cli/README.md b/crates/top/rerun-cli/README.md index 5b0a4013794f..77eda956da93 100644 --- a/crates/top/rerun-cli/README.md +++ b/crates/top/rerun-cli/README.md @@ -25,9 +25,7 @@ Run `rerun --help` for more. ## What is Rerun? - [Examples](https://github.com/rerun-io/rerun/tree/latest/examples/rust) - [High-level docs](http://rerun.io/docs) - - -- [Rust API docs](https://ref.rerun.io/docs/rust/stable/rerun/) +- [Rust API docs](https://docs.rs/rerun/) - [Troubleshooting](https://www.rerun.io/docs/getting-started/troubleshooting) diff --git a/crates/top/rerun/README.md b/crates/top/rerun/README.md index cddfb83967cf..3882f1f038e5 100644 --- a/crates/top/rerun/README.md +++ b/crates/top/rerun/README.md @@ -6,7 +6,7 @@

Latest version - Documentation + Documentation MIT Apache Rerun Discord @@ -32,9 +32,7 @@ rec.log("image", &rerun::archetypes::Image::new(image))?; ## Getting started - [Examples](https://github.com/rerun-io/rerun/tree/latest/examples/rust) - [High-level docs](http://rerun.io/docs) - - -- [Rust API docs](https://ref.rerun.io/docs/rust/stable/rerun/) +- [Rust API docs](https://docs.rs/rerun/) - [Troubleshooting](https://www.rerun.io/docs/getting-started/troubleshooting) ## Library diff --git a/docs/content/concepts/annotation-context.md b/docs/content/concepts/annotation-context.md index 8fc00f0d0bc1..cd89d4cee311 100644 --- a/docs/content/concepts/annotation-context.md +++ b/docs/content/concepts/annotation-context.md @@ -54,7 +54,7 @@ The Annotation Context is defined as a list of Class Descriptions that define ho Annotation contexts are logged with: * Python: 🐍[`rr.AnnotationContext`](https://ref.rerun.io/docs/python/stable/common/archetypes/#rerun.archetypes.AnnotationContext) -* Rust: 🦀[`rerun::AnnotationContext`](https://ref.rerun.io/docs/rust/stable/rerun/archetypes/struct.AnnotationContext.html#) +* Rust: 🦀[`rerun::AnnotationContext`](https://docs.rs/rerun/latest/rerun/archetypes/struct.AnnotationContext.html#) snippet: tutorials/annotation-context @@ -72,7 +72,7 @@ By default, Rerun will automatically assign colors to each class id, but by defi you can explicitly determine the color of each class. * Python: [`rr.SegmentationImage`](https://ref.rerun.io/docs/python/stable/common/archetypes/#rerun.archetypes.SegmentationImage) -* Rust: Log a [`rerun::SegmentationImage`](https://ref.rerun.io/docs/rust/stable/rerun/archetypes/struct.SegmentationImage.html) +* Rust: Log a [`rerun::SegmentationImage`](https://docs.rs/rerun/latest/rerun/archetypes/struct.SegmentationImage.html) diff --git a/docs/content/concepts/app-model.md b/docs/content/concepts/app-model.md index 1666e493939e..4029e722d385 100644 --- a/docs/content/concepts/app-model.md +++ b/docs/content/concepts/app-model.md @@ -84,7 +84,7 @@ Dataflow: Reference: * [SDK operating modes: `connect`](../reference/sdk/operating-modes.md#connect) * [🐍 Python `connect`](https://ref.rerun.io/docs/python/0.19.0/common/initialization_functions/#rerun.connect) -* [🦀 Rust `connect`](https://ref.rerun.io/docs/rust/stable/rerun/struct.RecordingStreamBuilder.html#method.connect) +* [🦀 Rust `connect`](https://docs.rs/rerun/latest/rerun/struct.RecordingStreamBuilder.html#method.connect) * [🌊 C++ `connect`](https://ref.rerun.io/docs/cpp/stable/classrerun_1_1RecordingStream.html#aef3377ffaa2441b906d2bac94dd8fc64) ### Asynchronous workflow @@ -125,7 +125,7 @@ Dataflow: Reference: * [SDK operating modes: `save`](../reference/sdk/operating-modes.md#save) * [🐍 Python `save`](https://ref.rerun.io/docs/python/0.19.0/common/initialization_functions/#rerun.save) -* [🦀 Rust `save`](https://ref.rerun.io/docs/rust/stable/rerun/struct.RecordingStreamBuilder.html#method.save) +* [🦀 Rust `save`](https://docs.rs/rerun/latest/rerun/struct.RecordingStreamBuilder.html#method.save) * [🌊 C++ `save`](https://ref.rerun.io/docs/cpp/stable/classrerun_1_1RecordingStream.html#a555a7940a076c93d951de5b139d14918) + +The easiest way to log geometric primitives is the use the [`RecordingStream::log`](https://docs.rs/rerun/latest/rerun/struct.RecordingStream.html#method.log) method with one of the built-in archetype class, such as [`Points3D`](https://docs.rs/rerun/latest/0.9.0-alpha.10/struct.Points3D.html). Archetypes take care of building batches of components that are recognized and correctly displayed by the Rerun viewer. ### Components @@ -131,9 +133,11 @@ cases, it's possible to add custom components to archetypes, or even log entirel archetypes altogether. For more information on how the Rerun data model works, refer to our section on [Entities and Components](../../concepts/entity-component.md). -Notably, the [`RecordingStream::log`](https://ref.rerun.io/docs/rust/stable/rerun/struct.RecordingStream.html#method.log) method +Notably, the [`RecordingStream::log`](https://docs.rs/rerun/latest/rerun/struct.RecordingStream.html#method.log) method + + -will handle any data type that implements the [`AsComponents`](https://ref.rerun.io/docs/rust/stable/rerun/trait.AsComponents.html) trait, making it easy to add your own data. +will handle any data type that implements the [`AsComponents`](https://docs.rs/rerun/latest/rerun/trait.AsComponents.html) trait, making it easy to add your own data. For more information on how to supply your own components see [Use custom data](../../howto/extend/custom-data.md). ### Entities & hierarchies @@ -261,7 +265,7 @@ for i in 0..400 { } ``` -First we use [`RecordingStream::set_time_seconds`](https://ref.rerun.io/docs/rust/stable/rerun/struct.RecordingStream.html#method.set_time_seconds) to declare our own custom `Timeline` and set the current timestamp. +First we use [`RecordingStream::set_time_seconds`](https://docs.rs/rerun/latest/rerun/struct.RecordingStream.html#method.set_time_seconds) to declare our own custom `Timeline` and set the current timestamp. You can add as many timelines and timestamps as you want when logging data. ⚠️ If you run this code as is, the result will be.. surprising: the beads are animating as expected, but everything we've logged until that point is gone! ⚠️ @@ -330,7 +334,7 @@ Sometimes, sending the data over the network is not an option. Maybe you'd like Rerun has you covered: -- Use [`RecordingStream::save`](https://ref.rerun.io/docs/rust/stable/rerun/struct.RecordingStream.html#method.save) to stream all logging data to disk. +- Use [`RecordingStream::save`](https://docs.rs/rerun/latest/rerun/struct.RecordingStream.html#method.save) to stream all logging data to disk. - Visualize it via `rerun path/to/recording.rrd` You can also save a recording (or a portion of it) as you're visualizing it, directly from the viewer. @@ -339,7 +343,7 @@ You can also save a recording (or a portion of it) as you're visualizing it, dir ### Spawning the Viewer from your process -If the Rerun Viewer is [installed](../installing-viewer.md) and available in your `PATH`, you can use [`RecordingStream::spawn`](https://ref.rerun.io/docs/rust/stable/rerun/struct.RecordingStream.html#method.spawn) to automatically start a Viewer in a new process and connect to it over TCP. +If the Rerun Viewer is [installed](../installing-viewer.md) and available in your `PATH`, you can use [`RecordingStream::spawn`](https://docs.rs/rerun/latest/rerun/struct.RecordingStream.html#method.spawn) to automatically start a Viewer in a new process and connect to it over TCP. If an external Viewer was already running, `spawn` will connect to that one instead of spawning a new one. ```rust @@ -353,7 +357,7 @@ fn main() -> Result<(), Box> { } ``` -Alternatively, you can use [`rerun::native_viewer::show`](https://ref.rerun.io/docs/rust/stable/rerun/native_viewer/fn.show.html) to start a Viewer on the main thread (for platform-compatibility reasons) and feed it data from memory. +Alternatively, you can use [`rerun::native_viewer::show`](https://docs.rs/rerun/latest/rerun/native_viewer/fn.show.html) to start a Viewer on the main thread (for platform-compatibility reasons) and feed it data from memory. This requires the `native_viewer` feature to be enabled in `Cargo.toml`: ```toml diff --git a/docs/content/howto/logging/custom-data.md b/docs/content/howto/logging/custom-data.md index 6c14c80a47f4..8200fc88f701 100644 --- a/docs/content/howto/logging/custom-data.md +++ b/docs/content/howto/logging/custom-data.md @@ -16,7 +16,7 @@ rr.log( ) ``` -You can also create your own component by implementing the `AsComponents` [Python protocol](https://ref.rerun.io/docs/python/0.9.0/common/interfaces/#rerun.AsComponents) or [Rust trait](https://ref.rerun.io/docs/rust/stable/rerun/trait.AsComponents.html), which means implementing the function, `as_component_batches()`. +You can also create your own component by implementing the `AsComponents` [Python protocol](https://ref.rerun.io/docs/python/0.9.0/common/interfaces/#rerun.AsComponents) or [Rust trait](https://docs.rs/rerun/latest/rerun/trait.AsComponents.html), which means implementing the function, `as_component_batches()`. ## Remapping to a Rerun archetype Let's start with a simple example where you have your own point cloud class that is perfectly representable as a Rerun archetype. diff --git a/docs/content/howto/logging/send-columns.md b/docs/content/howto/logging/send-columns.md index 9f5860821b10..cef7745b253a 100644 --- a/docs/content/howto/logging/send-columns.md +++ b/docs/content/howto/logging/send-columns.md @@ -14,7 +14,7 @@ In contrast to the `log` function, `send_columns` does NOT add any other timelin API docs of `send_columns`: * [🌊 C++](https://ref.rerun.io/docs/cpp/stable/classrerun_1_1RecordingStream.html#ad17571d51185ce2fc2fc2f5c3070ad65) * [🐍 Python](https://ref.rerun.io/docs/python/stable/common/columnar_api/#rerun.send_columns) -* [🦀 Rust](https://ref.rerun.io/docs/rust/stable/rerun/struct.RecordingStream.html#method.send_columns) +* [🦀 Rust](https://docs.rs/rerun/latest/rerun/struct.RecordingStream.html#method.send_columns) ### Using `send_columns` for logging scalars diff --git a/docs/content/howto/visualization/reuse-blueprints.md b/docs/content/howto/visualization/reuse-blueprints.md index 5c942faf6f95..4317e32cb4be 100644 --- a/docs/content/howto/visualization/reuse-blueprints.md +++ b/docs/content/howto/visualization/reuse-blueprints.md @@ -29,7 +29,7 @@ The interactive way is to import the blueprint file directly into the Rerun view The programmatic way works by calling `log_file_from_path`: * [🐍 Python `log_file_from_path`](https://ref.rerun.io/docs/python/stable/common/logging_functions/#rerun.log_file_from_path) -* [🦀 Rust `log_file_from_path`](https://ref.rerun.io/docs/rust/stable/rerun/struct.RecordingStream.html#method.log_file_from_path) +* [🦀 Rust `log_file_from_path`](https://docs.rs/rerun/latest/rerun/struct.RecordingStream.html#method.log_file_from_path) * [🌊 C++ `log_file_from_path`](https://ref.rerun.io/docs/cpp/stable/classrerun_1_1RecordingStream.html#a20798d7ea74cce5c8174e5cacd0a2c47) This method allows you to log any file that contains data that Rerun understands (in this case, blueprint data) as part of your current recording: diff --git a/docs/content/reference/data-loaders/overview.md b/docs/content/reference/data-loaders/overview.md index dd6cb06b3fe9..8d99a890be41 100644 --- a/docs/content/reference/data-loaders/overview.md +++ b/docs/content/reference/data-loaders/overview.md @@ -35,7 +35,7 @@ The Rerun Viewer/SDK will then automatically load the data streamed to the exter Like any other `DataLoader`, an external loader will be notified of all file openings, unconditionally. -To indicate that it does not support a given file, the loader has to exit with a [dedicated status code](https://ref.rerun.io/docs/rust/stable/rerun/constant.EXTERNAL_DATA_LOADER_INCOMPATIBLE_EXIT_CODE.html). +To indicate that it does not support a given file, the loader has to exit with a [dedicated status code](https://docs.rs/rerun/latest/rerun/constant.EXTERNAL_DATA_LOADER_INCOMPATIBLE_EXIT_CODE.html). When the Viewer and/or SDK executes an external loader, it will pass to it a set of recommended settings in the form of CLI parameters (in addition to the file path to be loaded, which is passed as the one and only positional argument): diff --git a/docs/content/reference/dataframes.md b/docs/content/reference/dataframes.md index 1f810b7ad47a..a7cb2dd076de 100644 --- a/docs/content/reference/dataframes.md +++ b/docs/content/reference/dataframes.md @@ -6,7 +6,7 @@ order: 300 Rerun, at its core, is a database. As such, you can always get your data back in the form of tables (also known as dataframes, or records, or batches...). This can be achieved in three different ways, depending on your needs: -* using the dataframe API, currently available in [Python](https://ref.rerun.io/docs/python/stable/common/dataframe/) and [Rust](https://ref.rerun.io/docs/rust/stable/rerun/dataframe/index.html), +* using the dataframe API, currently available in [Python](https://ref.rerun.io/docs/python/stable/common/dataframe/) and [Rust](https://docs.rs/rerun/latest/rerun/dataframe/index.html), * using the [blueprint API](../concepts/blueprint.md) to configure a [dataframe view](types/views/dataframe_view.md) from code, * or simply by setting up [dataframe view](types/views/dataframe_view.md) manually in the UI. @@ -28,7 +28,7 @@ snippet: reference/dataframe_query Check out the API reference to learn more about all the ways that data can be searched and filtered: * [🐍 Python API reference](https://ref.rerun.io/docs/python/stable/common/dataframe/) * [Example](https://github.com/rerun-io/rerun/blob/c00a9f649fd4463f91620e8e2eac11355b245ac5/examples/python/dataframe_query/dataframe_query.py) -* [🦀 Rust API reference](https://ref.rerun.io/docs/rust/stable/rerun/dataframe/index.html) +* [🦀 Rust API reference](https://docs.rs/rerun/latest/rerun/dataframe/index.html) * [Example](https://github.com/rerun-io/rerun/blob/c00a9f649fd4463f91620e8e2eac11355b245ac5/examples/rust/dataframe_query/src/main.rs) @@ -61,7 +61,7 @@ snippet: reference/dataframe_view_query_external Check out the blueprint API and `log_file_from_path` references to learn more: * [🐍 Python blueprint API reference](https://ref.rerun.io/docs/python/stable/common/blueprint_apis/) * [🐍 Python `log_file_from_path`](https://ref.rerun.io/docs/python/stable/common/logging_functions/#rerun.log_file_from_path) -* [🦀 Rust `log_file_from_path`](https://ref.rerun.io/docs/rust/stable/rerun/struct.RecordingStream.html#method.log_file_from_path) +* [🦀 Rust `log_file_from_path`](https://docs.rs/rerun/latest/rerun/struct.RecordingStream.html#method.log_file_from_path) * [🌊 C++ `log_file_from_path`](https://ref.rerun.io/docs/cpp/stable/classrerun_1_1RecordingStream.html#a20798d7ea74cce5c8174e5cacd0a2c47) You can learn more in our [dedicated page about blueprint re-use](../howto/visualization/reuse-blueprints.md). diff --git a/docs/content/reference/migration/migration-0-9.md b/docs/content/reference/migration/migration-0-9.md index 4cbb65370693..fb9749f08c48 100644 --- a/docs/content/reference/migration/migration-0-9.md +++ b/docs/content/reference/migration/migration-0-9.md @@ -245,21 +245,21 @@ Rust already used a more type oriented interface, so the changes are not as dras ## Removal of MsgSender -The biggest change that `MsgSender` is gone and all logging happens instead directly on the [`RecordingStream::RecordingStream`](https://ref.rerun.io/docs/rust/stable/rerun/struct.RecordingStream.html) -using its [`log`](https://ref.rerun.io/docs/rust/stable/rerun/struct.RecordingStream.html#method.log) and [`RecordingStream::log_timeless`](https://ref.rerun.io/docs/rust/stable/rerun/struct.RecordingStream.html#method.log_timeless) functions. +The biggest change that `MsgSender` is gone and all logging happens instead directly on the [`RecordingStream::RecordingStream`](https://docs.rs/rerun/latest/rerun/struct.RecordingStream.html) +using its [`log`](https://docs.rs/rerun/latest/rerun/struct.RecordingStream.html#method.log) and [`RecordingStream::log_timeless`](https://docs.rs/rerun/latest/rerun/struct.RecordingStream.html#method.log_timeless) functions. ## Logging time -The new `log` function logs time implicitly. `log_time` and `log_tick` are always included, as well as any custom timeline set using [`RecordingStream::set_timepoint`](https://ref.rerun.io/docs/rust/stable/rerun/struct.RecordingStream.html#method.set_timepoint), or one of the shorthands [`RecordingStream::set_time_sequence`](https://ref.rerun.io/docs/rust/stable/rerun/struct.RecordingStream.html#method.set_time_sequence)/[`RecordingStream::set_time_seconds`](https://ref.rerun.io/docs/rust/stable/rerun/struct.RecordingStream.html#method.set_time_seconds)/[`RecordingStream::set_time_nanos`](https://ref.rerun.io/docs/rust/stable/rerun/struct.RecordingStream.html#method.set_time_nanos) +The new `log` function logs time implicitly. `log_time` and `log_tick` are always included, as well as any custom timeline set using [`RecordingStream::set_timepoint`](https://docs.rs/rerun/latest/rerun/struct.RecordingStream.html#method.set_timepoint), or one of the shorthands [`RecordingStream::set_time_sequence`](https://docs.rs/rerun/latest/rerun/struct.RecordingStream.html#method.set_time_sequence)/[`RecordingStream::set_time_seconds`](https://docs.rs/rerun/latest/rerun/struct.RecordingStream.html#method.set_time_seconds)/[`RecordingStream::set_time_nanos`](https://docs.rs/rerun/latest/rerun/struct.RecordingStream.html#method.set_time_nanos) ## Components -> archetypes -The new log messages consume any type that implements the [`AsComponents`](https://ref.rerun.io/docs/rust/stable/rerun/trait.AsComponents.html) trait -which is [implemented by](https://ref.rerun.io/docs/rust/stable/rerun/trait.AsComponents.html#implementors) all archetypes. +The new log messages consume any type that implements the [`AsComponents`](https://docs.rs/rerun/latest/rerun/trait.AsComponents.html) trait +which is [implemented by](https://docs.rs/rerun/latest/rerun/trait.AsComponents.html#implementors) all archetypes. All previously separately logged components have corresponding types and are used in one or more archetypes. See the respective API docs as well as the [Archetype Overview](../types/archetypes.md) to learn more and find self-contained code examples. -For continuing to log collections of components without implementing the [`AsComponents`](https://ref.rerun.io/docs/rust/stable/rerun/trait.AsComponents.html) trait, use [`RecordingStream::log_component_batches`](https://ref.rerun.io/docs/rust/stable/rerun/struct.RecordingStream.html#method.log_component_batches) +For continuing to log collections of components without implementing the [`AsComponents`](https://docs.rs/rerun/latest/rerun/trait.AsComponents.html) trait, use [`RecordingStream::log_component_batches`](https://docs.rs/rerun/latest/rerun/struct.RecordingStream.html#method.log_component_batches) @@ -267,4 +267,4 @@ For continuing to log collections of components without implementing the [`AsCom Splatting is no longer done explicitly (before `MsgSender::splat`), but automatically inferred whenever there is a single component together with larger component batches on the same entity path. -See also [`RecordingStream::log_component_batches`](https://ref.rerun.io/docs/rust/stable/rerun/struct.RecordingStream.html#method.log_component_batches) for more information. +See also [`RecordingStream::log_component_batches`](https://docs.rs/rerun/latest/rerun/struct.RecordingStream.html#method.log_component_batches) for more information. diff --git a/docs/content/reference/rust.md b/docs/content/reference/rust.md index 6523a1748d31..16ec9e4d616f 100644 --- a/docs/content/reference/rust.md +++ b/docs/content/reference/rust.md @@ -1,5 +1,5 @@ --- title: 🦀 Rust APIs order: 2200 -redirect: https://ref.rerun.io/docs/rust/stable +redirect: https://docs.rs/rerun/ --- diff --git a/docs/content/reference/sdk/operating-modes.md b/docs/content/reference/sdk/operating-modes.md index 470d01425333..cf6c729067ee 100644 --- a/docs/content/reference/sdk/operating-modes.md +++ b/docs/content/reference/sdk/operating-modes.md @@ -27,7 +27,7 @@ This is the default behavior you get when running all of our C++/Python/Rust exa Call [`rr.spawn`](https://ref.rerun.io/docs/python/stable/common/initialization_functions/#rerun.spawn) once at the start of your program to start a Rerun Viewer in an external process and stream all the data to it via TCP. If an external Viewer was already running, `spawn` will connect to that one instead of spawning a new one. #### Rust -[`RecordingStream::spawn`](https://ref.rerun.io/docs/rust/stable/rerun/struct.RecordingStream.html#method.spawn) spawns a new Rerun Viewer process using an executable available in your PATH, then streams all the data to it via TCP. If an external Viewer was already running, `spawn` will connect to that one instead of spawning a new one. +[`RecordingStream::spawn`](https://docs.rs/rerun/latest/rerun/struct.RecordingStream.html#method.spawn) spawns a new Rerun Viewer process using an executable available in your PATH, then streams all the data to it via TCP. If an external Viewer was already running, `spawn` will connect to that one instead of spawning a new one. ### Connect @@ -43,7 +43,7 @@ You will need to start a stand-alone Viewer first by typing `rerun` in your term [`rr.connect`](https://ref.rerun.io/docs/python/stable/common/initialization_functions/#rerun.connect) #### Rust -[`RecordingStream::connect`](https://ref.rerun.io/docs/rust/stable/rerun/struct.RecordingStream.html#method.connect) +[`RecordingStream::connect`](https://docs.rs/rerun/latest/rerun/struct.RecordingStream.html#method.connect) ### Serve @@ -57,7 +57,7 @@ Not available yet. Use [`rr.serve`](https://ref.rerun.io/docs/python/stable/common/initialization_functions/#rerun.serve). #### Rust -[`RecordingStream::serve`](https://ref.rerun.io/docs/rust/stable/rerun/struct.RecordingStream.html#method.serve) +[`RecordingStream::serve`](https://docs.rs/rerun/latest/rerun/struct.RecordingStream.html#method.serve) ### Save @@ -75,7 +75,7 @@ Use `RecordingStream::save`. Use [`rr.save`](https://ref.rerun.io/docs/python/stable/common/initialization_functions/#rerun.save). #### Rust -Use [`RecordingStream::save`](https://ref.rerun.io/docs/rust/stable/rerun/struct.RecordingStream.html#method.save). +Use [`RecordingStream::save`](https://docs.rs/rerun/latest/rerun/struct.RecordingStream.html#method.save). ### Standard Input/Output @@ -96,7 +96,7 @@ Check out our [dedicated example](https://github.com/rerun-io/rerun/tree/latest/ #### Rust -Use [`RecordingStream::stdout`](https://ref.rerun.io/docs/rust/stable/rerun/struct.RecordingStream.html#method.stdout). +Use [`RecordingStream::stdout`](https://docs.rs/rerun/latest/rerun/struct.RecordingStream.html#method.stdout). Check out our [dedicated example](https://github.com/rerun-io/rerun/tree/latest/examples/rust/stdio/src/main.rs). @@ -106,6 +106,6 @@ Check out our [dedicated example](https://github.com/rerun-io/rerun/tree/latest/ We provide helpers for both Python & Rust to effortlessly add and properly handle all of these flags in your programs. - For Python, checkout the [`script_helpers`](https://ref.rerun.io/docs/python/stable/common/script_helpers/) module. -- For Rust, checkout our [`clap`]() [integration](https://ref.rerun.io/docs/rust/stable/rerun/clap/index.html). +- For Rust, checkout our [`clap`]() [integration](https://docs.rs/rerun/latest/rerun/clap/index.html). Have a look at the [official examples](/examples) to see these helpers in action. diff --git a/docs/content/reference/types/archetypes/annotation_context.md b/docs/content/reference/types/archetypes/annotation_context.md index 023a61e6c930..a9850dde6c0b 100644 --- a/docs/content/reference/types/archetypes/annotation_context.md +++ b/docs/content/reference/types/archetypes/annotation_context.md @@ -25,7 +25,7 @@ See also [`datatypes.ClassDescription`](https://rerun.io/docs/reference/types/da ## API reference links * 🌊 [C++ API docs for `AnnotationContext`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1archetypes_1_1AnnotationContext.html) * 🐍 [Python API docs for `AnnotationContext`](https://ref.rerun.io/docs/python/stable/common/archetypes#rerun.archetypes.AnnotationContext) - * 🦀 [Rust API docs for `AnnotationContext`](https://ref.rerun.io/docs/rust/stable/rerun/archetypes/struct.AnnotationContext.html) + * 🦀 [Rust API docs for `AnnotationContext`](https://docs.rs/rerun/latest/rerun/archetypes/struct.AnnotationContext.html) ## Examples diff --git a/docs/content/reference/types/archetypes/arrows2d.md b/docs/content/reference/types/archetypes/arrows2d.md index d350ff87681a..40564b6514bc 100644 --- a/docs/content/reference/types/archetypes/arrows2d.md +++ b/docs/content/reference/types/archetypes/arrows2d.md @@ -21,7 +21,7 @@ title: "Arrows2D" ## API reference links * 🌊 [C++ API docs for `Arrows2D`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1archetypes_1_1Arrows2D.html) * 🐍 [Python API docs for `Arrows2D`](https://ref.rerun.io/docs/python/stable/common/archetypes#rerun.archetypes.Arrows2D) - * 🦀 [Rust API docs for `Arrows2D`](https://ref.rerun.io/docs/rust/stable/rerun/archetypes/struct.Arrows2D.html) + * 🦀 [Rust API docs for `Arrows2D`](https://docs.rs/rerun/latest/rerun/archetypes/struct.Arrows2D.html) ## Example diff --git a/docs/content/reference/types/archetypes/arrows3d.md b/docs/content/reference/types/archetypes/arrows3d.md index 67e693c55b76..937223f432ba 100644 --- a/docs/content/reference/types/archetypes/arrows3d.md +++ b/docs/content/reference/types/archetypes/arrows3d.md @@ -21,7 +21,7 @@ title: "Arrows3D" ## API reference links * 🌊 [C++ API docs for `Arrows3D`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1archetypes_1_1Arrows3D.html) * 🐍 [Python API docs for `Arrows3D`](https://ref.rerun.io/docs/python/stable/common/archetypes#rerun.archetypes.Arrows3D) - * 🦀 [Rust API docs for `Arrows3D`](https://ref.rerun.io/docs/rust/stable/rerun/archetypes/struct.Arrows3D.html) + * 🦀 [Rust API docs for `Arrows3D`](https://docs.rs/rerun/latest/rerun/archetypes/struct.Arrows3D.html) ## Example diff --git a/docs/content/reference/types/archetypes/asset3d.md b/docs/content/reference/types/archetypes/asset3d.md index 8dd4fe82124c..ed8b246601db 100644 --- a/docs/content/reference/types/archetypes/asset3d.md +++ b/docs/content/reference/types/archetypes/asset3d.md @@ -26,7 +26,7 @@ an instance of the mesh will be drawn for each transform. ## API reference links * 🌊 [C++ API docs for `Asset3D`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1archetypes_1_1Asset3D.html) * 🐍 [Python API docs for `Asset3D`](https://ref.rerun.io/docs/python/stable/common/archetypes#rerun.archetypes.Asset3D) - * 🦀 [Rust API docs for `Asset3D`](https://ref.rerun.io/docs/rust/stable/rerun/archetypes/struct.Asset3D.html) + * 🦀 [Rust API docs for `Asset3D`](https://docs.rs/rerun/latest/rerun/archetypes/struct.Asset3D.html) ## Example diff --git a/docs/content/reference/types/archetypes/asset_video.md b/docs/content/reference/types/archetypes/asset_video.md index a12d66864ac9..b2ffd51cc9ad 100644 --- a/docs/content/reference/types/archetypes/asset_video.md +++ b/docs/content/reference/types/archetypes/asset_video.md @@ -26,7 +26,7 @@ In order to display a video, you also need to log a [`archetypes.VideoFrameRefer ## API reference links * 🌊 [C++ API docs for `AssetVideo`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1archetypes_1_1AssetVideo.html) * 🐍 [Python API docs for `AssetVideo`](https://ref.rerun.io/docs/python/stable/common/archetypes#rerun.archetypes.AssetVideo) - * 🦀 [Rust API docs for `AssetVideo`](https://ref.rerun.io/docs/rust/stable/rerun/archetypes/struct.AssetVideo.html) + * 🦀 [Rust API docs for `AssetVideo`](https://docs.rs/rerun/latest/rerun/archetypes/struct.AssetVideo.html) ## Examples diff --git a/docs/content/reference/types/archetypes/bar_chart.md b/docs/content/reference/types/archetypes/bar_chart.md index 838be7525f03..6f2e286bd923 100644 --- a/docs/content/reference/types/archetypes/bar_chart.md +++ b/docs/content/reference/types/archetypes/bar_chart.md @@ -20,7 +20,7 @@ The x values will be the indices of the array, and the bar heights will be the p ## API reference links * 🌊 [C++ API docs for `BarChart`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1archetypes_1_1BarChart.html) * 🐍 [Python API docs for `BarChart`](https://ref.rerun.io/docs/python/stable/common/archetypes#rerun.archetypes.BarChart) - * 🦀 [Rust API docs for `BarChart`](https://ref.rerun.io/docs/rust/stable/rerun/archetypes/struct.BarChart.html) + * 🦀 [Rust API docs for `BarChart`](https://docs.rs/rerun/latest/rerun/archetypes/struct.BarChart.html) ## Example diff --git a/docs/content/reference/types/archetypes/boxes2d.md b/docs/content/reference/types/archetypes/boxes2d.md index 91f17ea320dc..c1b9c9c424e4 100644 --- a/docs/content/reference/types/archetypes/boxes2d.md +++ b/docs/content/reference/types/archetypes/boxes2d.md @@ -21,7 +21,7 @@ title: "Boxes2D" ## API reference links * 🌊 [C++ API docs for `Boxes2D`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1archetypes_1_1Boxes2D.html) * 🐍 [Python API docs for `Boxes2D`](https://ref.rerun.io/docs/python/stable/common/archetypes#rerun.archetypes.Boxes2D) - * 🦀 [Rust API docs for `Boxes2D`](https://ref.rerun.io/docs/rust/stable/rerun/archetypes/struct.Boxes2D.html) + * 🦀 [Rust API docs for `Boxes2D`](https://docs.rs/rerun/latest/rerun/archetypes/struct.Boxes2D.html) ## Example diff --git a/docs/content/reference/types/archetypes/boxes3d.md b/docs/content/reference/types/archetypes/boxes3d.md index 949d76c5d9f6..ef33d29fcfc2 100644 --- a/docs/content/reference/types/archetypes/boxes3d.md +++ b/docs/content/reference/types/archetypes/boxes3d.md @@ -25,7 +25,7 @@ If there's more instance poses than half sizes, the last half size will be repea ## API reference links * 🌊 [C++ API docs for `Boxes3D`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1archetypes_1_1Boxes3D.html) * 🐍 [Python API docs for `Boxes3D`](https://ref.rerun.io/docs/python/stable/common/archetypes#rerun.archetypes.Boxes3D) - * 🦀 [Rust API docs for `Boxes3D`](https://ref.rerun.io/docs/rust/stable/rerun/archetypes/struct.Boxes3D.html) + * 🦀 [Rust API docs for `Boxes3D`](https://docs.rs/rerun/latest/rerun/archetypes/struct.Boxes3D.html) ## Examples diff --git a/docs/content/reference/types/archetypes/capsules3d.md b/docs/content/reference/types/archetypes/capsules3d.md index f807fedf80c6..2e5bf57004b9 100644 --- a/docs/content/reference/types/archetypes/capsules3d.md +++ b/docs/content/reference/types/archetypes/capsules3d.md @@ -26,7 +26,7 @@ instances. ## API reference links * 🌊 [C++ API docs for `Capsules3D`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1archetypes_1_1Capsules3D.html) * 🐍 [Python API docs for `Capsules3D`](https://ref.rerun.io/docs/python/stable/common/archetypes#rerun.archetypes.Capsules3D) - * 🦀 [Rust API docs for `Capsules3D`](https://ref.rerun.io/docs/rust/stable/rerun/archetypes/struct.Capsules3D.html) + * 🦀 [Rust API docs for `Capsules3D`](https://docs.rs/rerun/latest/rerun/archetypes/struct.Capsules3D.html) ## Example diff --git a/docs/content/reference/types/archetypes/clear.md b/docs/content/reference/types/archetypes/clear.md index 970f2a473f43..476fcb56470b 100644 --- a/docs/content/reference/types/archetypes/clear.md +++ b/docs/content/reference/types/archetypes/clear.md @@ -28,7 +28,7 @@ data (i.e. discontinuous lines). ## API reference links * 🌊 [C++ API docs for `Clear`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1archetypes_1_1Clear.html) * 🐍 [Python API docs for `Clear`](https://ref.rerun.io/docs/python/stable/common/archetypes#rerun.archetypes.Clear) - * 🦀 [Rust API docs for `Clear`](https://ref.rerun.io/docs/rust/stable/rerun/archetypes/struct.Clear.html) + * 🦀 [Rust API docs for `Clear`](https://docs.rs/rerun/latest/rerun/archetypes/struct.Clear.html) ## Examples diff --git a/docs/content/reference/types/archetypes/depth_image.md b/docs/content/reference/types/archetypes/depth_image.md index 968aa46d8bfd..6a0d62afe6c0 100644 --- a/docs/content/reference/types/archetypes/depth_image.md +++ b/docs/content/reference/types/archetypes/depth_image.md @@ -21,7 +21,7 @@ Each pixel corresponds to a depth value in units specified by [`components.Depth ## API reference links * 🌊 [C++ API docs for `DepthImage`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1archetypes_1_1DepthImage.html) * 🐍 [Python API docs for `DepthImage`](https://ref.rerun.io/docs/python/stable/common/archetypes#rerun.archetypes.DepthImage) - * 🦀 [Rust API docs for `DepthImage`](https://ref.rerun.io/docs/rust/stable/rerun/archetypes/struct.DepthImage.html) + * 🦀 [Rust API docs for `DepthImage`](https://docs.rs/rerun/latest/rerun/archetypes/struct.DepthImage.html) ## Examples diff --git a/docs/content/reference/types/archetypes/disconnected_space.md b/docs/content/reference/types/archetypes/disconnected_space.md index b0fd6dafe308..eacd122ed166 100644 --- a/docs/content/reference/types/archetypes/disconnected_space.md +++ b/docs/content/reference/types/archetypes/disconnected_space.md @@ -22,7 +22,7 @@ This is useful for specifying that a subgraph is independent of the rest of the ## API reference links * 🌊 [C++ API docs for `DisconnectedSpace`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1archetypes_1_1DisconnectedSpace.html) * 🐍 [Python API docs for `DisconnectedSpace`](https://ref.rerun.io/docs/python/stable/common/archetypes#rerun.archetypes.DisconnectedSpace) - * 🦀 [Rust API docs for `DisconnectedSpace`](https://ref.rerun.io/docs/rust/stable/rerun/archetypes/struct.DisconnectedSpace.html) + * 🦀 [Rust API docs for `DisconnectedSpace`](https://docs.rs/rerun/latest/rerun/archetypes/struct.DisconnectedSpace.html) ## Example diff --git a/docs/content/reference/types/archetypes/ellipsoids3d.md b/docs/content/reference/types/archetypes/ellipsoids3d.md index 3064d2c53db5..faeaba7a7b94 100644 --- a/docs/content/reference/types/archetypes/ellipsoids3d.md +++ b/docs/content/reference/types/archetypes/ellipsoids3d.md @@ -29,7 +29,7 @@ If there's more instance poses than half sizes, the last half size will be repea ## API reference links * 🌊 [C++ API docs for `Ellipsoids3D`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1archetypes_1_1Ellipsoids3D.html) * 🐍 [Python API docs for `Ellipsoids3D`](https://ref.rerun.io/docs/python/stable/common/archetypes#rerun.archetypes.Ellipsoids3D) - * 🦀 [Rust API docs for `Ellipsoids3D`](https://ref.rerun.io/docs/rust/stable/rerun/archetypes/struct.Ellipsoids3D.html) + * 🦀 [Rust API docs for `Ellipsoids3D`](https://docs.rs/rerun/latest/rerun/archetypes/struct.Ellipsoids3D.html) ## Example diff --git a/docs/content/reference/types/archetypes/encoded_image.md b/docs/content/reference/types/archetypes/encoded_image.md index 155a7a5f5d52..48b3edd7669c 100644 --- a/docs/content/reference/types/archetypes/encoded_image.md +++ b/docs/content/reference/types/archetypes/encoded_image.md @@ -24,7 +24,7 @@ For images that refer to video frames see [`archetypes.VideoFrameReference`](htt ## API reference links * 🌊 [C++ API docs for `EncodedImage`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1archetypes_1_1EncodedImage.html) * 🐍 [Python API docs for `EncodedImage`](https://ref.rerun.io/docs/python/stable/common/archetypes#rerun.archetypes.EncodedImage) - * 🦀 [Rust API docs for `EncodedImage`](https://ref.rerun.io/docs/rust/stable/rerun/archetypes/struct.EncodedImage.html) + * 🦀 [Rust API docs for `EncodedImage`](https://docs.rs/rerun/latest/rerun/archetypes/struct.EncodedImage.html) ## Example diff --git a/docs/content/reference/types/archetypes/geo_line_strings.md b/docs/content/reference/types/archetypes/geo_line_strings.md index 71fe45a8cfd7..e6c316e5be05 100644 --- a/docs/content/reference/types/archetypes/geo_line_strings.md +++ b/docs/content/reference/types/archetypes/geo_line_strings.md @@ -20,7 +20,7 @@ Also known as "line strips" or "polylines". ## API reference links * 🌊 [C++ API docs for `GeoLineStrings`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1archetypes_1_1GeoLineStrings.html) * 🐍 [Python API docs for `GeoLineStrings`](https://ref.rerun.io/docs/python/stable/common/archetypes#rerun.archetypes.GeoLineStrings) - * 🦀 [Rust API docs for `GeoLineStrings`](https://ref.rerun.io/docs/rust/stable/rerun/archetypes/struct.GeoLineStrings.html) + * 🦀 [Rust API docs for `GeoLineStrings`](https://docs.rs/rerun/latest/rerun/archetypes/struct.GeoLineStrings.html) ## Example diff --git a/docs/content/reference/types/archetypes/geo_points.md b/docs/content/reference/types/archetypes/geo_points.md index c006861e6eae..866f074b0903 100644 --- a/docs/content/reference/types/archetypes/geo_points.md +++ b/docs/content/reference/types/archetypes/geo_points.md @@ -20,7 +20,7 @@ Geospatial points with positions expressed in [EPSG:4326](https://epsg.io/4326) ## API reference links * 🌊 [C++ API docs for `GeoPoints`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1archetypes_1_1GeoPoints.html) * 🐍 [Python API docs for `GeoPoints`](https://ref.rerun.io/docs/python/stable/common/archetypes#rerun.archetypes.GeoPoints) - * 🦀 [Rust API docs for `GeoPoints`](https://ref.rerun.io/docs/rust/stable/rerun/archetypes/struct.GeoPoints.html) + * 🦀 [Rust API docs for `GeoPoints`](https://docs.rs/rerun/latest/rerun/archetypes/struct.GeoPoints.html) ## Example diff --git a/docs/content/reference/types/archetypes/image.md b/docs/content/reference/types/archetypes/image.md index fcdd6d487889..f278721593b9 100644 --- a/docs/content/reference/types/archetypes/image.md +++ b/docs/content/reference/types/archetypes/image.md @@ -32,7 +32,7 @@ row-major, interleaved-pixel image format. ## API reference links * 🌊 [C++ API docs for `Image`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1archetypes_1_1Image.html) * 🐍 [Python API docs for `Image`](https://ref.rerun.io/docs/python/stable/common/archetypes#rerun.archetypes.Image) - * 🦀 [Rust API docs for `Image`](https://ref.rerun.io/docs/rust/stable/rerun/archetypes/struct.Image.html) + * 🦀 [Rust API docs for `Image`](https://docs.rs/rerun/latest/rerun/archetypes/struct.Image.html) ## Examples diff --git a/docs/content/reference/types/archetypes/instance_poses3d.md b/docs/content/reference/types/archetypes/instance_poses3d.md index 7d970c26a84b..99ceac0f1243 100644 --- a/docs/content/reference/types/archetypes/instance_poses3d.md +++ b/docs/content/reference/types/archetypes/instance_poses3d.md @@ -30,7 +30,7 @@ will draw an object for every pose, a behavior also known as "instancing". ## API reference links * 🌊 [C++ API docs for `InstancePoses3D`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1archetypes_1_1InstancePoses3D.html) * 🐍 [Python API docs for `InstancePoses3D`](https://ref.rerun.io/docs/python/stable/common/archetypes#rerun.archetypes.InstancePoses3D) - * 🦀 [Rust API docs for `InstancePoses3D`](https://ref.rerun.io/docs/rust/stable/rerun/archetypes/struct.InstancePoses3D.html) + * 🦀 [Rust API docs for `InstancePoses3D`](https://docs.rs/rerun/latest/rerun/archetypes/struct.InstancePoses3D.html) ## Examples diff --git a/docs/content/reference/types/archetypes/line_strips2d.md b/docs/content/reference/types/archetypes/line_strips2d.md index c44849dd3b44..dde4074a399d 100644 --- a/docs/content/reference/types/archetypes/line_strips2d.md +++ b/docs/content/reference/types/archetypes/line_strips2d.md @@ -21,7 +21,7 @@ title: "LineStrips2D" ## API reference links * 🌊 [C++ API docs for `LineStrips2D`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1archetypes_1_1LineStrips2D.html) * 🐍 [Python API docs for `LineStrips2D`](https://ref.rerun.io/docs/python/stable/common/archetypes#rerun.archetypes.LineStrips2D) - * 🦀 [Rust API docs for `LineStrips2D`](https://ref.rerun.io/docs/rust/stable/rerun/archetypes/struct.LineStrips2D.html) + * 🦀 [Rust API docs for `LineStrips2D`](https://docs.rs/rerun/latest/rerun/archetypes/struct.LineStrips2D.html) ## Examples diff --git a/docs/content/reference/types/archetypes/line_strips3d.md b/docs/content/reference/types/archetypes/line_strips3d.md index 6ac56e362f82..ab9c01704820 100644 --- a/docs/content/reference/types/archetypes/line_strips3d.md +++ b/docs/content/reference/types/archetypes/line_strips3d.md @@ -21,7 +21,7 @@ title: "LineStrips3D" ## API reference links * 🌊 [C++ API docs for `LineStrips3D`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1archetypes_1_1LineStrips3D.html) * 🐍 [Python API docs for `LineStrips3D`](https://ref.rerun.io/docs/python/stable/common/archetypes#rerun.archetypes.LineStrips3D) - * 🦀 [Rust API docs for `LineStrips3D`](https://ref.rerun.io/docs/rust/stable/rerun/archetypes/struct.LineStrips3D.html) + * 🦀 [Rust API docs for `LineStrips3D`](https://docs.rs/rerun/latest/rerun/archetypes/struct.LineStrips3D.html) ## Examples diff --git a/docs/content/reference/types/archetypes/mesh3d.md b/docs/content/reference/types/archetypes/mesh3d.md index e6caa20f4a60..3546920a0238 100644 --- a/docs/content/reference/types/archetypes/mesh3d.md +++ b/docs/content/reference/types/archetypes/mesh3d.md @@ -26,7 +26,7 @@ an instance of the mesh will be drawn for each transform. ## API reference links * 🌊 [C++ API docs for `Mesh3D`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1archetypes_1_1Mesh3D.html) * 🐍 [Python API docs for `Mesh3D`](https://ref.rerun.io/docs/python/stable/common/archetypes#rerun.archetypes.Mesh3D) - * 🦀 [Rust API docs for `Mesh3D`](https://ref.rerun.io/docs/rust/stable/rerun/archetypes/struct.Mesh3D.html) + * 🦀 [Rust API docs for `Mesh3D`](https://docs.rs/rerun/latest/rerun/archetypes/struct.Mesh3D.html) ## Examples diff --git a/docs/content/reference/types/archetypes/pinhole.md b/docs/content/reference/types/archetypes/pinhole.md index aa5702863e1a..06a456ba5c46 100644 --- a/docs/content/reference/types/archetypes/pinhole.md +++ b/docs/content/reference/types/archetypes/pinhole.md @@ -21,7 +21,7 @@ Camera perspective projection (a.k.a. intrinsics). ## API reference links * 🌊 [C++ API docs for `Pinhole`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1archetypes_1_1Pinhole.html) * 🐍 [Python API docs for `Pinhole`](https://ref.rerun.io/docs/python/stable/common/archetypes#rerun.archetypes.Pinhole) - * 🦀 [Rust API docs for `Pinhole`](https://ref.rerun.io/docs/rust/stable/rerun/archetypes/struct.Pinhole.html) + * 🦀 [Rust API docs for `Pinhole`](https://docs.rs/rerun/latest/rerun/archetypes/struct.Pinhole.html) ## Examples diff --git a/docs/content/reference/types/archetypes/points2d.md b/docs/content/reference/types/archetypes/points2d.md index 81a977ba65c3..69395fd5fa0b 100644 --- a/docs/content/reference/types/archetypes/points2d.md +++ b/docs/content/reference/types/archetypes/points2d.md @@ -21,7 +21,7 @@ A 2D point cloud with positions and optional colors, radii, labels, etc. ## API reference links * 🌊 [C++ API docs for `Points2D`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1archetypes_1_1Points2D.html) * 🐍 [Python API docs for `Points2D`](https://ref.rerun.io/docs/python/stable/common/archetypes#rerun.archetypes.Points2D) - * 🦀 [Rust API docs for `Points2D`](https://ref.rerun.io/docs/rust/stable/rerun/archetypes/struct.Points2D.html) + * 🦀 [Rust API docs for `Points2D`](https://docs.rs/rerun/latest/rerun/archetypes/struct.Points2D.html) ## Examples diff --git a/docs/content/reference/types/archetypes/points3d.md b/docs/content/reference/types/archetypes/points3d.md index f367a24d355f..6b83466c7381 100644 --- a/docs/content/reference/types/archetypes/points3d.md +++ b/docs/content/reference/types/archetypes/points3d.md @@ -21,7 +21,7 @@ A 3D point cloud with positions and optional colors, radii, labels, etc. ## API reference links * 🌊 [C++ API docs for `Points3D`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1archetypes_1_1Points3D.html) * 🐍 [Python API docs for `Points3D`](https://ref.rerun.io/docs/python/stable/common/archetypes#rerun.archetypes.Points3D) - * 🦀 [Rust API docs for `Points3D`](https://ref.rerun.io/docs/rust/stable/rerun/archetypes/struct.Points3D.html) + * 🦀 [Rust API docs for `Points3D`](https://docs.rs/rerun/latest/rerun/archetypes/struct.Points3D.html) ## Examples diff --git a/docs/content/reference/types/archetypes/scalar.md b/docs/content/reference/types/archetypes/scalar.md index ec4a528d3dde..b75e7960f4a0 100644 --- a/docs/content/reference/types/archetypes/scalar.md +++ b/docs/content/reference/types/archetypes/scalar.md @@ -24,7 +24,7 @@ the plot-specific archetypes through the blueprint. ## API reference links * 🌊 [C++ API docs for `Scalar`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1archetypes_1_1Scalar.html) * 🐍 [Python API docs for `Scalar`](https://ref.rerun.io/docs/python/stable/common/archetypes#rerun.archetypes.Scalar) - * 🦀 [Rust API docs for `Scalar`](https://ref.rerun.io/docs/rust/stable/rerun/archetypes/struct.Scalar.html) + * 🦀 [Rust API docs for `Scalar`](https://docs.rs/rerun/latest/rerun/archetypes/struct.Scalar.html) ## Examples diff --git a/docs/content/reference/types/archetypes/segmentation_image.md b/docs/content/reference/types/archetypes/segmentation_image.md index bd607a7a135d..d6fd1a5c1543 100644 --- a/docs/content/reference/types/archetypes/segmentation_image.md +++ b/docs/content/reference/types/archetypes/segmentation_image.md @@ -26,7 +26,7 @@ See also [`archetypes.AnnotationContext`](https://rerun.io/docs/reference/types/ ## API reference links * 🌊 [C++ API docs for `SegmentationImage`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1archetypes_1_1SegmentationImage.html) * 🐍 [Python API docs for `SegmentationImage`](https://ref.rerun.io/docs/python/stable/common/archetypes#rerun.archetypes.SegmentationImage) - * 🦀 [Rust API docs for `SegmentationImage`](https://ref.rerun.io/docs/rust/stable/rerun/archetypes/struct.SegmentationImage.html) + * 🦀 [Rust API docs for `SegmentationImage`](https://docs.rs/rerun/latest/rerun/archetypes/struct.SegmentationImage.html) ## Example diff --git a/docs/content/reference/types/archetypes/series_line.md b/docs/content/reference/types/archetypes/series_line.md index a87f6374f5f0..a35379f1b8e9 100644 --- a/docs/content/reference/types/archetypes/series_line.md +++ b/docs/content/reference/types/archetypes/series_line.md @@ -20,7 +20,7 @@ when possible. The underlying data needs to be logged to the same entity-path us ## API reference links * 🌊 [C++ API docs for `SeriesLine`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1archetypes_1_1SeriesLine.html) * 🐍 [Python API docs for `SeriesLine`](https://ref.rerun.io/docs/python/stable/common/archetypes#rerun.archetypes.SeriesLine) - * 🦀 [Rust API docs for `SeriesLine`](https://ref.rerun.io/docs/rust/stable/rerun/archetypes/struct.SeriesLine.html) + * 🦀 [Rust API docs for `SeriesLine`](https://docs.rs/rerun/latest/rerun/archetypes/struct.SeriesLine.html) ## Example diff --git a/docs/content/reference/types/archetypes/series_point.md b/docs/content/reference/types/archetypes/series_point.md index 7b322940406b..c2163b8e2638 100644 --- a/docs/content/reference/types/archetypes/series_point.md +++ b/docs/content/reference/types/archetypes/series_point.md @@ -20,7 +20,7 @@ when possible. The underlying data needs to be logged to the same entity-path us ## API reference links * 🌊 [C++ API docs for `SeriesPoint`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1archetypes_1_1SeriesPoint.html) * 🐍 [Python API docs for `SeriesPoint`](https://ref.rerun.io/docs/python/stable/common/archetypes#rerun.archetypes.SeriesPoint) - * 🦀 [Rust API docs for `SeriesPoint`](https://ref.rerun.io/docs/rust/stable/rerun/archetypes/struct.SeriesPoint.html) + * 🦀 [Rust API docs for `SeriesPoint`](https://docs.rs/rerun/latest/rerun/archetypes/struct.SeriesPoint.html) ## Example diff --git a/docs/content/reference/types/archetypes/tensor.md b/docs/content/reference/types/archetypes/tensor.md index 5ee9aa69c255..7e25161887e2 100644 --- a/docs/content/reference/types/archetypes/tensor.md +++ b/docs/content/reference/types/archetypes/tensor.md @@ -19,7 +19,7 @@ An N-dimensional array of numbers. ## API reference links * 🌊 [C++ API docs for `Tensor`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1archetypes_1_1Tensor.html) * 🐍 [Python API docs for `Tensor`](https://ref.rerun.io/docs/python/stable/common/archetypes#rerun.archetypes.Tensor) - * 🦀 [Rust API docs for `Tensor`](https://ref.rerun.io/docs/rust/stable/rerun/archetypes/struct.Tensor.html) + * 🦀 [Rust API docs for `Tensor`](https://docs.rs/rerun/latest/rerun/archetypes/struct.Tensor.html) ## Example diff --git a/docs/content/reference/types/archetypes/text_document.md b/docs/content/reference/types/archetypes/text_document.md index 3dbc01742c2b..e7b481d14b6f 100644 --- a/docs/content/reference/types/archetypes/text_document.md +++ b/docs/content/reference/types/archetypes/text_document.md @@ -20,7 +20,7 @@ Supports raw text and markdown. ## API reference links * 🌊 [C++ API docs for `TextDocument`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1archetypes_1_1TextDocument.html) * 🐍 [Python API docs for `TextDocument`](https://ref.rerun.io/docs/python/stable/common/archetypes#rerun.archetypes.TextDocument) - * 🦀 [Rust API docs for `TextDocument`](https://ref.rerun.io/docs/rust/stable/rerun/archetypes/struct.TextDocument.html) + * 🦀 [Rust API docs for `TextDocument`](https://docs.rs/rerun/latest/rerun/archetypes/struct.TextDocument.html) ## Example diff --git a/docs/content/reference/types/archetypes/text_log.md b/docs/content/reference/types/archetypes/text_log.md index 5dd35b820968..96ce9f014dca 100644 --- a/docs/content/reference/types/archetypes/text_log.md +++ b/docs/content/reference/types/archetypes/text_log.md @@ -20,7 +20,7 @@ A log entry in a text log, comprised of a text body and its log level. ## API reference links * 🌊 [C++ API docs for `TextLog`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1archetypes_1_1TextLog.html) * 🐍 [Python API docs for `TextLog`](https://ref.rerun.io/docs/python/stable/common/archetypes#rerun.archetypes.TextLog) - * 🦀 [Rust API docs for `TextLog`](https://ref.rerun.io/docs/rust/stable/rerun/archetypes/struct.TextLog.html) + * 🦀 [Rust API docs for `TextLog`](https://docs.rs/rerun/latest/rerun/archetypes/struct.TextLog.html) ## Example diff --git a/docs/content/reference/types/archetypes/transform3d.md b/docs/content/reference/types/archetypes/transform3d.md index 7e87ebf49407..a1214398179d 100644 --- a/docs/content/reference/types/archetypes/transform3d.md +++ b/docs/content/reference/types/archetypes/transform3d.md @@ -28,7 +28,7 @@ For transforms that affect only a single entity and do not propagate along the e ## API reference links * 🌊 [C++ API docs for `Transform3D`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1archetypes_1_1Transform3D.html) * 🐍 [Python API docs for `Transform3D`](https://ref.rerun.io/docs/python/stable/common/archetypes#rerun.archetypes.Transform3D) - * 🦀 [Rust API docs for `Transform3D`](https://ref.rerun.io/docs/rust/stable/rerun/archetypes/struct.Transform3D.html) + * 🦀 [Rust API docs for `Transform3D`](https://docs.rs/rerun/latest/rerun/archetypes/struct.Transform3D.html) ## Examples diff --git a/docs/content/reference/types/archetypes/video_frame_reference.md b/docs/content/reference/types/archetypes/video_frame_reference.md index c7813fa75b77..310c18af65e2 100644 --- a/docs/content/reference/types/archetypes/video_frame_reference.md +++ b/docs/content/reference/types/archetypes/video_frame_reference.md @@ -24,7 +24,7 @@ See for details of what is and isn't sup ## API reference links * 🌊 [C++ API docs for `VideoFrameReference`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1archetypes_1_1VideoFrameReference.html) * 🐍 [Python API docs for `VideoFrameReference`](https://ref.rerun.io/docs/python/stable/common/archetypes#rerun.archetypes.VideoFrameReference) - * 🦀 [Rust API docs for `VideoFrameReference`](https://ref.rerun.io/docs/rust/stable/rerun/archetypes/struct.VideoFrameReference.html) + * 🦀 [Rust API docs for `VideoFrameReference`](https://docs.rs/rerun/latest/rerun/archetypes/struct.VideoFrameReference.html) ## Examples diff --git a/docs/content/reference/types/archetypes/view_coordinates.md b/docs/content/reference/types/archetypes/view_coordinates.md index b378bf17bc7d..544fd552f529 100644 --- a/docs/content/reference/types/archetypes/view_coordinates.md +++ b/docs/content/reference/types/archetypes/view_coordinates.md @@ -27,7 +27,7 @@ Make sure that this archetype is logged at or above the origin entity path of yo ## API reference links * 🌊 [C++ API docs for `ViewCoordinates`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1archetypes_1_1ViewCoordinates.html) * 🐍 [Python API docs for `ViewCoordinates`](https://ref.rerun.io/docs/python/stable/common/archetypes#rerun.archetypes.ViewCoordinates) - * 🦀 [Rust API docs for `ViewCoordinates`](https://ref.rerun.io/docs/rust/stable/rerun/archetypes/struct.ViewCoordinates.html) + * 🦀 [Rust API docs for `ViewCoordinates`](https://docs.rs/rerun/latest/rerun/archetypes/struct.ViewCoordinates.html) ## Example diff --git a/docs/content/reference/types/components/aggregation_policy.md b/docs/content/reference/types/components/aggregation_policy.md index 25289d088dc5..108c3aee615e 100644 --- a/docs/content/reference/types/components/aggregation_policy.md +++ b/docs/content/reference/types/components/aggregation_policy.md @@ -39,7 +39,7 @@ uint8 ## API reference links * 🌊 [C++ API docs for `AggregationPolicy`](https://ref.rerun.io/docs/cpp/stable/namespacererun_1_1components.html) * 🐍 [Python API docs for `AggregationPolicy`](https://ref.rerun.io/docs/python/stable/common/components#rerun.components.AggregationPolicy) - * 🦀 [Rust API docs for `AggregationPolicy`](https://ref.rerun.io/docs/rust/stable/rerun/components/enum.AggregationPolicy.html) + * 🦀 [Rust API docs for `AggregationPolicy`](https://docs.rs/rerun/latest/rerun/components/enum.AggregationPolicy.html) ## Used by diff --git a/docs/content/reference/types/components/albedo_factor.md b/docs/content/reference/types/components/albedo_factor.md index b33c65114124..620ebf98f388 100644 --- a/docs/content/reference/types/components/albedo_factor.md +++ b/docs/content/reference/types/components/albedo_factor.md @@ -17,7 +17,7 @@ uint32 ## API reference links * 🌊 [C++ API docs for `AlbedoFactor`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1components_1_1AlbedoFactor.html) * 🐍 [Python API docs for `AlbedoFactor`](https://ref.rerun.io/docs/python/stable/common/components#rerun.components.AlbedoFactor) - * 🦀 [Rust API docs for `AlbedoFactor`](https://ref.rerun.io/docs/rust/stable/rerun/components/struct.AlbedoFactor.html) + * 🦀 [Rust API docs for `AlbedoFactor`](https://docs.rs/rerun/latest/rerun/components/struct.AlbedoFactor.html) ## Used by diff --git a/docs/content/reference/types/components/annotation_context.md b/docs/content/reference/types/components/annotation_context.md index 5edfad354652..eb4402d89374 100644 --- a/docs/content/reference/types/components/annotation_context.md +++ b/docs/content/reference/types/components/annotation_context.md @@ -38,7 +38,7 @@ List ## API reference links * 🌊 [C++ API docs for `Blob`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1components_1_1Blob.html) * 🐍 [Python API docs for `Blob`](https://ref.rerun.io/docs/python/stable/common/components#rerun.components.Blob) - * 🦀 [Rust API docs for `Blob`](https://ref.rerun.io/docs/rust/stable/rerun/components/struct.Blob.html) + * 🦀 [Rust API docs for `Blob`](https://docs.rs/rerun/latest/rerun/components/struct.Blob.html) ## Used by diff --git a/docs/content/reference/types/components/class_id.md b/docs/content/reference/types/components/class_id.md index fc4e8e0ab290..a808c474cdb2 100644 --- a/docs/content/reference/types/components/class_id.md +++ b/docs/content/reference/types/components/class_id.md @@ -17,7 +17,7 @@ uint16 ## API reference links * 🌊 [C++ API docs for `ClassId`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1components_1_1ClassId.html) * 🐍 [Python API docs for `ClassId`](https://ref.rerun.io/docs/python/stable/common/components#rerun.components.ClassId) - * 🦀 [Rust API docs for `ClassId`](https://ref.rerun.io/docs/rust/stable/rerun/components/struct.ClassId.html) + * 🦀 [Rust API docs for `ClassId`](https://docs.rs/rerun/latest/rerun/components/struct.ClassId.html) ## Used by diff --git a/docs/content/reference/types/components/clear_is_recursive.md b/docs/content/reference/types/components/clear_is_recursive.md index b649b15a8fde..ef8b8e2d8117 100644 --- a/docs/content/reference/types/components/clear_is_recursive.md +++ b/docs/content/reference/types/components/clear_is_recursive.md @@ -17,7 +17,7 @@ boolean ## API reference links * 🌊 [C++ API docs for `ClearIsRecursive`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1components_1_1ClearIsRecursive.html) * 🐍 [Python API docs for `ClearIsRecursive`](https://ref.rerun.io/docs/python/stable/common/components#rerun.components.ClearIsRecursive) - * 🦀 [Rust API docs for `ClearIsRecursive`](https://ref.rerun.io/docs/rust/stable/rerun/components/struct.ClearIsRecursive.html) + * 🦀 [Rust API docs for `ClearIsRecursive`](https://docs.rs/rerun/latest/rerun/components/struct.ClearIsRecursive.html) ## Used by diff --git a/docs/content/reference/types/components/color.md b/docs/content/reference/types/components/color.md index 465fbcb4b752..32fcd7eb4c97 100644 --- a/docs/content/reference/types/components/color.md +++ b/docs/content/reference/types/components/color.md @@ -20,7 +20,7 @@ uint32 ## API reference links * 🌊 [C++ API docs for `Color`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1components_1_1Color.html) * 🐍 [Python API docs for `Color`](https://ref.rerun.io/docs/python/stable/common/components#rerun.components.Color) - * 🦀 [Rust API docs for `Color`](https://ref.rerun.io/docs/rust/stable/rerun/components/struct.Color.html) + * 🦀 [Rust API docs for `Color`](https://docs.rs/rerun/latest/rerun/components/struct.Color.html) ## Used by diff --git a/docs/content/reference/types/components/colormap.md b/docs/content/reference/types/components/colormap.md index 31c6e8558057..70de09de6056 100644 --- a/docs/content/reference/types/components/colormap.md +++ b/docs/content/reference/types/components/colormap.md @@ -63,7 +63,7 @@ uint8 ## API reference links * 🌊 [C++ API docs for `Colormap`](https://ref.rerun.io/docs/cpp/stable/namespacererun_1_1components.html) * 🐍 [Python API docs for `Colormap`](https://ref.rerun.io/docs/python/stable/common/components#rerun.components.Colormap) - * 🦀 [Rust API docs for `Colormap`](https://ref.rerun.io/docs/rust/stable/rerun/components/enum.Colormap.html) + * 🦀 [Rust API docs for `Colormap`](https://docs.rs/rerun/latest/rerun/components/enum.Colormap.html) ## Used by diff --git a/docs/content/reference/types/components/depth_meter.md b/docs/content/reference/types/components/depth_meter.md index cbf311a5017e..1d538ae6a479 100644 --- a/docs/content/reference/types/components/depth_meter.md +++ b/docs/content/reference/types/components/depth_meter.md @@ -24,7 +24,7 @@ float32 ## API reference links * 🌊 [C++ API docs for `DepthMeter`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1components_1_1DepthMeter.html) * 🐍 [Python API docs for `DepthMeter`](https://ref.rerun.io/docs/python/stable/common/components#rerun.components.DepthMeter) - * 🦀 [Rust API docs for `DepthMeter`](https://ref.rerun.io/docs/rust/stable/rerun/components/struct.DepthMeter.html) + * 🦀 [Rust API docs for `DepthMeter`](https://docs.rs/rerun/latest/rerun/components/struct.DepthMeter.html) ## Used by diff --git a/docs/content/reference/types/components/disconnected_space.md b/docs/content/reference/types/components/disconnected_space.md index ca5a795e536b..4f7f472db1ce 100644 --- a/docs/content/reference/types/components/disconnected_space.md +++ b/docs/content/reference/types/components/disconnected_space.md @@ -22,7 +22,7 @@ boolean ## API reference links * 🌊 [C++ API docs for `DisconnectedSpace`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1components_1_1DisconnectedSpace.html) * 🐍 [Python API docs for `DisconnectedSpace`](https://ref.rerun.io/docs/python/stable/common/components#rerun.components.DisconnectedSpace) - * 🦀 [Rust API docs for `DisconnectedSpace`](https://ref.rerun.io/docs/rust/stable/rerun/components/struct.DisconnectedSpace.html) + * 🦀 [Rust API docs for `DisconnectedSpace`](https://docs.rs/rerun/latest/rerun/components/struct.DisconnectedSpace.html) ## Used by diff --git a/docs/content/reference/types/components/draw_order.md b/docs/content/reference/types/components/draw_order.md index 5795701856fe..deb5c0213ce7 100644 --- a/docs/content/reference/types/components/draw_order.md +++ b/docs/content/reference/types/components/draw_order.md @@ -22,7 +22,7 @@ float32 ## API reference links * 🌊 [C++ API docs for `DrawOrder`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1components_1_1DrawOrder.html) * 🐍 [Python API docs for `DrawOrder`](https://ref.rerun.io/docs/python/stable/common/components#rerun.components.DrawOrder) - * 🦀 [Rust API docs for `DrawOrder`](https://ref.rerun.io/docs/rust/stable/rerun/components/struct.DrawOrder.html) + * 🦀 [Rust API docs for `DrawOrder`](https://docs.rs/rerun/latest/rerun/components/struct.DrawOrder.html) ## Used by diff --git a/docs/content/reference/types/components/entity_path.md b/docs/content/reference/types/components/entity_path.md index 23c1a9eac1a8..fd781a032d82 100644 --- a/docs/content/reference/types/components/entity_path.md +++ b/docs/content/reference/types/components/entity_path.md @@ -17,7 +17,7 @@ utf8 ## API reference links * 🌊 [C++ API docs for `EntityPath`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1components_1_1EntityPath.html) * 🐍 [Python API docs for `EntityPath`](https://ref.rerun.io/docs/python/stable/common/components#rerun.components.EntityPath) - * 🦀 [Rust API docs for `EntityPath`](https://ref.rerun.io/docs/rust/stable/rerun/components/struct.EntityPath.html) + * 🦀 [Rust API docs for `EntityPath`](https://docs.rs/rerun/latest/rerun/components/struct.EntityPath.html) ## Used by diff --git a/docs/content/reference/types/components/fill_mode.md b/docs/content/reference/types/components/fill_mode.md index 6782e4d7b968..f95ed3ac01a6 100644 --- a/docs/content/reference/types/components/fill_mode.md +++ b/docs/content/reference/types/components/fill_mode.md @@ -36,7 +36,7 @@ uint8 ## API reference links * 🌊 [C++ API docs for `FillMode`](https://ref.rerun.io/docs/cpp/stable/namespacererun_1_1components.html) * 🐍 [Python API docs for `FillMode`](https://ref.rerun.io/docs/python/stable/common/components#rerun.components.FillMode) - * 🦀 [Rust API docs for `FillMode`](https://ref.rerun.io/docs/rust/stable/rerun/components/enum.FillMode.html) + * 🦀 [Rust API docs for `FillMode`](https://docs.rs/rerun/latest/rerun/components/enum.FillMode.html) ## Used by diff --git a/docs/content/reference/types/components/fill_ratio.md b/docs/content/reference/types/components/fill_ratio.md index 344b08d00f82..e9a14ea74a22 100644 --- a/docs/content/reference/types/components/fill_ratio.md +++ b/docs/content/reference/types/components/fill_ratio.md @@ -22,7 +22,7 @@ float32 ## API reference links * 🌊 [C++ API docs for `FillRatio`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1components_1_1FillRatio.html) * 🐍 [Python API docs for `FillRatio`](https://ref.rerun.io/docs/python/stable/common/components#rerun.components.FillRatio) - * 🦀 [Rust API docs for `FillRatio`](https://ref.rerun.io/docs/rust/stable/rerun/components/struct.FillRatio.html) + * 🦀 [Rust API docs for `FillRatio`](https://docs.rs/rerun/latest/rerun/components/struct.FillRatio.html) ## Used by diff --git a/docs/content/reference/types/components/gamma_correction.md b/docs/content/reference/types/components/gamma_correction.md index 4d1c3a63f195..18465ef0e832 100644 --- a/docs/content/reference/types/components/gamma_correction.md +++ b/docs/content/reference/types/components/gamma_correction.md @@ -23,6 +23,6 @@ float32 ## API reference links * 🌊 [C++ API docs for `GammaCorrection`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1components_1_1GammaCorrection.html) * 🐍 [Python API docs for `GammaCorrection`](https://ref.rerun.io/docs/python/stable/common/components#rerun.components.GammaCorrection) - * 🦀 [Rust API docs for `GammaCorrection`](https://ref.rerun.io/docs/rust/stable/rerun/components/struct.GammaCorrection.html) + * 🦀 [Rust API docs for `GammaCorrection`](https://docs.rs/rerun/latest/rerun/components/struct.GammaCorrection.html) diff --git a/docs/content/reference/types/components/geo_line_string.md b/docs/content/reference/types/components/geo_line_string.md index 683149faa231..b56e6aa435c6 100644 --- a/docs/content/reference/types/components/geo_line_string.md +++ b/docs/content/reference/types/components/geo_line_string.md @@ -14,7 +14,7 @@ List> ## API reference links * 🌊 [C++ API docs for `GeoLineString`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1components_1_1GeoLineString.html) * 🐍 [Python API docs for `GeoLineString`](https://ref.rerun.io/docs/python/stable/common/components#rerun.components.GeoLineString) - * 🦀 [Rust API docs for `GeoLineString`](https://ref.rerun.io/docs/rust/stable/rerun/components/struct.GeoLineString.html) + * 🦀 [Rust API docs for `GeoLineString`](https://docs.rs/rerun/latest/rerun/components/struct.GeoLineString.html) ## Used by diff --git a/docs/content/reference/types/components/half_size2d.md b/docs/content/reference/types/components/half_size2d.md index ebcfa20828b8..d62d8ced89ee 100644 --- a/docs/content/reference/types/components/half_size2d.md +++ b/docs/content/reference/types/components/half_size2d.md @@ -22,7 +22,7 @@ FixedSizeList<2, float32> ## API reference links * 🌊 [C++ API docs for `HalfSize2D`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1components_1_1HalfSize2D.html) * 🐍 [Python API docs for `HalfSize2D`](https://ref.rerun.io/docs/python/stable/common/components#rerun.components.HalfSize2D) - * 🦀 [Rust API docs for `HalfSize2D`](https://ref.rerun.io/docs/rust/stable/rerun/components/struct.HalfSize2D.html) + * 🦀 [Rust API docs for `HalfSize2D`](https://docs.rs/rerun/latest/rerun/components/struct.HalfSize2D.html) ## Used by diff --git a/docs/content/reference/types/components/half_size3d.md b/docs/content/reference/types/components/half_size3d.md index 2bdb5e67c663..4d155a50f776 100644 --- a/docs/content/reference/types/components/half_size3d.md +++ b/docs/content/reference/types/components/half_size3d.md @@ -22,7 +22,7 @@ FixedSizeList<3, float32> ## API reference links * 🌊 [C++ API docs for `HalfSize3D`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1components_1_1HalfSize3D.html) * 🐍 [Python API docs for `HalfSize3D`](https://ref.rerun.io/docs/python/stable/common/components#rerun.components.HalfSize3D) - * 🦀 [Rust API docs for `HalfSize3D`](https://ref.rerun.io/docs/rust/stable/rerun/components/struct.HalfSize3D.html) + * 🦀 [Rust API docs for `HalfSize3D`](https://docs.rs/rerun/latest/rerun/components/struct.HalfSize3D.html) ## Used by diff --git a/docs/content/reference/types/components/image_buffer.md b/docs/content/reference/types/components/image_buffer.md index 73a4232eab0e..b8c63d1ea96c 100644 --- a/docs/content/reference/types/components/image_buffer.md +++ b/docs/content/reference/types/components/image_buffer.md @@ -19,7 +19,7 @@ List ## API reference links * 🌊 [C++ API docs for `ImageBuffer`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1components_1_1ImageBuffer.html) * 🐍 [Python API docs for `ImageBuffer`](https://ref.rerun.io/docs/python/stable/common/components#rerun.components.ImageBuffer) - * 🦀 [Rust API docs for `ImageBuffer`](https://ref.rerun.io/docs/rust/stable/rerun/components/struct.ImageBuffer.html) + * 🦀 [Rust API docs for `ImageBuffer`](https://docs.rs/rerun/latest/rerun/components/struct.ImageBuffer.html) ## Used by diff --git a/docs/content/reference/types/components/image_format.md b/docs/content/reference/types/components/image_format.md index 496c115dae79..da3a4c0cb844 100644 --- a/docs/content/reference/types/components/image_format.md +++ b/docs/content/reference/types/components/image_format.md @@ -23,7 +23,7 @@ Struct { ## API reference links * 🌊 [C++ API docs for `ImageFormat`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1components_1_1ImageFormat.html) * 🐍 [Python API docs for `ImageFormat`](https://ref.rerun.io/docs/python/stable/common/components#rerun.components.ImageFormat) - * 🦀 [Rust API docs for `ImageFormat`](https://ref.rerun.io/docs/rust/stable/rerun/components/struct.ImageFormat.html) + * 🦀 [Rust API docs for `ImageFormat`](https://docs.rs/rerun/latest/rerun/components/struct.ImageFormat.html) ## Used by diff --git a/docs/content/reference/types/components/image_plane_distance.md b/docs/content/reference/types/components/image_plane_distance.md index 92b22f030769..913f703a6758 100644 --- a/docs/content/reference/types/components/image_plane_distance.md +++ b/docs/content/reference/types/components/image_plane_distance.md @@ -19,7 +19,7 @@ float32 ## API reference links * 🌊 [C++ API docs for `ImagePlaneDistance`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1components_1_1ImagePlaneDistance.html) * 🐍 [Python API docs for `ImagePlaneDistance`](https://ref.rerun.io/docs/python/stable/common/components#rerun.components.ImagePlaneDistance) - * 🦀 [Rust API docs for `ImagePlaneDistance`](https://ref.rerun.io/docs/rust/stable/rerun/components/struct.ImagePlaneDistance.html) + * 🦀 [Rust API docs for `ImagePlaneDistance`](https://docs.rs/rerun/latest/rerun/components/struct.ImagePlaneDistance.html) ## Used by diff --git a/docs/content/reference/types/components/keypoint_id.md b/docs/content/reference/types/components/keypoint_id.md index e26cd7431f50..8d405c519827 100644 --- a/docs/content/reference/types/components/keypoint_id.md +++ b/docs/content/reference/types/components/keypoint_id.md @@ -17,7 +17,7 @@ uint16 ## API reference links * 🌊 [C++ API docs for `KeypointId`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1components_1_1KeypointId.html) * 🐍 [Python API docs for `KeypointId`](https://ref.rerun.io/docs/python/stable/common/components#rerun.components.KeypointId) - * 🦀 [Rust API docs for `KeypointId`](https://ref.rerun.io/docs/rust/stable/rerun/components/struct.KeypointId.html) + * 🦀 [Rust API docs for `KeypointId`](https://docs.rs/rerun/latest/rerun/components/struct.KeypointId.html) ## Used by diff --git a/docs/content/reference/types/components/lat_lon.md b/docs/content/reference/types/components/lat_lon.md index e1b1976f58d8..c99770a309fd 100644 --- a/docs/content/reference/types/components/lat_lon.md +++ b/docs/content/reference/types/components/lat_lon.md @@ -17,7 +17,7 @@ FixedSizeList<2, float64> ## API reference links * 🌊 [C++ API docs for `LatLon`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1components_1_1LatLon.html) * 🐍 [Python API docs for `LatLon`](https://ref.rerun.io/docs/python/stable/common/components#rerun.components.LatLon) - * 🦀 [Rust API docs for `LatLon`](https://ref.rerun.io/docs/rust/stable/rerun/components/struct.LatLon.html) + * 🦀 [Rust API docs for `LatLon`](https://docs.rs/rerun/latest/rerun/components/struct.LatLon.html) ## Used by diff --git a/docs/content/reference/types/components/length.md b/docs/content/reference/types/components/length.md index c1f022d9e79b..3ca08ab2647f 100644 --- a/docs/content/reference/types/components/length.md +++ b/docs/content/reference/types/components/length.md @@ -20,7 +20,7 @@ float32 ## API reference links * 🌊 [C++ API docs for `Length`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1components_1_1Length.html) * 🐍 [Python API docs for `Length`](https://ref.rerun.io/docs/python/stable/common/components#rerun.components.Length) - * 🦀 [Rust API docs for `Length`](https://ref.rerun.io/docs/rust/stable/rerun/components/struct.Length.html) + * 🦀 [Rust API docs for `Length`](https://docs.rs/rerun/latest/rerun/components/struct.Length.html) ## Used by diff --git a/docs/content/reference/types/components/line_strip2d.md b/docs/content/reference/types/components/line_strip2d.md index 37a564b14a63..4cd8b225161e 100644 --- a/docs/content/reference/types/components/line_strip2d.md +++ b/docs/content/reference/types/components/line_strip2d.md @@ -25,7 +25,7 @@ List> ## API reference links * 🌊 [C++ API docs for `LineStrip2D`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1components_1_1LineStrip2D.html) * 🐍 [Python API docs for `LineStrip2D`](https://ref.rerun.io/docs/python/stable/common/components#rerun.components.LineStrip2D) - * 🦀 [Rust API docs for `LineStrip2D`](https://ref.rerun.io/docs/rust/stable/rerun/components/struct.LineStrip2D.html) + * 🦀 [Rust API docs for `LineStrip2D`](https://docs.rs/rerun/latest/rerun/components/struct.LineStrip2D.html) ## Used by diff --git a/docs/content/reference/types/components/line_strip3d.md b/docs/content/reference/types/components/line_strip3d.md index 732fc6e6f5f6..8bc3cc421fab 100644 --- a/docs/content/reference/types/components/line_strip3d.md +++ b/docs/content/reference/types/components/line_strip3d.md @@ -25,7 +25,7 @@ List> ## API reference links * 🌊 [C++ API docs for `LineStrip3D`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1components_1_1LineStrip3D.html) * 🐍 [Python API docs for `LineStrip3D`](https://ref.rerun.io/docs/python/stable/common/components#rerun.components.LineStrip3D) - * 🦀 [Rust API docs for `LineStrip3D`](https://ref.rerun.io/docs/rust/stable/rerun/components/struct.LineStrip3D.html) + * 🦀 [Rust API docs for `LineStrip3D`](https://docs.rs/rerun/latest/rerun/components/struct.LineStrip3D.html) ## Used by diff --git a/docs/content/reference/types/components/magnification_filter.md b/docs/content/reference/types/components/magnification_filter.md index 4909e723e965..425505e8b793 100644 --- a/docs/content/reference/types/components/magnification_filter.md +++ b/docs/content/reference/types/components/magnification_filter.md @@ -26,6 +26,6 @@ uint8 ## API reference links * 🌊 [C++ API docs for `MagnificationFilter`](https://ref.rerun.io/docs/cpp/stable/namespacererun_1_1components.html) * 🐍 [Python API docs for `MagnificationFilter`](https://ref.rerun.io/docs/python/stable/common/components#rerun.components.MagnificationFilter) - * 🦀 [Rust API docs for `MagnificationFilter`](https://ref.rerun.io/docs/rust/stable/rerun/components/enum.MagnificationFilter.html) + * 🦀 [Rust API docs for `MagnificationFilter`](https://docs.rs/rerun/latest/rerun/components/enum.MagnificationFilter.html) diff --git a/docs/content/reference/types/components/marker_shape.md b/docs/content/reference/types/components/marker_shape.md index 2cf54112dd68..e0fe1c1cdd83 100644 --- a/docs/content/reference/types/components/marker_shape.md +++ b/docs/content/reference/types/components/marker_shape.md @@ -45,7 +45,7 @@ uint8 ## API reference links * 🌊 [C++ API docs for `MarkerShape`](https://ref.rerun.io/docs/cpp/stable/namespacererun_1_1components.html) * 🐍 [Python API docs for `MarkerShape`](https://ref.rerun.io/docs/python/stable/common/components#rerun.components.MarkerShape) - * 🦀 [Rust API docs for `MarkerShape`](https://ref.rerun.io/docs/rust/stable/rerun/components/enum.MarkerShape.html) + * 🦀 [Rust API docs for `MarkerShape`](https://docs.rs/rerun/latest/rerun/components/enum.MarkerShape.html) ## Used by diff --git a/docs/content/reference/types/components/marker_size.md b/docs/content/reference/types/components/marker_size.md index e13f3d115815..48d47b0371cc 100644 --- a/docs/content/reference/types/components/marker_size.md +++ b/docs/content/reference/types/components/marker_size.md @@ -17,7 +17,7 @@ float32 ## API reference links * 🌊 [C++ API docs for `MarkerSize`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1components_1_1MarkerSize.html) * 🐍 [Python API docs for `MarkerSize`](https://ref.rerun.io/docs/python/stable/common/components#rerun.components.MarkerSize) - * 🦀 [Rust API docs for `MarkerSize`](https://ref.rerun.io/docs/rust/stable/rerun/components/struct.MarkerSize.html) + * 🦀 [Rust API docs for `MarkerSize`](https://docs.rs/rerun/latest/rerun/components/struct.MarkerSize.html) ## Used by diff --git a/docs/content/reference/types/components/media_type.md b/docs/content/reference/types/components/media_type.md index 66f3819a9175..ffe3f277bc39 100644 --- a/docs/content/reference/types/components/media_type.md +++ b/docs/content/reference/types/components/media_type.md @@ -20,7 +20,7 @@ utf8 ## API reference links * 🌊 [C++ API docs for `MediaType`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1components_1_1MediaType.html) * 🐍 [Python API docs for `MediaType`](https://ref.rerun.io/docs/python/stable/common/components#rerun.components.MediaType) - * 🦀 [Rust API docs for `MediaType`](https://ref.rerun.io/docs/rust/stable/rerun/components/struct.MediaType.html) + * 🦀 [Rust API docs for `MediaType`](https://docs.rs/rerun/latest/rerun/components/struct.MediaType.html) ## Used by diff --git a/docs/content/reference/types/components/name.md b/docs/content/reference/types/components/name.md index 1330f3a87cd8..85bb4afdd28d 100644 --- a/docs/content/reference/types/components/name.md +++ b/docs/content/reference/types/components/name.md @@ -17,7 +17,7 @@ utf8 ## API reference links * 🌊 [C++ API docs for `Name`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1components_1_1Name.html) * 🐍 [Python API docs for `Name`](https://ref.rerun.io/docs/python/stable/common/components#rerun.components.Name) - * 🦀 [Rust API docs for `Name`](https://ref.rerun.io/docs/rust/stable/rerun/components/struct.Name.html) + * 🦀 [Rust API docs for `Name`](https://docs.rs/rerun/latest/rerun/components/struct.Name.html) ## Used by diff --git a/docs/content/reference/types/components/opacity.md b/docs/content/reference/types/components/opacity.md index 4e0a48b469c9..558c8b1951fe 100644 --- a/docs/content/reference/types/components/opacity.md +++ b/docs/content/reference/types/components/opacity.md @@ -20,7 +20,7 @@ float32 ## API reference links * 🌊 [C++ API docs for `Opacity`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1components_1_1Opacity.html) * 🐍 [Python API docs for `Opacity`](https://ref.rerun.io/docs/python/stable/common/components#rerun.components.Opacity) - * 🦀 [Rust API docs for `Opacity`](https://ref.rerun.io/docs/rust/stable/rerun/components/struct.Opacity.html) + * 🦀 [Rust API docs for `Opacity`](https://docs.rs/rerun/latest/rerun/components/struct.Opacity.html) ## Used by diff --git a/docs/content/reference/types/components/pinhole_projection.md b/docs/content/reference/types/components/pinhole_projection.md index 5ba04be7be6c..4f8d53d6d81d 100644 --- a/docs/content/reference/types/components/pinhole_projection.md +++ b/docs/content/reference/types/components/pinhole_projection.md @@ -27,7 +27,7 @@ FixedSizeList<9, float32> ## API reference links * 🌊 [C++ API docs for `PinholeProjection`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1components_1_1PinholeProjection.html) * 🐍 [Python API docs for `PinholeProjection`](https://ref.rerun.io/docs/python/stable/common/components#rerun.components.PinholeProjection) - * 🦀 [Rust API docs for `PinholeProjection`](https://ref.rerun.io/docs/rust/stable/rerun/components/struct.PinholeProjection.html) + * 🦀 [Rust API docs for `PinholeProjection`](https://docs.rs/rerun/latest/rerun/components/struct.PinholeProjection.html) ## Used by diff --git a/docs/content/reference/types/components/pose_rotation_axis_angle.md b/docs/content/reference/types/components/pose_rotation_axis_angle.md index 52cb53876287..48d12359136c 100644 --- a/docs/content/reference/types/components/pose_rotation_axis_angle.md +++ b/docs/content/reference/types/components/pose_rotation_axis_angle.md @@ -20,7 +20,7 @@ Struct { ## API reference links * 🌊 [C++ API docs for `PoseRotationAxisAngle`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1components_1_1PoseRotationAxisAngle.html) * 🐍 [Python API docs for `PoseRotationAxisAngle`](https://ref.rerun.io/docs/python/stable/common/components#rerun.components.PoseRotationAxisAngle) - * 🦀 [Rust API docs for `PoseRotationAxisAngle`](https://ref.rerun.io/docs/rust/stable/rerun/components/struct.PoseRotationAxisAngle.html) + * 🦀 [Rust API docs for `PoseRotationAxisAngle`](https://docs.rs/rerun/latest/rerun/components/struct.PoseRotationAxisAngle.html) ## Used by diff --git a/docs/content/reference/types/components/pose_rotation_quat.md b/docs/content/reference/types/components/pose_rotation_quat.md index 0caab2494362..7234e9163f4b 100644 --- a/docs/content/reference/types/components/pose_rotation_quat.md +++ b/docs/content/reference/types/components/pose_rotation_quat.md @@ -20,7 +20,7 @@ FixedSizeList<4, float32> ## API reference links * 🌊 [C++ API docs for `PoseRotationQuat`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1components_1_1PoseRotationQuat.html) * 🐍 [Python API docs for `PoseRotationQuat`](https://ref.rerun.io/docs/python/stable/common/components#rerun.components.PoseRotationQuat) - * 🦀 [Rust API docs for `PoseRotationQuat`](https://ref.rerun.io/docs/rust/stable/rerun/components/struct.PoseRotationQuat.html) + * 🦀 [Rust API docs for `PoseRotationQuat`](https://docs.rs/rerun/latest/rerun/components/struct.PoseRotationQuat.html) ## Used by diff --git a/docs/content/reference/types/components/pose_scale3d.md b/docs/content/reference/types/components/pose_scale3d.md index e5a23e911965..353c2cac368f 100644 --- a/docs/content/reference/types/components/pose_scale3d.md +++ b/docs/content/reference/types/components/pose_scale3d.md @@ -21,7 +21,7 @@ FixedSizeList<3, float32> ## API reference links * 🌊 [C++ API docs for `PoseScale3D`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1components_1_1PoseScale3D.html) * 🐍 [Python API docs for `PoseScale3D`](https://ref.rerun.io/docs/python/stable/common/components#rerun.components.PoseScale3D) - * 🦀 [Rust API docs for `PoseScale3D`](https://ref.rerun.io/docs/rust/stable/rerun/components/struct.PoseScale3D.html) + * 🦀 [Rust API docs for `PoseScale3D`](https://docs.rs/rerun/latest/rerun/components/struct.PoseScale3D.html) ## Used by diff --git a/docs/content/reference/types/components/pose_transform_mat3x3.md b/docs/content/reference/types/components/pose_transform_mat3x3.md index 7c97332d42b5..eff04995c452 100644 --- a/docs/content/reference/types/components/pose_transform_mat3x3.md +++ b/docs/content/reference/types/components/pose_transform_mat3x3.md @@ -29,7 +29,7 @@ FixedSizeList<9, float32> ## API reference links * 🌊 [C++ API docs for `PoseTransformMat3x3`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1components_1_1PoseTransformMat3x3.html) * 🐍 [Python API docs for `PoseTransformMat3x3`](https://ref.rerun.io/docs/python/stable/common/components#rerun.components.PoseTransformMat3x3) - * 🦀 [Rust API docs for `PoseTransformMat3x3`](https://ref.rerun.io/docs/rust/stable/rerun/components/struct.PoseTransformMat3x3.html) + * 🦀 [Rust API docs for `PoseTransformMat3x3`](https://docs.rs/rerun/latest/rerun/components/struct.PoseTransformMat3x3.html) ## Used by diff --git a/docs/content/reference/types/components/pose_translation3d.md b/docs/content/reference/types/components/pose_translation3d.md index d52136103587..e752f94a41e3 100644 --- a/docs/content/reference/types/components/pose_translation3d.md +++ b/docs/content/reference/types/components/pose_translation3d.md @@ -17,7 +17,7 @@ FixedSizeList<3, float32> ## API reference links * 🌊 [C++ API docs for `PoseTranslation3D`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1components_1_1PoseTranslation3D.html) * 🐍 [Python API docs for `PoseTranslation3D`](https://ref.rerun.io/docs/python/stable/common/components#rerun.components.PoseTranslation3D) - * 🦀 [Rust API docs for `PoseTranslation3D`](https://ref.rerun.io/docs/rust/stable/rerun/components/struct.PoseTranslation3D.html) + * 🦀 [Rust API docs for `PoseTranslation3D`](https://docs.rs/rerun/latest/rerun/components/struct.PoseTranslation3D.html) ## Used by diff --git a/docs/content/reference/types/components/position2d.md b/docs/content/reference/types/components/position2d.md index 68a1241520cc..783dc3757ad3 100644 --- a/docs/content/reference/types/components/position2d.md +++ b/docs/content/reference/types/components/position2d.md @@ -17,7 +17,7 @@ FixedSizeList<2, float32> ## API reference links * 🌊 [C++ API docs for `Position2D`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1components_1_1Position2D.html) * 🐍 [Python API docs for `Position2D`](https://ref.rerun.io/docs/python/stable/common/components#rerun.components.Position2D) - * 🦀 [Rust API docs for `Position2D`](https://ref.rerun.io/docs/rust/stable/rerun/components/struct.Position2D.html) + * 🦀 [Rust API docs for `Position2D`](https://docs.rs/rerun/latest/rerun/components/struct.Position2D.html) ## Used by diff --git a/docs/content/reference/types/components/position3d.md b/docs/content/reference/types/components/position3d.md index 980a14342c00..c4c3884a3e57 100644 --- a/docs/content/reference/types/components/position3d.md +++ b/docs/content/reference/types/components/position3d.md @@ -17,7 +17,7 @@ FixedSizeList<3, float32> ## API reference links * 🌊 [C++ API docs for `Position3D`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1components_1_1Position3D.html) * 🐍 [Python API docs for `Position3D`](https://ref.rerun.io/docs/python/stable/common/components#rerun.components.Position3D) - * 🦀 [Rust API docs for `Position3D`](https://ref.rerun.io/docs/rust/stable/rerun/components/struct.Position3D.html) + * 🦀 [Rust API docs for `Position3D`](https://docs.rs/rerun/latest/rerun/components/struct.Position3D.html) ## Used by diff --git a/docs/content/reference/types/components/radius.md b/docs/content/reference/types/components/radius.md index d88fc4d03c94..5db6e4081e91 100644 --- a/docs/content/reference/types/components/radius.md +++ b/docs/content/reference/types/components/radius.md @@ -24,7 +24,7 @@ float32 ## API reference links * 🌊 [C++ API docs for `Radius`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1components_1_1Radius.html) * 🐍 [Python API docs for `Radius`](https://ref.rerun.io/docs/python/stable/common/components#rerun.components.Radius) - * 🦀 [Rust API docs for `Radius`](https://ref.rerun.io/docs/rust/stable/rerun/components/struct.Radius.html) + * 🦀 [Rust API docs for `Radius`](https://docs.rs/rerun/latest/rerun/components/struct.Radius.html) ## Used by diff --git a/docs/content/reference/types/components/range1d.md b/docs/content/reference/types/components/range1d.md index c504ea5b6cff..d35374e4681a 100644 --- a/docs/content/reference/types/components/range1d.md +++ b/docs/content/reference/types/components/range1d.md @@ -17,6 +17,6 @@ FixedSizeList<2, float64> ## API reference links * 🌊 [C++ API docs for `Range1D`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1components_1_1Range1D.html) * 🐍 [Python API docs for `Range1D`](https://ref.rerun.io/docs/python/stable/common/components#rerun.components.Range1D) - * 🦀 [Rust API docs for `Range1D`](https://ref.rerun.io/docs/rust/stable/rerun/components/struct.Range1D.html) + * 🦀 [Rust API docs for `Range1D`](https://docs.rs/rerun/latest/rerun/components/struct.Range1D.html) diff --git a/docs/content/reference/types/components/resolution.md b/docs/content/reference/types/components/resolution.md index 1752753aae81..c3ad8e6b1af5 100644 --- a/docs/content/reference/types/components/resolution.md +++ b/docs/content/reference/types/components/resolution.md @@ -19,7 +19,7 @@ FixedSizeList<2, float32> ## API reference links * 🌊 [C++ API docs for `Resolution`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1components_1_1Resolution.html) * 🐍 [Python API docs for `Resolution`](https://ref.rerun.io/docs/python/stable/common/components#rerun.components.Resolution) - * 🦀 [Rust API docs for `Resolution`](https://ref.rerun.io/docs/rust/stable/rerun/components/struct.Resolution.html) + * 🦀 [Rust API docs for `Resolution`](https://docs.rs/rerun/latest/rerun/components/struct.Resolution.html) ## Used by diff --git a/docs/content/reference/types/components/rotation_axis_angle.md b/docs/content/reference/types/components/rotation_axis_angle.md index ae04f9b8ebca..a1b3fb606577 100644 --- a/docs/content/reference/types/components/rotation_axis_angle.md +++ b/docs/content/reference/types/components/rotation_axis_angle.md @@ -20,7 +20,7 @@ Struct { ## API reference links * 🌊 [C++ API docs for `RotationAxisAngle`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1components_1_1RotationAxisAngle.html) * 🐍 [Python API docs for `RotationAxisAngle`](https://ref.rerun.io/docs/python/stable/common/components#rerun.components.RotationAxisAngle) - * 🦀 [Rust API docs for `RotationAxisAngle`](https://ref.rerun.io/docs/rust/stable/rerun/components/struct.RotationAxisAngle.html) + * 🦀 [Rust API docs for `RotationAxisAngle`](https://docs.rs/rerun/latest/rerun/components/struct.RotationAxisAngle.html) ## Used by diff --git a/docs/content/reference/types/components/rotation_quat.md b/docs/content/reference/types/components/rotation_quat.md index 7888cb711b77..696ffd7081e4 100644 --- a/docs/content/reference/types/components/rotation_quat.md +++ b/docs/content/reference/types/components/rotation_quat.md @@ -20,7 +20,7 @@ FixedSizeList<4, float32> ## API reference links * 🌊 [C++ API docs for `RotationQuat`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1components_1_1RotationQuat.html) * 🐍 [Python API docs for `RotationQuat`](https://ref.rerun.io/docs/python/stable/common/components#rerun.components.RotationQuat) - * 🦀 [Rust API docs for `RotationQuat`](https://ref.rerun.io/docs/rust/stable/rerun/components/struct.RotationQuat.html) + * 🦀 [Rust API docs for `RotationQuat`](https://docs.rs/rerun/latest/rerun/components/struct.RotationQuat.html) ## Used by diff --git a/docs/content/reference/types/components/scalar.md b/docs/content/reference/types/components/scalar.md index b27888260821..e41edb71b843 100644 --- a/docs/content/reference/types/components/scalar.md +++ b/docs/content/reference/types/components/scalar.md @@ -19,7 +19,7 @@ float64 ## API reference links * 🌊 [C++ API docs for `Scalar`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1components_1_1Scalar.html) * 🐍 [Python API docs for `Scalar`](https://ref.rerun.io/docs/python/stable/common/components#rerun.components.Scalar) - * 🦀 [Rust API docs for `Scalar`](https://ref.rerun.io/docs/rust/stable/rerun/components/struct.Scalar.html) + * 🦀 [Rust API docs for `Scalar`](https://docs.rs/rerun/latest/rerun/components/struct.Scalar.html) ## Used by diff --git a/docs/content/reference/types/components/scale3d.md b/docs/content/reference/types/components/scale3d.md index d6e70271d7b9..0c9a9d167088 100644 --- a/docs/content/reference/types/components/scale3d.md +++ b/docs/content/reference/types/components/scale3d.md @@ -21,7 +21,7 @@ FixedSizeList<3, float32> ## API reference links * 🌊 [C++ API docs for `Scale3D`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1components_1_1Scale3D.html) * 🐍 [Python API docs for `Scale3D`](https://ref.rerun.io/docs/python/stable/common/components#rerun.components.Scale3D) - * 🦀 [Rust API docs for `Scale3D`](https://ref.rerun.io/docs/rust/stable/rerun/components/struct.Scale3D.html) + * 🦀 [Rust API docs for `Scale3D`](https://docs.rs/rerun/latest/rerun/components/struct.Scale3D.html) ## Used by diff --git a/docs/content/reference/types/components/show_labels.md b/docs/content/reference/types/components/show_labels.md index 83e6d19fbc12..b8b6bc9e0fa7 100644 --- a/docs/content/reference/types/components/show_labels.md +++ b/docs/content/reference/types/components/show_labels.md @@ -21,7 +21,7 @@ boolean ## API reference links * 🌊 [C++ API docs for `ShowLabels`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1components_1_1ShowLabels.html) * 🐍 [Python API docs for `ShowLabels`](https://ref.rerun.io/docs/python/stable/common/components#rerun.components.ShowLabels) - * 🦀 [Rust API docs for `ShowLabels`](https://ref.rerun.io/docs/rust/stable/rerun/components/struct.ShowLabels.html) + * 🦀 [Rust API docs for `ShowLabels`](https://docs.rs/rerun/latest/rerun/components/struct.ShowLabels.html) ## Used by diff --git a/docs/content/reference/types/components/stroke_width.md b/docs/content/reference/types/components/stroke_width.md index 9bf7d491765b..42a47e54c2fb 100644 --- a/docs/content/reference/types/components/stroke_width.md +++ b/docs/content/reference/types/components/stroke_width.md @@ -17,7 +17,7 @@ float32 ## API reference links * 🌊 [C++ API docs for `StrokeWidth`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1components_1_1StrokeWidth.html) * 🐍 [Python API docs for `StrokeWidth`](https://ref.rerun.io/docs/python/stable/common/components#rerun.components.StrokeWidth) - * 🦀 [Rust API docs for `StrokeWidth`](https://ref.rerun.io/docs/rust/stable/rerun/components/struct.StrokeWidth.html) + * 🦀 [Rust API docs for `StrokeWidth`](https://docs.rs/rerun/latest/rerun/components/struct.StrokeWidth.html) ## Used by diff --git a/docs/content/reference/types/components/tensor_data.md b/docs/content/reference/types/components/tensor_data.md index 7cbaae806035..1d6efe720691 100644 --- a/docs/content/reference/types/components/tensor_data.md +++ b/docs/content/reference/types/components/tensor_data.md @@ -43,7 +43,7 @@ Struct { ## API reference links * 🌊 [C++ API docs for `TensorData`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1components_1_1TensorData.html) * 🐍 [Python API docs for `TensorData`](https://ref.rerun.io/docs/python/stable/common/components#rerun.components.TensorData) - * 🦀 [Rust API docs for `TensorData`](https://ref.rerun.io/docs/rust/stable/rerun/components/struct.TensorData.html) + * 🦀 [Rust API docs for `TensorData`](https://docs.rs/rerun/latest/rerun/components/struct.TensorData.html) ## Used by diff --git a/docs/content/reference/types/components/tensor_dimension_index_selection.md b/docs/content/reference/types/components/tensor_dimension_index_selection.md index 62f941df18dc..cf791cc7206e 100644 --- a/docs/content/reference/types/components/tensor_dimension_index_selection.md +++ b/docs/content/reference/types/components/tensor_dimension_index_selection.md @@ -20,6 +20,6 @@ Struct { ## API reference links * 🌊 [C++ API docs for `TensorDimensionIndexSelection`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1components_1_1TensorDimensionIndexSelection.html) * 🐍 [Python API docs for `TensorDimensionIndexSelection`](https://ref.rerun.io/docs/python/stable/common/components#rerun.components.TensorDimensionIndexSelection) - * 🦀 [Rust API docs for `TensorDimensionIndexSelection`](https://ref.rerun.io/docs/rust/stable/rerun/components/struct.TensorDimensionIndexSelection.html) + * 🦀 [Rust API docs for `TensorDimensionIndexSelection`](https://docs.rs/rerun/latest/rerun/components/struct.TensorDimensionIndexSelection.html) diff --git a/docs/content/reference/types/components/tensor_height_dimension.md b/docs/content/reference/types/components/tensor_height_dimension.md index 21c2540e22ac..e494ec3fca15 100644 --- a/docs/content/reference/types/components/tensor_height_dimension.md +++ b/docs/content/reference/types/components/tensor_height_dimension.md @@ -20,6 +20,6 @@ Struct { ## API reference links * 🌊 [C++ API docs for `TensorHeightDimension`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1components_1_1TensorHeightDimension.html) * 🐍 [Python API docs for `TensorHeightDimension`](https://ref.rerun.io/docs/python/stable/common/components#rerun.components.TensorHeightDimension) - * 🦀 [Rust API docs for `TensorHeightDimension`](https://ref.rerun.io/docs/rust/stable/rerun/components/struct.TensorHeightDimension.html) + * 🦀 [Rust API docs for `TensorHeightDimension`](https://docs.rs/rerun/latest/rerun/components/struct.TensorHeightDimension.html) diff --git a/docs/content/reference/types/components/tensor_width_dimension.md b/docs/content/reference/types/components/tensor_width_dimension.md index 55b4417dc704..e9ecfcdceda4 100644 --- a/docs/content/reference/types/components/tensor_width_dimension.md +++ b/docs/content/reference/types/components/tensor_width_dimension.md @@ -20,6 +20,6 @@ Struct { ## API reference links * 🌊 [C++ API docs for `TensorWidthDimension`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1components_1_1TensorWidthDimension.html) * 🐍 [Python API docs for `TensorWidthDimension`](https://ref.rerun.io/docs/python/stable/common/components#rerun.components.TensorWidthDimension) - * 🦀 [Rust API docs for `TensorWidthDimension`](https://ref.rerun.io/docs/rust/stable/rerun/components/struct.TensorWidthDimension.html) + * 🦀 [Rust API docs for `TensorWidthDimension`](https://docs.rs/rerun/latest/rerun/components/struct.TensorWidthDimension.html) diff --git a/docs/content/reference/types/components/texcoord2d.md b/docs/content/reference/types/components/texcoord2d.md index 7d59f6df88b3..f7806492b348 100644 --- a/docs/content/reference/types/components/texcoord2d.md +++ b/docs/content/reference/types/components/texcoord2d.md @@ -32,7 +32,7 @@ FixedSizeList<2, float32> ## API reference links * 🌊 [C++ API docs for `Texcoord2D`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1components_1_1Texcoord2D.html) * 🐍 [Python API docs for `Texcoord2D`](https://ref.rerun.io/docs/python/stable/common/components#rerun.components.Texcoord2D) - * 🦀 [Rust API docs for `Texcoord2D`](https://ref.rerun.io/docs/rust/stable/rerun/components/struct.Texcoord2D.html) + * 🦀 [Rust API docs for `Texcoord2D`](https://docs.rs/rerun/latest/rerun/components/struct.Texcoord2D.html) ## Used by diff --git a/docs/content/reference/types/components/text.md b/docs/content/reference/types/components/text.md index 7ad03357d2c8..1dcf5e2284cb 100644 --- a/docs/content/reference/types/components/text.md +++ b/docs/content/reference/types/components/text.md @@ -17,7 +17,7 @@ utf8 ## API reference links * 🌊 [C++ API docs for `Text`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1components_1_1Text.html) * 🐍 [Python API docs for `Text`](https://ref.rerun.io/docs/python/stable/common/components#rerun.components.Text) - * 🦀 [Rust API docs for `Text`](https://ref.rerun.io/docs/rust/stable/rerun/components/struct.Text.html) + * 🦀 [Rust API docs for `Text`](https://docs.rs/rerun/latest/rerun/components/struct.Text.html) ## Used by diff --git a/docs/content/reference/types/components/text_log_level.md b/docs/content/reference/types/components/text_log_level.md index 18e42224e4bc..b6d2ac1da93c 100644 --- a/docs/content/reference/types/components/text_log_level.md +++ b/docs/content/reference/types/components/text_log_level.md @@ -25,7 +25,7 @@ utf8 ## API reference links * 🌊 [C++ API docs for `TextLogLevel`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1components_1_1TextLogLevel.html) * 🐍 [Python API docs for `TextLogLevel`](https://ref.rerun.io/docs/python/stable/common/components#rerun.components.TextLogLevel) - * 🦀 [Rust API docs for `TextLogLevel`](https://ref.rerun.io/docs/rust/stable/rerun/components/struct.TextLogLevel.html) + * 🦀 [Rust API docs for `TextLogLevel`](https://docs.rs/rerun/latest/rerun/components/struct.TextLogLevel.html) ## Used by diff --git a/docs/content/reference/types/components/transform_mat3x3.md b/docs/content/reference/types/components/transform_mat3x3.md index e54a498a6f7d..439555ef8dee 100644 --- a/docs/content/reference/types/components/transform_mat3x3.md +++ b/docs/content/reference/types/components/transform_mat3x3.md @@ -29,7 +29,7 @@ FixedSizeList<9, float32> ## API reference links * 🌊 [C++ API docs for `TransformMat3x3`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1components_1_1TransformMat3x3.html) * 🐍 [Python API docs for `TransformMat3x3`](https://ref.rerun.io/docs/python/stable/common/components#rerun.components.TransformMat3x3) - * 🦀 [Rust API docs for `TransformMat3x3`](https://ref.rerun.io/docs/rust/stable/rerun/components/struct.TransformMat3x3.html) + * 🦀 [Rust API docs for `TransformMat3x3`](https://docs.rs/rerun/latest/rerun/components/struct.TransformMat3x3.html) ## Used by diff --git a/docs/content/reference/types/components/transform_relation.md b/docs/content/reference/types/components/transform_relation.md index 1f549a12e154..6fcbe695e1d2 100644 --- a/docs/content/reference/types/components/transform_relation.md +++ b/docs/content/reference/types/components/transform_relation.md @@ -29,7 +29,7 @@ uint8 ## API reference links * 🌊 [C++ API docs for `TransformRelation`](https://ref.rerun.io/docs/cpp/stable/namespacererun_1_1components.html) * 🐍 [Python API docs for `TransformRelation`](https://ref.rerun.io/docs/python/stable/common/components#rerun.components.TransformRelation) - * 🦀 [Rust API docs for `TransformRelation`](https://ref.rerun.io/docs/rust/stable/rerun/components/enum.TransformRelation.html) + * 🦀 [Rust API docs for `TransformRelation`](https://docs.rs/rerun/latest/rerun/components/enum.TransformRelation.html) ## Used by diff --git a/docs/content/reference/types/components/translation3d.md b/docs/content/reference/types/components/translation3d.md index 5a94d3945a16..8908586e957e 100644 --- a/docs/content/reference/types/components/translation3d.md +++ b/docs/content/reference/types/components/translation3d.md @@ -17,7 +17,7 @@ FixedSizeList<3, float32> ## API reference links * 🌊 [C++ API docs for `Translation3D`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1components_1_1Translation3D.html) * 🐍 [Python API docs for `Translation3D`](https://ref.rerun.io/docs/python/stable/common/components#rerun.components.Translation3D) - * 🦀 [Rust API docs for `Translation3D`](https://ref.rerun.io/docs/rust/stable/rerun/components/struct.Translation3D.html) + * 🦀 [Rust API docs for `Translation3D`](https://docs.rs/rerun/latest/rerun/components/struct.Translation3D.html) ## Used by diff --git a/docs/content/reference/types/components/triangle_indices.md b/docs/content/reference/types/components/triangle_indices.md index 74c0d636d003..b21d06f21a9b 100644 --- a/docs/content/reference/types/components/triangle_indices.md +++ b/docs/content/reference/types/components/triangle_indices.md @@ -17,7 +17,7 @@ FixedSizeList<3, uint32> ## API reference links * 🌊 [C++ API docs for `TriangleIndices`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1components_1_1TriangleIndices.html) * 🐍 [Python API docs for `TriangleIndices`](https://ref.rerun.io/docs/python/stable/common/components#rerun.components.TriangleIndices) - * 🦀 [Rust API docs for `TriangleIndices`](https://ref.rerun.io/docs/rust/stable/rerun/components/struct.TriangleIndices.html) + * 🦀 [Rust API docs for `TriangleIndices`](https://docs.rs/rerun/latest/rerun/components/struct.TriangleIndices.html) ## Used by diff --git a/docs/content/reference/types/components/value_range.md b/docs/content/reference/types/components/value_range.md index 67121c9a56ab..995b0413df41 100644 --- a/docs/content/reference/types/components/value_range.md +++ b/docs/content/reference/types/components/value_range.md @@ -17,7 +17,7 @@ FixedSizeList<2, float64> ## API reference links * 🌊 [C++ API docs for `ValueRange`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1components_1_1ValueRange.html) * 🐍 [Python API docs for `ValueRange`](https://ref.rerun.io/docs/python/stable/common/components#rerun.components.ValueRange) - * 🦀 [Rust API docs for `ValueRange`](https://ref.rerun.io/docs/rust/stable/rerun/components/struct.ValueRange.html) + * 🦀 [Rust API docs for `ValueRange`](https://docs.rs/rerun/latest/rerun/components/struct.ValueRange.html) ## Used by diff --git a/docs/content/reference/types/components/vector2d.md b/docs/content/reference/types/components/vector2d.md index 9e0e6f72c734..52735fe24c57 100644 --- a/docs/content/reference/types/components/vector2d.md +++ b/docs/content/reference/types/components/vector2d.md @@ -17,7 +17,7 @@ FixedSizeList<2, float32> ## API reference links * 🌊 [C++ API docs for `Vector2D`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1components_1_1Vector2D.html) * 🐍 [Python API docs for `Vector2D`](https://ref.rerun.io/docs/python/stable/common/components#rerun.components.Vector2D) - * 🦀 [Rust API docs for `Vector2D`](https://ref.rerun.io/docs/rust/stable/rerun/components/struct.Vector2D.html) + * 🦀 [Rust API docs for `Vector2D`](https://docs.rs/rerun/latest/rerun/components/struct.Vector2D.html) ## Used by diff --git a/docs/content/reference/types/components/vector3d.md b/docs/content/reference/types/components/vector3d.md index 84ebc29e3fd9..47c53e7405c7 100644 --- a/docs/content/reference/types/components/vector3d.md +++ b/docs/content/reference/types/components/vector3d.md @@ -17,7 +17,7 @@ FixedSizeList<3, float32> ## API reference links * 🌊 [C++ API docs for `Vector3D`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1components_1_1Vector3D.html) * 🐍 [Python API docs for `Vector3D`](https://ref.rerun.io/docs/python/stable/common/components#rerun.components.Vector3D) - * 🦀 [Rust API docs for `Vector3D`](https://ref.rerun.io/docs/rust/stable/rerun/components/struct.Vector3D.html) + * 🦀 [Rust API docs for `Vector3D`](https://docs.rs/rerun/latest/rerun/components/struct.Vector3D.html) ## Used by diff --git a/docs/content/reference/types/components/video_timestamp.md b/docs/content/reference/types/components/video_timestamp.md index ee1515158170..4e64bfdad8f7 100644 --- a/docs/content/reference/types/components/video_timestamp.md +++ b/docs/content/reference/types/components/video_timestamp.md @@ -17,7 +17,7 @@ int64 ## API reference links * 🌊 [C++ API docs for `VideoTimestamp`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1components_1_1VideoTimestamp.html) * 🐍 [Python API docs for `VideoTimestamp`](https://ref.rerun.io/docs/python/stable/common/components#rerun.components.VideoTimestamp) - * 🦀 [Rust API docs for `VideoTimestamp`](https://ref.rerun.io/docs/rust/stable/rerun/components/struct.VideoTimestamp.html) + * 🦀 [Rust API docs for `VideoTimestamp`](https://docs.rs/rerun/latest/rerun/components/struct.VideoTimestamp.html) ## Used by diff --git a/docs/content/reference/types/components/view_coordinates.md b/docs/content/reference/types/components/view_coordinates.md index 2c9f9fcdbc1d..d12bec3e972c 100644 --- a/docs/content/reference/types/components/view_coordinates.md +++ b/docs/content/reference/types/components/view_coordinates.md @@ -34,7 +34,7 @@ FixedSizeList<3, uint8> ## API reference links * 🌊 [C++ API docs for `ViewCoordinates`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1components_1_1ViewCoordinates.html) * 🐍 [Python API docs for `ViewCoordinates`](https://ref.rerun.io/docs/python/stable/common/components#rerun.components.ViewCoordinates) - * 🦀 [Rust API docs for `ViewCoordinates`](https://ref.rerun.io/docs/rust/stable/rerun/components/struct.ViewCoordinates.html) + * 🦀 [Rust API docs for `ViewCoordinates`](https://docs.rs/rerun/latest/rerun/components/struct.ViewCoordinates.html) ## Used by diff --git a/docs/content/reference/types/datatypes/angle.md b/docs/content/reference/types/datatypes/angle.md index 83c96f0b7c32..794a9733ef6c 100644 --- a/docs/content/reference/types/datatypes/angle.md +++ b/docs/content/reference/types/datatypes/angle.md @@ -14,7 +14,7 @@ float32 ## API reference links * 🌊 [C++ API docs for `Angle`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1datatypes_1_1Angle.html) * 🐍 [Python API docs for `Angle`](https://ref.rerun.io/docs/python/stable/common/datatypes#rerun.datatypes.Angle) - * 🦀 [Rust API docs for `Angle`](https://ref.rerun.io/docs/rust/stable/rerun/datatypes/struct.Angle.html) + * 🦀 [Rust API docs for `Angle`](https://docs.rs/rerun/latest/rerun/datatypes/struct.Angle.html) ## Used by diff --git a/docs/content/reference/types/datatypes/annotation_info.md b/docs/content/reference/types/datatypes/annotation_info.md index 97514b527a46..c8e36d0b5dd5 100644 --- a/docs/content/reference/types/datatypes/annotation_info.md +++ b/docs/content/reference/types/datatypes/annotation_info.md @@ -37,7 +37,7 @@ Struct { ## API reference links * 🌊 [C++ API docs for `AnnotationInfo`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1datatypes_1_1AnnotationInfo.html) * 🐍 [Python API docs for `AnnotationInfo`](https://ref.rerun.io/docs/python/stable/common/datatypes#rerun.datatypes.AnnotationInfo) - * 🦀 [Rust API docs for `AnnotationInfo`](https://ref.rerun.io/docs/rust/stable/rerun/datatypes/struct.AnnotationInfo.html) + * 🦀 [Rust API docs for `AnnotationInfo`](https://docs.rs/rerun/latest/rerun/datatypes/struct.AnnotationInfo.html) ## Used by diff --git a/docs/content/reference/types/datatypes/blob.md b/docs/content/reference/types/datatypes/blob.md index 9f1d935b518c..5d2f7a61692a 100644 --- a/docs/content/reference/types/datatypes/blob.md +++ b/docs/content/reference/types/datatypes/blob.md @@ -14,7 +14,7 @@ List ## API reference links * 🌊 [C++ API docs for `Blob`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1datatypes_1_1Blob.html) * 🐍 [Python API docs for `Blob`](https://ref.rerun.io/docs/python/stable/common/datatypes#rerun.datatypes.Blob) - * 🦀 [Rust API docs for `Blob`](https://ref.rerun.io/docs/rust/stable/rerun/datatypes/struct.Blob.html) + * 🦀 [Rust API docs for `Blob`](https://docs.rs/rerun/latest/rerun/datatypes/struct.Blob.html) ## Used by diff --git a/docs/content/reference/types/datatypes/bool.md b/docs/content/reference/types/datatypes/bool.md index e8a82daa6893..70ede9bee361 100644 --- a/docs/content/reference/types/datatypes/bool.md +++ b/docs/content/reference/types/datatypes/bool.md @@ -14,7 +14,7 @@ boolean ## API reference links * 🌊 [C++ API docs for `Bool`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1datatypes_1_1Bool.html) * 🐍 [Python API docs for `Bool`](https://ref.rerun.io/docs/python/stable/common/datatypes#rerun.datatypes.Bool) - * 🦀 [Rust API docs for `Bool`](https://ref.rerun.io/docs/rust/stable/rerun/datatypes/struct.Bool.html) + * 🦀 [Rust API docs for `Bool`](https://docs.rs/rerun/latest/rerun/datatypes/struct.Bool.html) ## Used by diff --git a/docs/content/reference/types/datatypes/channel_datatype.md b/docs/content/reference/types/datatypes/channel_datatype.md index 3e7ffd98ad71..4e720a27dccd 100644 --- a/docs/content/reference/types/datatypes/channel_datatype.md +++ b/docs/content/reference/types/datatypes/channel_datatype.md @@ -50,7 +50,7 @@ uint8 ## API reference links * 🌊 [C++ API docs for `ChannelDatatype`](https://ref.rerun.io/docs/cpp/stable/namespacererun_1_1datatypes.html) * 🐍 [Python API docs for `ChannelDatatype`](https://ref.rerun.io/docs/python/stable/common/datatypes#rerun.datatypes.ChannelDatatype) - * 🦀 [Rust API docs for `ChannelDatatype`](https://ref.rerun.io/docs/rust/stable/rerun/datatypes/enum.ChannelDatatype.html) + * 🦀 [Rust API docs for `ChannelDatatype`](https://docs.rs/rerun/latest/rerun/datatypes/enum.ChannelDatatype.html) ## Used by diff --git a/docs/content/reference/types/datatypes/class_description.md b/docs/content/reference/types/datatypes/class_description.md index 92ebe5d5bb43..d68ddd30b91c 100644 --- a/docs/content/reference/types/datatypes/class_description.md +++ b/docs/content/reference/types/datatypes/class_description.md @@ -58,7 +58,7 @@ Struct { ## API reference links * 🌊 [C++ API docs for `ClassDescription`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1datatypes_1_1ClassDescription.html) * 🐍 [Python API docs for `ClassDescription`](https://ref.rerun.io/docs/python/stable/common/datatypes#rerun.datatypes.ClassDescription) - * 🦀 [Rust API docs for `ClassDescription`](https://ref.rerun.io/docs/rust/stable/rerun/datatypes/struct.ClassDescription.html) + * 🦀 [Rust API docs for `ClassDescription`](https://docs.rs/rerun/latest/rerun/datatypes/struct.ClassDescription.html) ## Used by diff --git a/docs/content/reference/types/datatypes/class_description_map_elem.md b/docs/content/reference/types/datatypes/class_description_map_elem.md index 4a445a0eca97..f8a2991f761c 100644 --- a/docs/content/reference/types/datatypes/class_description_map_elem.md +++ b/docs/content/reference/types/datatypes/class_description_map_elem.md @@ -45,7 +45,7 @@ Struct { ## API reference links * 🌊 [C++ API docs for `ClassDescriptionMapElem`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1datatypes_1_1ClassDescriptionMapElem.html) * 🐍 [Python API docs for `ClassDescriptionMapElem`](https://ref.rerun.io/docs/python/stable/common/datatypes#rerun.datatypes.ClassDescriptionMapElem) - * 🦀 [Rust API docs for `ClassDescriptionMapElem`](https://ref.rerun.io/docs/rust/stable/rerun/datatypes/struct.ClassDescriptionMapElem.html) + * 🦀 [Rust API docs for `ClassDescriptionMapElem`](https://docs.rs/rerun/latest/rerun/datatypes/struct.ClassDescriptionMapElem.html) ## Used by diff --git a/docs/content/reference/types/datatypes/class_id.md b/docs/content/reference/types/datatypes/class_id.md index b552aa164441..abc013862484 100644 --- a/docs/content/reference/types/datatypes/class_id.md +++ b/docs/content/reference/types/datatypes/class_id.md @@ -14,7 +14,7 @@ uint16 ## API reference links * 🌊 [C++ API docs for `ClassId`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1datatypes_1_1ClassId.html) * 🐍 [Python API docs for `ClassId`](https://ref.rerun.io/docs/python/stable/common/datatypes#rerun.datatypes.ClassId) - * 🦀 [Rust API docs for `ClassId`](https://ref.rerun.io/docs/rust/stable/rerun/datatypes/struct.ClassId.html) + * 🦀 [Rust API docs for `ClassId`](https://docs.rs/rerun/latest/rerun/datatypes/struct.ClassId.html) ## Used by diff --git a/docs/content/reference/types/datatypes/color_model.md b/docs/content/reference/types/datatypes/color_model.md index 170272408e0f..e08c745e5e9b 100644 --- a/docs/content/reference/types/datatypes/color_model.md +++ b/docs/content/reference/types/datatypes/color_model.md @@ -32,7 +32,7 @@ uint8 ## API reference links * 🌊 [C++ API docs for `ColorModel`](https://ref.rerun.io/docs/cpp/stable/namespacererun_1_1datatypes.html) * 🐍 [Python API docs for `ColorModel`](https://ref.rerun.io/docs/python/stable/common/datatypes#rerun.datatypes.ColorModel) - * 🦀 [Rust API docs for `ColorModel`](https://ref.rerun.io/docs/rust/stable/rerun/datatypes/enum.ColorModel.html) + * 🦀 [Rust API docs for `ColorModel`](https://docs.rs/rerun/latest/rerun/datatypes/enum.ColorModel.html) ## Used by diff --git a/docs/content/reference/types/datatypes/dvec2d.md b/docs/content/reference/types/datatypes/dvec2d.md index f2c6fe66ffe2..373478c9b7e6 100644 --- a/docs/content/reference/types/datatypes/dvec2d.md +++ b/docs/content/reference/types/datatypes/dvec2d.md @@ -14,7 +14,7 @@ FixedSizeList<2, float64> ## API reference links * 🌊 [C++ API docs for `DVec2D`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1datatypes_1_1DVec2D.html) * 🐍 [Python API docs for `DVec2D`](https://ref.rerun.io/docs/python/stable/common/datatypes#rerun.datatypes.DVec2D) - * 🦀 [Rust API docs for `DVec2D`](https://ref.rerun.io/docs/rust/stable/rerun/datatypes/struct.DVec2D.html) + * 🦀 [Rust API docs for `DVec2D`](https://docs.rs/rerun/latest/rerun/datatypes/struct.DVec2D.html) ## Used by diff --git a/docs/content/reference/types/datatypes/entity_path.md b/docs/content/reference/types/datatypes/entity_path.md index dcfe3586a450..b345f5351444 100644 --- a/docs/content/reference/types/datatypes/entity_path.md +++ b/docs/content/reference/types/datatypes/entity_path.md @@ -14,7 +14,7 @@ utf8 ## API reference links * 🌊 [C++ API docs for `EntityPath`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1datatypes_1_1EntityPath.html) * 🐍 [Python API docs for `EntityPath`](https://ref.rerun.io/docs/python/stable/common/datatypes#rerun.datatypes.EntityPath) - * 🦀 [Rust API docs for `EntityPath`](https://ref.rerun.io/docs/rust/stable/rerun/datatypes/struct.EntityPath.html) + * 🦀 [Rust API docs for `EntityPath`](https://docs.rs/rerun/latest/rerun/datatypes/struct.EntityPath.html) ## Used by diff --git a/docs/content/reference/types/datatypes/float32.md b/docs/content/reference/types/datatypes/float32.md index 713f4dcfe9e4..0f6f9561ccae 100644 --- a/docs/content/reference/types/datatypes/float32.md +++ b/docs/content/reference/types/datatypes/float32.md @@ -14,7 +14,7 @@ float32 ## API reference links * 🌊 [C++ API docs for `Float32`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1datatypes_1_1Float32.html) * 🐍 [Python API docs for `Float32`](https://ref.rerun.io/docs/python/stable/common/datatypes#rerun.datatypes.Float32) - * 🦀 [Rust API docs for `Float32`](https://ref.rerun.io/docs/rust/stable/rerun/datatypes/struct.Float32.html) + * 🦀 [Rust API docs for `Float32`](https://docs.rs/rerun/latest/rerun/datatypes/struct.Float32.html) ## Used by diff --git a/docs/content/reference/types/datatypes/float64.md b/docs/content/reference/types/datatypes/float64.md index 3a596926c6e0..8c1ec4bff30d 100644 --- a/docs/content/reference/types/datatypes/float64.md +++ b/docs/content/reference/types/datatypes/float64.md @@ -14,7 +14,7 @@ float64 ## API reference links * 🌊 [C++ API docs for `Float64`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1datatypes_1_1Float64.html) * 🐍 [Python API docs for `Float64`](https://ref.rerun.io/docs/python/stable/common/datatypes#rerun.datatypes.Float64) - * 🦀 [Rust API docs for `Float64`](https://ref.rerun.io/docs/rust/stable/rerun/datatypes/struct.Float64.html) + * 🦀 [Rust API docs for `Float64`](https://docs.rs/rerun/latest/rerun/datatypes/struct.Float64.html) ## Used by diff --git a/docs/content/reference/types/datatypes/image_format.md b/docs/content/reference/types/datatypes/image_format.md index 7bc2bc25989d..ab654918f9a3 100644 --- a/docs/content/reference/types/datatypes/image_format.md +++ b/docs/content/reference/types/datatypes/image_format.md @@ -52,7 +52,7 @@ Struct { ## API reference links * 🌊 [C++ API docs for `ImageFormat`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1datatypes_1_1ImageFormat.html) * 🐍 [Python API docs for `ImageFormat`](https://ref.rerun.io/docs/python/stable/common/datatypes#rerun.datatypes.ImageFormat) - * 🦀 [Rust API docs for `ImageFormat`](https://ref.rerun.io/docs/rust/stable/rerun/datatypes/struct.ImageFormat.html) + * 🦀 [Rust API docs for `ImageFormat`](https://docs.rs/rerun/latest/rerun/datatypes/struct.ImageFormat.html) ## Used by diff --git a/docs/content/reference/types/datatypes/keypoint_id.md b/docs/content/reference/types/datatypes/keypoint_id.md index 1a1f4d322863..7b1e06738cd2 100644 --- a/docs/content/reference/types/datatypes/keypoint_id.md +++ b/docs/content/reference/types/datatypes/keypoint_id.md @@ -14,7 +14,7 @@ uint16 ## API reference links * 🌊 [C++ API docs for `KeypointId`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1datatypes_1_1KeypointId.html) * 🐍 [Python API docs for `KeypointId`](https://ref.rerun.io/docs/python/stable/common/datatypes#rerun.datatypes.KeypointId) - * 🦀 [Rust API docs for `KeypointId`](https://ref.rerun.io/docs/rust/stable/rerun/datatypes/struct.KeypointId.html) + * 🦀 [Rust API docs for `KeypointId`](https://docs.rs/rerun/latest/rerun/datatypes/struct.KeypointId.html) ## Used by diff --git a/docs/content/reference/types/datatypes/keypoint_pair.md b/docs/content/reference/types/datatypes/keypoint_pair.md index 0ff715a4c67e..c466bac9b3bb 100644 --- a/docs/content/reference/types/datatypes/keypoint_pair.md +++ b/docs/content/reference/types/datatypes/keypoint_pair.md @@ -28,7 +28,7 @@ Struct { ## API reference links * 🌊 [C++ API docs for `KeypointPair`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1datatypes_1_1KeypointPair.html) * 🐍 [Python API docs for `KeypointPair`](https://ref.rerun.io/docs/python/stable/common/datatypes#rerun.datatypes.KeypointPair) - * 🦀 [Rust API docs for `KeypointPair`](https://ref.rerun.io/docs/rust/stable/rerun/datatypes/struct.KeypointPair.html) + * 🦀 [Rust API docs for `KeypointPair`](https://docs.rs/rerun/latest/rerun/datatypes/struct.KeypointPair.html) ## Used by diff --git a/docs/content/reference/types/datatypes/mat3x3.md b/docs/content/reference/types/datatypes/mat3x3.md index b9f956638c85..47a3e2a6e007 100644 --- a/docs/content/reference/types/datatypes/mat3x3.md +++ b/docs/content/reference/types/datatypes/mat3x3.md @@ -23,7 +23,7 @@ FixedSizeList<9, float32> ## API reference links * 🌊 [C++ API docs for `Mat3x3`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1datatypes_1_1Mat3x3.html) * 🐍 [Python API docs for `Mat3x3`](https://ref.rerun.io/docs/python/stable/common/datatypes#rerun.datatypes.Mat3x3) - * 🦀 [Rust API docs for `Mat3x3`](https://ref.rerun.io/docs/rust/stable/rerun/datatypes/struct.Mat3x3.html) + * 🦀 [Rust API docs for `Mat3x3`](https://docs.rs/rerun/latest/rerun/datatypes/struct.Mat3x3.html) ## Used by diff --git a/docs/content/reference/types/datatypes/mat4x4.md b/docs/content/reference/types/datatypes/mat4x4.md index 1cf6ee6b0d71..73efb6bee533 100644 --- a/docs/content/reference/types/datatypes/mat4x4.md +++ b/docs/content/reference/types/datatypes/mat4x4.md @@ -24,6 +24,6 @@ FixedSizeList<16, float32> ## API reference links * 🌊 [C++ API docs for `Mat4x4`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1datatypes_1_1Mat4x4.html) * 🐍 [Python API docs for `Mat4x4`](https://ref.rerun.io/docs/python/stable/common/datatypes#rerun.datatypes.Mat4x4) - * 🦀 [Rust API docs for `Mat4x4`](https://ref.rerun.io/docs/rust/stable/rerun/datatypes/struct.Mat4x4.html) + * 🦀 [Rust API docs for `Mat4x4`](https://docs.rs/rerun/latest/rerun/datatypes/struct.Mat4x4.html) diff --git a/docs/content/reference/types/datatypes/pixel_format.md b/docs/content/reference/types/datatypes/pixel_format.md index e3b5e35417ef..187b03583fe0 100644 --- a/docs/content/reference/types/datatypes/pixel_format.md +++ b/docs/content/reference/types/datatypes/pixel_format.md @@ -105,7 +105,7 @@ uint8 ## API reference links * 🌊 [C++ API docs for `PixelFormat`](https://ref.rerun.io/docs/cpp/stable/namespacererun_1_1datatypes.html) * 🐍 [Python API docs for `PixelFormat`](https://ref.rerun.io/docs/python/stable/common/datatypes#rerun.datatypes.PixelFormat) - * 🦀 [Rust API docs for `PixelFormat`](https://ref.rerun.io/docs/rust/stable/rerun/datatypes/enum.PixelFormat.html) + * 🦀 [Rust API docs for `PixelFormat`](https://docs.rs/rerun/latest/rerun/datatypes/enum.PixelFormat.html) ## Used by diff --git a/docs/content/reference/types/datatypes/quaternion.md b/docs/content/reference/types/datatypes/quaternion.md index 397d454e81f8..7661b5f2579d 100644 --- a/docs/content/reference/types/datatypes/quaternion.md +++ b/docs/content/reference/types/datatypes/quaternion.md @@ -17,7 +17,7 @@ FixedSizeList<4, float32> ## API reference links * 🌊 [C++ API docs for `Quaternion`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1datatypes_1_1Quaternion.html) * 🐍 [Python API docs for `Quaternion`](https://ref.rerun.io/docs/python/stable/common/datatypes#rerun.datatypes.Quaternion) - * 🦀 [Rust API docs for `Quaternion`](https://ref.rerun.io/docs/rust/stable/rerun/datatypes/struct.Quaternion.html) + * 🦀 [Rust API docs for `Quaternion`](https://docs.rs/rerun/latest/rerun/datatypes/struct.Quaternion.html) ## Used by diff --git a/docs/content/reference/types/datatypes/range1d.md b/docs/content/reference/types/datatypes/range1d.md index 6848440e6bf9..60421a00e8f8 100644 --- a/docs/content/reference/types/datatypes/range1d.md +++ b/docs/content/reference/types/datatypes/range1d.md @@ -14,7 +14,7 @@ FixedSizeList<2, float64> ## API reference links * 🌊 [C++ API docs for `Range1D`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1datatypes_1_1Range1D.html) * 🐍 [Python API docs for `Range1D`](https://ref.rerun.io/docs/python/stable/common/datatypes#rerun.datatypes.Range1D) - * 🦀 [Rust API docs for `Range1D`](https://ref.rerun.io/docs/rust/stable/rerun/datatypes/struct.Range1D.html) + * 🦀 [Rust API docs for `Range1D`](https://docs.rs/rerun/latest/rerun/datatypes/struct.Range1D.html) ## Used by diff --git a/docs/content/reference/types/datatypes/range2d.md b/docs/content/reference/types/datatypes/range2d.md index 4576d300856a..558c3a24a220 100644 --- a/docs/content/reference/types/datatypes/range2d.md +++ b/docs/content/reference/types/datatypes/range2d.md @@ -28,6 +28,6 @@ Struct { ## API reference links * 🌊 [C++ API docs for `Range2D`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1datatypes_1_1Range2D.html) * 🐍 [Python API docs for `Range2D`](https://ref.rerun.io/docs/python/stable/common/datatypes#rerun.datatypes.Range2D) - * 🦀 [Rust API docs for `Range2D`](https://ref.rerun.io/docs/rust/stable/rerun/datatypes/struct.Range2D.html) + * 🦀 [Rust API docs for `Range2D`](https://docs.rs/rerun/latest/rerun/datatypes/struct.Range2D.html) diff --git a/docs/content/reference/types/datatypes/rgba32.md b/docs/content/reference/types/datatypes/rgba32.md index f34231248ab6..4b423d35ec30 100644 --- a/docs/content/reference/types/datatypes/rgba32.md +++ b/docs/content/reference/types/datatypes/rgba32.md @@ -17,7 +17,7 @@ uint32 ## API reference links * 🌊 [C++ API docs for `Rgba32`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1datatypes_1_1Rgba32.html) * 🐍 [Python API docs for `Rgba32`](https://ref.rerun.io/docs/python/stable/common/datatypes#rerun.datatypes.Rgba32) - * 🦀 [Rust API docs for `Rgba32`](https://ref.rerun.io/docs/rust/stable/rerun/datatypes/struct.Rgba32.html) + * 🦀 [Rust API docs for `Rgba32`](https://docs.rs/rerun/latest/rerun/datatypes/struct.Rgba32.html) ## Used by diff --git a/docs/content/reference/types/datatypes/rotation_axis_angle.md b/docs/content/reference/types/datatypes/rotation_axis_angle.md index 54efca31cc11..e9a26b8086f2 100644 --- a/docs/content/reference/types/datatypes/rotation_axis_angle.md +++ b/docs/content/reference/types/datatypes/rotation_axis_angle.md @@ -32,7 +32,7 @@ Struct { ## API reference links * 🌊 [C++ API docs for `RotationAxisAngle`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1datatypes_1_1RotationAxisAngle.html) * 🐍 [Python API docs for `RotationAxisAngle`](https://ref.rerun.io/docs/python/stable/common/datatypes#rerun.datatypes.RotationAxisAngle) - * 🦀 [Rust API docs for `RotationAxisAngle`](https://ref.rerun.io/docs/rust/stable/rerun/datatypes/struct.RotationAxisAngle.html) + * 🦀 [Rust API docs for `RotationAxisAngle`](https://docs.rs/rerun/latest/rerun/datatypes/struct.RotationAxisAngle.html) ## Used by diff --git a/docs/content/reference/types/datatypes/tensor_buffer.md b/docs/content/reference/types/datatypes/tensor_buffer.md index 1c702f3630ef..653f915c978f 100644 --- a/docs/content/reference/types/datatypes/tensor_buffer.md +++ b/docs/content/reference/types/datatypes/tensor_buffer.md @@ -85,7 +85,7 @@ DenseUnion { ## API reference links * 🌊 [C++ API docs for `TensorBuffer`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1datatypes_1_1TensorBuffer.html) * 🐍 [Python API docs for `TensorBuffer`](https://ref.rerun.io/docs/python/stable/common/datatypes#rerun.datatypes.TensorBuffer) - * 🦀 [Rust API docs for `TensorBuffer`](https://ref.rerun.io/docs/rust/stable/rerun/datatypes/enum.TensorBuffer.html) + * 🦀 [Rust API docs for `TensorBuffer`](https://docs.rs/rerun/latest/rerun/datatypes/enum.TensorBuffer.html) ## Used by diff --git a/docs/content/reference/types/datatypes/tensor_data.md b/docs/content/reference/types/datatypes/tensor_data.md index 06ab0878527a..caef70928282 100644 --- a/docs/content/reference/types/datatypes/tensor_data.md +++ b/docs/content/reference/types/datatypes/tensor_data.md @@ -51,7 +51,7 @@ Struct { ## API reference links * 🌊 [C++ API docs for `TensorData`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1datatypes_1_1TensorData.html) * 🐍 [Python API docs for `TensorData`](https://ref.rerun.io/docs/python/stable/common/datatypes#rerun.datatypes.TensorData) - * 🦀 [Rust API docs for `TensorData`](https://ref.rerun.io/docs/rust/stable/rerun/datatypes/struct.TensorData.html) + * 🦀 [Rust API docs for `TensorData`](https://docs.rs/rerun/latest/rerun/datatypes/struct.TensorData.html) ## Used by diff --git a/docs/content/reference/types/datatypes/tensor_dimension.md b/docs/content/reference/types/datatypes/tensor_dimension.md index 21e9de59e8ac..4341e405ac10 100644 --- a/docs/content/reference/types/datatypes/tensor_dimension.md +++ b/docs/content/reference/types/datatypes/tensor_dimension.md @@ -28,7 +28,7 @@ Struct { ## API reference links * 🌊 [C++ API docs for `TensorDimension`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1datatypes_1_1TensorDimension.html) * 🐍 [Python API docs for `TensorDimension`](https://ref.rerun.io/docs/python/stable/common/datatypes#rerun.datatypes.TensorDimension) - * 🦀 [Rust API docs for `TensorDimension`](https://ref.rerun.io/docs/rust/stable/rerun/datatypes/struct.TensorDimension.html) + * 🦀 [Rust API docs for `TensorDimension`](https://docs.rs/rerun/latest/rerun/datatypes/struct.TensorDimension.html) ## Used by diff --git a/docs/content/reference/types/datatypes/tensor_dimension_index_selection.md b/docs/content/reference/types/datatypes/tensor_dimension_index_selection.md index 5fd99052357c..1373e1455731 100644 --- a/docs/content/reference/types/datatypes/tensor_dimension_index_selection.md +++ b/docs/content/reference/types/datatypes/tensor_dimension_index_selection.md @@ -30,7 +30,7 @@ Struct { ## API reference links * 🌊 [C++ API docs for `TensorDimensionIndexSelection`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1datatypes_1_1TensorDimensionIndexSelection.html) * 🐍 [Python API docs for `TensorDimensionIndexSelection`](https://ref.rerun.io/docs/python/stable/common/datatypes#rerun.datatypes.TensorDimensionIndexSelection) - * 🦀 [Rust API docs for `TensorDimensionIndexSelection`](https://ref.rerun.io/docs/rust/stable/rerun/datatypes/struct.TensorDimensionIndexSelection.html) + * 🦀 [Rust API docs for `TensorDimensionIndexSelection`](https://docs.rs/rerun/latest/rerun/datatypes/struct.TensorDimensionIndexSelection.html) ## Used by diff --git a/docs/content/reference/types/datatypes/tensor_dimension_selection.md b/docs/content/reference/types/datatypes/tensor_dimension_selection.md index 309a7e0c961a..94d97e242c17 100644 --- a/docs/content/reference/types/datatypes/tensor_dimension_selection.md +++ b/docs/content/reference/types/datatypes/tensor_dimension_selection.md @@ -28,7 +28,7 @@ Struct { ## API reference links * 🌊 [C++ API docs for `TensorDimensionSelection`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1datatypes_1_1TensorDimensionSelection.html) * 🐍 [Python API docs for `TensorDimensionSelection`](https://ref.rerun.io/docs/python/stable/common/datatypes#rerun.datatypes.TensorDimensionSelection) - * 🦀 [Rust API docs for `TensorDimensionSelection`](https://ref.rerun.io/docs/rust/stable/rerun/datatypes/struct.TensorDimensionSelection.html) + * 🦀 [Rust API docs for `TensorDimensionSelection`](https://docs.rs/rerun/latest/rerun/datatypes/struct.TensorDimensionSelection.html) ## Used by diff --git a/docs/content/reference/types/datatypes/time_int.md b/docs/content/reference/types/datatypes/time_int.md index ce558d4274d6..c121bfaca6cc 100644 --- a/docs/content/reference/types/datatypes/time_int.md +++ b/docs/content/reference/types/datatypes/time_int.md @@ -14,7 +14,7 @@ int64 ## API reference links * 🌊 [C++ API docs for `TimeInt`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1datatypes_1_1TimeInt.html) * 🐍 [Python API docs for `TimeInt`](https://ref.rerun.io/docs/python/stable/common/datatypes#rerun.datatypes.TimeInt) - * 🦀 [Rust API docs for `TimeInt`](https://ref.rerun.io/docs/rust/stable/rerun/datatypes/struct.TimeInt.html) + * 🦀 [Rust API docs for `TimeInt`](https://docs.rs/rerun/latest/rerun/datatypes/struct.TimeInt.html) ## Used by diff --git a/docs/content/reference/types/datatypes/time_range.md b/docs/content/reference/types/datatypes/time_range.md index 3215f17d1f56..a4b272616a4c 100644 --- a/docs/content/reference/types/datatypes/time_range.md +++ b/docs/content/reference/types/datatypes/time_range.md @@ -38,7 +38,7 @@ Struct { ## API reference links * 🌊 [C++ API docs for `TimeRange`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1datatypes_1_1TimeRange.html) * 🐍 [Python API docs for `TimeRange`](https://ref.rerun.io/docs/python/stable/common/datatypes#rerun.datatypes.TimeRange) - * 🦀 [Rust API docs for `TimeRange`](https://ref.rerun.io/docs/rust/stable/rerun/datatypes/struct.TimeRange.html) + * 🦀 [Rust API docs for `TimeRange`](https://docs.rs/rerun/latest/rerun/datatypes/struct.TimeRange.html) ## Used by diff --git a/docs/content/reference/types/datatypes/time_range_boundary.md b/docs/content/reference/types/datatypes/time_range_boundary.md index 37587816c14c..e409fe485ab0 100644 --- a/docs/content/reference/types/datatypes/time_range_boundary.md +++ b/docs/content/reference/types/datatypes/time_range_boundary.md @@ -35,7 +35,7 @@ DenseUnion { ## API reference links * 🌊 [C++ API docs for `TimeRangeBoundary`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1datatypes_1_1TimeRangeBoundary.html) * 🐍 [Python API docs for `TimeRangeBoundary`](https://ref.rerun.io/docs/python/stable/common/datatypes#rerun.datatypes.TimeRangeBoundary) - * 🦀 [Rust API docs for `TimeRangeBoundary`](https://ref.rerun.io/docs/rust/stable/rerun/datatypes/enum.TimeRangeBoundary.html) + * 🦀 [Rust API docs for `TimeRangeBoundary`](https://docs.rs/rerun/latest/rerun/datatypes/enum.TimeRangeBoundary.html) ## Used by diff --git a/docs/content/reference/types/datatypes/uint16.md b/docs/content/reference/types/datatypes/uint16.md index 7eacf8d7f4e5..5609fed94b6f 100644 --- a/docs/content/reference/types/datatypes/uint16.md +++ b/docs/content/reference/types/datatypes/uint16.md @@ -14,6 +14,6 @@ uint16 ## API reference links * 🌊 [C++ API docs for `UInt16`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1datatypes_1_1UInt16.html) * 🐍 [Python API docs for `UInt16`](https://ref.rerun.io/docs/python/stable/common/datatypes#rerun.datatypes.UInt16) - * 🦀 [Rust API docs for `UInt16`](https://ref.rerun.io/docs/rust/stable/rerun/datatypes/struct.UInt16.html) + * 🦀 [Rust API docs for `UInt16`](https://docs.rs/rerun/latest/rerun/datatypes/struct.UInt16.html) diff --git a/docs/content/reference/types/datatypes/uint32.md b/docs/content/reference/types/datatypes/uint32.md index e61dd0b78973..144d1ee0e9ac 100644 --- a/docs/content/reference/types/datatypes/uint32.md +++ b/docs/content/reference/types/datatypes/uint32.md @@ -14,6 +14,6 @@ uint32 ## API reference links * 🌊 [C++ API docs for `UInt32`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1datatypes_1_1UInt32.html) * 🐍 [Python API docs for `UInt32`](https://ref.rerun.io/docs/python/stable/common/datatypes#rerun.datatypes.UInt32) - * 🦀 [Rust API docs for `UInt32`](https://ref.rerun.io/docs/rust/stable/rerun/datatypes/struct.UInt32.html) + * 🦀 [Rust API docs for `UInt32`](https://docs.rs/rerun/latest/rerun/datatypes/struct.UInt32.html) diff --git a/docs/content/reference/types/datatypes/uint64.md b/docs/content/reference/types/datatypes/uint64.md index 5e6a4cac7c8c..1c0025e56657 100644 --- a/docs/content/reference/types/datatypes/uint64.md +++ b/docs/content/reference/types/datatypes/uint64.md @@ -14,6 +14,6 @@ uint64 ## API reference links * 🌊 [C++ API docs for `UInt64`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1datatypes_1_1UInt64.html) * 🐍 [Python API docs for `UInt64`](https://ref.rerun.io/docs/python/stable/common/datatypes#rerun.datatypes.UInt64) - * 🦀 [Rust API docs for `UInt64`](https://ref.rerun.io/docs/rust/stable/rerun/datatypes/struct.UInt64.html) + * 🦀 [Rust API docs for `UInt64`](https://docs.rs/rerun/latest/rerun/datatypes/struct.UInt64.html) diff --git a/docs/content/reference/types/datatypes/utf8.md b/docs/content/reference/types/datatypes/utf8.md index c001e5749dfd..7da350ef1499 100644 --- a/docs/content/reference/types/datatypes/utf8.md +++ b/docs/content/reference/types/datatypes/utf8.md @@ -14,7 +14,7 @@ utf8 ## API reference links * 🌊 [C++ API docs for `Utf8`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1datatypes_1_1Utf8.html) * 🐍 [Python API docs for `Utf8`](https://ref.rerun.io/docs/python/stable/common/datatypes#rerun.datatypes.Utf8) - * 🦀 [Rust API docs for `Utf8`](https://ref.rerun.io/docs/rust/stable/rerun/datatypes/struct.Utf8.html) + * 🦀 [Rust API docs for `Utf8`](https://docs.rs/rerun/latest/rerun/datatypes/struct.Utf8.html) ## Used by diff --git a/docs/content/reference/types/datatypes/uuid.md b/docs/content/reference/types/datatypes/uuid.md index 9336d588a8b6..f709faedfc96 100644 --- a/docs/content/reference/types/datatypes/uuid.md +++ b/docs/content/reference/types/datatypes/uuid.md @@ -14,6 +14,6 @@ FixedSizeList<16, uint8> ## API reference links * 🌊 [C++ API docs for `Uuid`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1datatypes_1_1Uuid.html) * 🐍 [Python API docs for `Uuid`](https://ref.rerun.io/docs/python/stable/common/datatypes#rerun.datatypes.Uuid) - * 🦀 [Rust API docs for `Uuid`](https://ref.rerun.io/docs/rust/stable/rerun/datatypes/struct.Uuid.html) + * 🦀 [Rust API docs for `Uuid`](https://docs.rs/rerun/latest/rerun/datatypes/struct.Uuid.html) diff --git a/docs/content/reference/types/datatypes/uvec2d.md b/docs/content/reference/types/datatypes/uvec2d.md index 5dacb4dff23e..6215cfb1ceb6 100644 --- a/docs/content/reference/types/datatypes/uvec2d.md +++ b/docs/content/reference/types/datatypes/uvec2d.md @@ -14,6 +14,6 @@ FixedSizeList<2, uint32> ## API reference links * 🌊 [C++ API docs for `UVec2D`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1datatypes_1_1UVec2D.html) * 🐍 [Python API docs for `UVec2D`](https://ref.rerun.io/docs/python/stable/common/datatypes#rerun.datatypes.UVec2D) - * 🦀 [Rust API docs for `UVec2D`](https://ref.rerun.io/docs/rust/stable/rerun/datatypes/struct.UVec2D.html) + * 🦀 [Rust API docs for `UVec2D`](https://docs.rs/rerun/latest/rerun/datatypes/struct.UVec2D.html) diff --git a/docs/content/reference/types/datatypes/uvec3d.md b/docs/content/reference/types/datatypes/uvec3d.md index 20eed478f602..7f9fc18f0779 100644 --- a/docs/content/reference/types/datatypes/uvec3d.md +++ b/docs/content/reference/types/datatypes/uvec3d.md @@ -14,7 +14,7 @@ FixedSizeList<3, uint32> ## API reference links * 🌊 [C++ API docs for `UVec3D`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1datatypes_1_1UVec3D.html) * 🐍 [Python API docs for `UVec3D`](https://ref.rerun.io/docs/python/stable/common/datatypes#rerun.datatypes.UVec3D) - * 🦀 [Rust API docs for `UVec3D`](https://ref.rerun.io/docs/rust/stable/rerun/datatypes/struct.UVec3D.html) + * 🦀 [Rust API docs for `UVec3D`](https://docs.rs/rerun/latest/rerun/datatypes/struct.UVec3D.html) ## Used by diff --git a/docs/content/reference/types/datatypes/uvec4d.md b/docs/content/reference/types/datatypes/uvec4d.md index 14b99ed30036..0f9f3b292534 100644 --- a/docs/content/reference/types/datatypes/uvec4d.md +++ b/docs/content/reference/types/datatypes/uvec4d.md @@ -14,6 +14,6 @@ FixedSizeList<4, uint32> ## API reference links * 🌊 [C++ API docs for `UVec4D`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1datatypes_1_1UVec4D.html) * 🐍 [Python API docs for `UVec4D`](https://ref.rerun.io/docs/python/stable/common/datatypes#rerun.datatypes.UVec4D) - * 🦀 [Rust API docs for `UVec4D`](https://ref.rerun.io/docs/rust/stable/rerun/datatypes/struct.UVec4D.html) + * 🦀 [Rust API docs for `UVec4D`](https://docs.rs/rerun/latest/rerun/datatypes/struct.UVec4D.html) diff --git a/docs/content/reference/types/datatypes/vec2d.md b/docs/content/reference/types/datatypes/vec2d.md index ace8cd750195..1c9be0557c86 100644 --- a/docs/content/reference/types/datatypes/vec2d.md +++ b/docs/content/reference/types/datatypes/vec2d.md @@ -14,7 +14,7 @@ FixedSizeList<2, float32> ## API reference links * 🌊 [C++ API docs for `Vec2D`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1datatypes_1_1Vec2D.html) * 🐍 [Python API docs for `Vec2D`](https://ref.rerun.io/docs/python/stable/common/datatypes#rerun.datatypes.Vec2D) - * 🦀 [Rust API docs for `Vec2D`](https://ref.rerun.io/docs/rust/stable/rerun/datatypes/struct.Vec2D.html) + * 🦀 [Rust API docs for `Vec2D`](https://docs.rs/rerun/latest/rerun/datatypes/struct.Vec2D.html) ## Used by diff --git a/docs/content/reference/types/datatypes/vec3d.md b/docs/content/reference/types/datatypes/vec3d.md index f7cf0b665a9c..6de9efa0e522 100644 --- a/docs/content/reference/types/datatypes/vec3d.md +++ b/docs/content/reference/types/datatypes/vec3d.md @@ -14,7 +14,7 @@ FixedSizeList<3, float32> ## API reference links * 🌊 [C++ API docs for `Vec3D`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1datatypes_1_1Vec3D.html) * 🐍 [Python API docs for `Vec3D`](https://ref.rerun.io/docs/python/stable/common/datatypes#rerun.datatypes.Vec3D) - * 🦀 [Rust API docs for `Vec3D`](https://ref.rerun.io/docs/rust/stable/rerun/datatypes/struct.Vec3D.html) + * 🦀 [Rust API docs for `Vec3D`](https://docs.rs/rerun/latest/rerun/datatypes/struct.Vec3D.html) ## Used by diff --git a/docs/content/reference/types/datatypes/vec4d.md b/docs/content/reference/types/datatypes/vec4d.md index 29cca0e39ed0..26b9f0789b0b 100644 --- a/docs/content/reference/types/datatypes/vec4d.md +++ b/docs/content/reference/types/datatypes/vec4d.md @@ -14,6 +14,6 @@ FixedSizeList<4, float32> ## API reference links * 🌊 [C++ API docs for `Vec4D`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1datatypes_1_1Vec4D.html) * 🐍 [Python API docs for `Vec4D`](https://ref.rerun.io/docs/python/stable/common/datatypes#rerun.datatypes.Vec4D) - * 🦀 [Rust API docs for `Vec4D`](https://ref.rerun.io/docs/rust/stable/rerun/datatypes/struct.Vec4D.html) + * 🦀 [Rust API docs for `Vec4D`](https://docs.rs/rerun/latest/rerun/datatypes/struct.Vec4D.html) diff --git a/docs/content/reference/types/datatypes/video_timestamp.md b/docs/content/reference/types/datatypes/video_timestamp.md index 2ef3046aa4e4..a64a6c701f28 100644 --- a/docs/content/reference/types/datatypes/video_timestamp.md +++ b/docs/content/reference/types/datatypes/video_timestamp.md @@ -17,7 +17,7 @@ int64 ## API reference links * 🌊 [C++ API docs for `VideoTimestamp`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1datatypes_1_1VideoTimestamp.html) * 🐍 [Python API docs for `VideoTimestamp`](https://ref.rerun.io/docs/python/stable/common/datatypes#rerun.datatypes.VideoTimestamp) - * 🦀 [Rust API docs for `VideoTimestamp`](https://ref.rerun.io/docs/rust/stable/rerun/datatypes/struct.VideoTimestamp.html) + * 🦀 [Rust API docs for `VideoTimestamp`](https://docs.rs/rerun/latest/rerun/datatypes/struct.VideoTimestamp.html) ## Used by diff --git a/docs/content/reference/types/datatypes/view_coordinates.md b/docs/content/reference/types/datatypes/view_coordinates.md index d9fffeb5a4b1..33157fdeeb0b 100644 --- a/docs/content/reference/types/datatypes/view_coordinates.md +++ b/docs/content/reference/types/datatypes/view_coordinates.md @@ -31,7 +31,7 @@ FixedSizeList<3, uint8> ## API reference links * 🌊 [C++ API docs for `ViewCoordinates`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1datatypes_1_1ViewCoordinates.html) * 🐍 [Python API docs for `ViewCoordinates`](https://ref.rerun.io/docs/python/stable/common/datatypes#rerun.datatypes.ViewCoordinates) - * 🦀 [Rust API docs for `ViewCoordinates`](https://ref.rerun.io/docs/rust/stable/rerun/datatypes/struct.ViewCoordinates.html) + * 🦀 [Rust API docs for `ViewCoordinates`](https://docs.rs/rerun/latest/rerun/datatypes/struct.ViewCoordinates.html) ## Used by diff --git a/docs/content/reference/types/datatypes/visible_time_range.md b/docs/content/reference/types/datatypes/visible_time_range.md index b177e002158e..6ad2bc9c8cb4 100644 --- a/docs/content/reference/types/datatypes/visible_time_range.md +++ b/docs/content/reference/types/datatypes/visible_time_range.md @@ -41,6 +41,6 @@ Struct { ## API reference links * 🌊 [C++ API docs for `VisibleTimeRange`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1datatypes_1_1VisibleTimeRange.html) * 🐍 [Python API docs for `VisibleTimeRange`](https://ref.rerun.io/docs/python/stable/common/datatypes#rerun.datatypes.VisibleTimeRange) - * 🦀 [Rust API docs for `VisibleTimeRange`](https://ref.rerun.io/docs/rust/stable/rerun/datatypes/struct.VisibleTimeRange.html) + * 🦀 [Rust API docs for `VisibleTimeRange`](https://docs.rs/rerun/latest/rerun/datatypes/struct.VisibleTimeRange.html) diff --git a/examples/rust/external_data_loader/README.md b/examples/rust/external_data_loader/README.md index 32454e2f8d66..8e2988f3dded 100644 --- a/examples/rust/external_data_loader/README.md +++ b/examples/rust/external_data_loader/README.md @@ -19,6 +19,6 @@ This is an example executable data-loader plugin for the Rerun Viewer. It will log Rust source code files as markdown documents. To try it out, install it in your $PATH (`cargo install --path . -f`), then open a Rust source file with Rerun (`rerun file.rs`). -Consider using the [`send_columns`](https://ref.rerun.io/docs/rust/stable/rerun/struct.RecordingStream.html#method.send_columns) API for data loaders that ingest time series data from a file. +Consider using the [`send_columns`](https://docs.rs/rerun/latest/rerun/struct.RecordingStream.html#method.send_columns) API for data loaders that ingest time series data from a file. This can be much more efficient that the stateful `log` API as it allows bundling component data over time into a single call consuming a continuous block of memory. diff --git a/examples/rust/revy/README.md b/examples/rust/revy/README.md index 15c3124c082d..bb883399ba39 100644 --- a/examples/rust/revy/README.md +++ b/examples/rust/revy/README.md @@ -86,4 +86,4 @@ For more information, check out the [Revy repository](https://github.com/rerun-i }) ``` This will start a Rerun Viewer in the background and stream the recording data to it.\ - Check out the [`RecordingStreamBuilder`](https://ref.rerun.io/docs/rust/stable/rerun/struct.RecordingStreamBuilder.html) docs for other options (saving to file, connecting to a remote viewer, etc). + Check out the [`RecordingStreamBuilder`](https://docs.rs/rerun/latest/rerun/struct.RecordingStreamBuilder.html) docs for other options (saving to file, connecting to a remote viewer, etc). From fa8097a4e8ecf6b482242e022f36024fe71af480 Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Thu, 21 Nov 2024 16:23:21 +0100 Subject: [PATCH 2/3] Fix broken link (#8196) --- .../open_photogrammetry_format/open_photogrammetry_format.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/python/open_photogrammetry_format/open_photogrammetry_format.py b/examples/python/open_photogrammetry_format/open_photogrammetry_format.py index 1d86a7e9f687..9d32b31ef8f5 100755 --- a/examples/python/open_photogrammetry_format/open_photogrammetry_format.py +++ b/examples/python/open_photogrammetry_format/open_photogrammetry_format.py @@ -32,7 +32,7 @@ ### Links * [OPF specification](https://pix4d.github.io/opf-spec/index.html) -* [Dataset source](https://support.pix4d.com/en-us/articles/360000235126#OPF) +* [Dataset source](https://support.pix4d.com/hc/en-us/articles/360000235126#OPF) * [pyopf](https://github.com/Pix4D/pyopf) """ From 4a431a33e49bd6f246b25c9c6e2fda11ca192775 Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Thu, 21 Nov 2024 16:28:31 +0100 Subject: [PATCH 3/3] Rust API: be explicit about when we're using the arrow2 crate (#8194) ### What * Part of https://github.com/rerun-io/rerun/issues/3741 * Rename `arrow_datatype` to `arrow2_datatype` * Rename `to_arrow` to `to_arrow2` * Rename `from_arrow` to `from_arrow2` Next step is adding back the previous function names, but with actual `arrow-rs` interface, then start porting code to using them. ### Checklist * [x] I have read and agree to [Contributor Guide](https://github.com/rerun-io/rerun/blob/main/CONTRIBUTING.md) and the [Code of Conduct](https://github.com/rerun-io/rerun/blob/main/CODE_OF_CONDUCT.md) To run all checks from `main`, comment on the PR with `@rerun-bot full-check`. To deploy documentation changes immediately after merging this PR, add the `deploy docs` label. --- .../re_types_builder/src/codegen/rust/api.rs | 38 +- .../src/codegen/rust/arrow.rs | 2 +- .../src/codegen/rust/deserializer.rs | 12 +- .../src/codegen/rust/reflection.rs | 4 +- .../src/codegen/rust/serializer.rs | 8 +- crates/store/re_chunk/src/batcher.rs | 46 +- crates/store/re_chunk/src/builder.rs | 6 +- crates/store/re_chunk/src/chunk.rs | 12 +- crates/store/re_chunk/src/helpers.rs | 12 +- crates/store/re_chunk/src/iter.rs | 2 +- crates/store/re_chunk/src/merge.rs | 4 +- crates/store/re_chunk/src/slice.rs | 20 +- crates/store/re_chunk/src/transport.rs | 12 +- crates/store/re_chunk/tests/latest_at.rs | 6 +- crates/store/re_chunk/tests/range.rs | 6 +- .../store/re_chunk_store/tests/memory_test.rs | 2 +- crates/store/re_format_arrow/src/lib.rs | 2 +- .../re_log_types/src/example_components.rs | 48 +-- .../re_log_types/src/path/entity_path.rs | 14 +- .../src/archetypes/annotation_context.rs | 4 +- .../store/re_types/src/archetypes/arrows2d.rs | 18 +- .../store/re_types/src/archetypes/arrows3d.rs | 16 +- .../store/re_types/src/archetypes/asset3d.rs | 8 +- .../re_types/src/archetypes/asset_video.rs | 6 +- .../re_types/src/archetypes/bar_chart.rs | 6 +- .../store/re_types/src/archetypes/boxes2d.rs | 18 +- .../store/re_types/src/archetypes/boxes3d.rs | 22 +- .../re_types/src/archetypes/capsules3d.rs | 20 +- .../re_types/src/archetypes/depth_image.rs | 16 +- .../src/archetypes/disconnected_space.rs | 4 +- .../re_types/src/archetypes/ellipsoids3d.rs | 22 +- .../re_types/src/archetypes/encoded_image.rs | 10 +- .../src/archetypes/geo_line_strings.rs | 8 +- .../re_types/src/archetypes/geo_points.rs | 10 +- crates/store/re_types/src/archetypes/image.rs | 10 +- .../src/archetypes/instance_poses3d.rs | 12 +- .../re_types/src/archetypes/line_strips2d.rs | 16 +- .../re_types/src/archetypes/line_strips3d.rs | 14 +- .../store/re_types/src/archetypes/mesh3d.rs | 20 +- .../store/re_types/src/archetypes/pinhole.rs | 10 +- .../store/re_types/src/archetypes/points2d.rs | 18 +- .../store/re_types/src/archetypes/points3d.rs | 16 +- .../store/re_types/src/archetypes/scalar.rs | 4 +- .../src/archetypes/segmentation_image.rs | 10 +- .../re_types/src/archetypes/series_line.rs | 10 +- .../re_types/src/archetypes/series_point.rs | 10 +- .../store/re_types/src/archetypes/tensor.rs | 6 +- .../re_types/src/archetypes/text_document.rs | 6 +- .../store/re_types/src/archetypes/text_log.rs | 8 +- .../re_types/src/archetypes/transform3d.rs | 16 +- .../src/archetypes/video_frame_reference.rs | 6 +- .../src/archetypes/view_coordinates.rs | 4 +- .../src/blueprint/archetypes/background.rs | 6 +- .../blueprint/archetypes/dataframe_query.rs | 12 +- .../blueprint/archetypes/map_background.rs | 4 +- .../src/blueprint/archetypes/map_zoom.rs | 4 +- .../src/blueprint/archetypes/plot_legend.rs | 6 +- .../src/blueprint/archetypes/scalar_axis.rs | 6 +- .../archetypes/space_view_blueprint.rs | 10 +- .../archetypes/space_view_contents.rs | 4 +- .../archetypes/tensor_scalar_mapping.rs | 8 +- .../archetypes/tensor_slice_selection.rs | 22 +- .../blueprint/archetypes/tensor_view_fit.rs | 4 +- .../archetypes/visible_time_ranges.rs | 4 +- .../blueprint/archetypes/visual_bounds2d.rs | 4 +- .../src/blueprint/components/active_tab.rs | 12 +- .../blueprint/components/apply_latest_at.rs | 12 +- .../blueprint/components/background_kind.rs | 12 +- .../src/blueprint/components/column_share.rs | 17 +- .../components/component_column_selector.rs | 12 +- .../src/blueprint/components/corner2d.rs | 12 +- .../blueprint/components/filter_by_range.rs | 12 +- .../components/filter_is_not_null.rs | 12 +- .../blueprint/components/included_content.rs | 12 +- .../src/blueprint/components/interactive.rs | 12 +- .../components/lock_range_during_zoom.rs | 12 +- .../src/blueprint/components/map_provider.rs | 12 +- .../src/blueprint/components/panel_state.rs | 12 +- .../blueprint/components/query_expression.rs | 12 +- .../src/blueprint/components/row_share.rs | 17 +- .../blueprint/components/selected_columns.rs | 12 +- .../blueprint/components/space_view_class.rs | 12 +- .../blueprint/components/space_view_origin.rs | 12 +- .../tensor_dimension_index_slider.rs | 18 +- .../src/blueprint/components/timeline_name.rs | 12 +- .../src/blueprint/components/view_fit.rs | 12 +- .../components/viewer_recommendation_hash.rs | 16 +- .../src/blueprint/components/visible.rs | 12 +- .../components/visible_time_range.rs | 12 +- .../blueprint/components/visual_bounds2d.rs | 12 +- .../src/blueprint/components/zoom_level.rs | 17 +- .../datatypes/component_column_selector.rs | 18 +- .../blueprint/datatypes/filter_by_range.rs | 18 +- .../blueprint/datatypes/filter_is_not_null.rs | 28 +- .../blueprint/datatypes/selected_columns.rs | 30 +- .../tensor_dimension_index_slider.rs | 12 +- .../src/components/aggregation_policy.rs | 12 +- .../re_types/src/components/albedo_factor.rs | 16 +- .../src/components/annotation_context.rs | 16 +- .../re_types/src/components/axis_length.rs | 17 +- crates/store/re_types/src/components/blob.rs | 12 +- .../store/re_types/src/components/class_id.rs | 16 +- crates/store/re_types/src/components/color.rs | 16 +- .../store/re_types/src/components/colormap.rs | 12 +- .../re_types/src/components/depth_meter.rs | 16 +- .../src/components/disconnected_space.rs | 12 +- .../re_types/src/components/draw_order.rs | 17 +- .../re_types/src/components/entity_path.rs | 12 +- .../re_types/src/components/fill_mode.rs | 12 +- .../re_types/src/components/fill_ratio.rs | 16 +- .../src/components/gamma_correction.rs | 16 +- .../src/components/geo_line_string.rs | 12 +- .../re_types/src/components/half_size2d.rs | 16 +- .../re_types/src/components/half_size3d.rs | 16 +- .../re_types/src/components/image_buffer.rs | 12 +- .../re_types/src/components/image_format.rs | 12 +- .../src/components/image_plane_distance.rs | 17 +- .../re_types/src/components/keypoint_id.rs | 16 +- .../store/re_types/src/components/lat_lon.rs | 16 +- .../store/re_types/src/components/length.rs | 16 +- .../re_types/src/components/line_strip2d.rs | 12 +- .../re_types/src/components/line_strip3d.rs | 12 +- .../src/components/magnification_filter.rs | 12 +- .../re_types/src/components/marker_shape.rs | 12 +- .../re_types/src/components/marker_size.rs | 16 +- .../re_types/src/components/media_type.rs | 12 +- crates/store/re_types/src/components/name.rs | 12 +- .../store/re_types/src/components/opacity.rs | 16 +- .../src/components/pinhole_projection.rs | 16 +- .../components/pose_rotation_axis_angle.rs | 12 +- .../src/components/pose_rotation_quat.rs | 16 +- .../re_types/src/components/pose_scale3d.rs | 16 +- .../src/components/pose_transform_mat3x3.rs | 16 +- .../src/components/pose_translation3d.rs | 16 +- .../re_types/src/components/position2d.rs | 16 +- .../re_types/src/components/position3d.rs | 16 +- .../store/re_types/src/components/radius.rs | 16 +- .../store/re_types/src/components/range1d.rs | 16 +- .../re_types/src/components/resolution.rs | 16 +- .../src/components/rotation_axis_angle.rs | 12 +- .../re_types/src/components/rotation_quat.rs | 16 +- .../store/re_types/src/components/scalar.rs | 16 +- .../store/re_types/src/components/scale3d.rs | 16 +- .../re_types/src/components/show_labels.rs | 12 +- .../re_types/src/components/stroke_width.rs | 16 +- .../re_types/src/components/tensor_data.rs | 12 +- .../tensor_dimension_index_selection.rs | 12 +- .../src/components/tensor_height_dimension.rs | 12 +- .../src/components/tensor_width_dimension.rs | 12 +- .../re_types/src/components/texcoord2d.rs | 16 +- crates/store/re_types/src/components/text.rs | 12 +- .../re_types/src/components/text_log_level.rs | 12 +- .../src/components/transform_mat3x3.rs | 16 +- .../src/components/transform_relation.rs | 12 +- .../re_types/src/components/translation3d.rs | 16 +- .../src/components/triangle_indices.rs | 16 +- .../re_types/src/components/value_range.rs | 16 +- .../store/re_types/src/components/vector2d.rs | 16 +- .../store/re_types/src/components/vector3d.rs | 16 +- .../src/components/video_timestamp.rs | 16 +- .../src/components/view_coordinates.rs | 16 +- crates/store/re_types/src/datatypes/angle.rs | 12 +- .../re_types/src/datatypes/annotation_info.rs | 20 +- crates/store/re_types/src/datatypes/blob.rs | 10 +- .../src/datatypes/channel_datatype.rs | 12 +- .../src/datatypes/class_description.rs | 42 +- .../datatypes/class_description_map_elem.rs | 22 +- .../store/re_types/src/datatypes/class_id.rs | 12 +- .../re_types/src/datatypes/color_model.rs | 12 +- crates/store/re_types/src/datatypes/dvec2d.rs | 12 +- .../re_types/src/datatypes/image_format.rs | 38 +- .../re_types/src/datatypes/keypoint_id.rs | 12 +- .../re_types/src/datatypes/keypoint_pair.rs | 18 +- crates/store/re_types/src/datatypes/mat3x3.rs | 12 +- crates/store/re_types/src/datatypes/mat4x4.rs | 12 +- .../re_types/src/datatypes/pixel_format.rs | 12 +- .../re_types/src/datatypes/quaternion.rs | 12 +- .../store/re_types/src/datatypes/range1d.rs | 12 +- .../store/re_types/src/datatypes/range2d.rs | 18 +- crates/store/re_types/src/datatypes/rgba32.rs | 12 +- .../src/datatypes/rotation_axis_angle.rs | 18 +- .../re_types/src/datatypes/tensor_buffer.rs | 14 +- .../re_types/src/datatypes/tensor_data.rs | 30 +- .../src/datatypes/tensor_dimension.rs | 14 +- .../tensor_dimension_index_selection.rs | 14 +- .../datatypes/tensor_dimension_selection.rs | 14 +- crates/store/re_types/src/datatypes/uuid.rs | 12 +- crates/store/re_types/src/datatypes/uvec2d.rs | 12 +- crates/store/re_types/src/datatypes/uvec3d.rs | 12 +- crates/store/re_types/src/datatypes/uvec4d.rs | 12 +- crates/store/re_types/src/datatypes/vec2d.rs | 12 +- crates/store/re_types/src/datatypes/vec3d.rs | 12 +- crates/store/re_types/src/datatypes/vec4d.rs | 12 +- .../re_types/src/datatypes/video_timestamp.rs | 12 +- .../src/datatypes/view_coordinates.rs | 12 +- .../src/testing/archetypes/affix_fuzzer1.rs | 46 +- .../src/testing/archetypes/affix_fuzzer2.rs | 40 +- .../src/testing/archetypes/affix_fuzzer3.rs | 38 +- .../src/testing/archetypes/affix_fuzzer4.rs | 38 +- .../src/testing/components/affix_fuzzer1.rs | 12 +- .../src/testing/components/affix_fuzzer10.rs | 10 +- .../src/testing/components/affix_fuzzer11.rs | 10 +- .../src/testing/components/affix_fuzzer12.rs | 10 +- .../src/testing/components/affix_fuzzer13.rs | 10 +- .../src/testing/components/affix_fuzzer14.rs | 12 +- .../src/testing/components/affix_fuzzer15.rs | 12 +- .../src/testing/components/affix_fuzzer16.rs | 16 +- .../src/testing/components/affix_fuzzer17.rs | 16 +- .../src/testing/components/affix_fuzzer18.rs | 16 +- .../src/testing/components/affix_fuzzer19.rs | 12 +- .../src/testing/components/affix_fuzzer2.rs | 12 +- .../src/testing/components/affix_fuzzer20.rs | 12 +- .../src/testing/components/affix_fuzzer21.rs | 12 +- .../src/testing/components/affix_fuzzer22.rs | 10 +- .../src/testing/components/affix_fuzzer23.rs | 14 +- .../src/testing/components/affix_fuzzer3.rs | 12 +- .../src/testing/components/affix_fuzzer4.rs | 12 +- .../src/testing/components/affix_fuzzer5.rs | 12 +- .../src/testing/components/affix_fuzzer6.rs | 12 +- .../src/testing/components/affix_fuzzer7.rs | 16 +- .../src/testing/components/affix_fuzzer8.rs | 10 +- .../src/testing/components/affix_fuzzer9.rs | 10 +- .../src/testing/datatypes/affix_fuzzer1.rs | 34 +- .../src/testing/datatypes/affix_fuzzer2.rs | 10 +- .../src/testing/datatypes/affix_fuzzer20.rs | 18 +- .../src/testing/datatypes/affix_fuzzer21.rs | 14 +- .../src/testing/datatypes/affix_fuzzer22.rs | 12 +- .../src/testing/datatypes/affix_fuzzer3.rs | 24 +- .../src/testing/datatypes/affix_fuzzer4.rs | 30 +- .../src/testing/datatypes/affix_fuzzer5.rs | 18 +- .../src/testing/datatypes/enum_test.rs | 12 +- .../src/testing/datatypes/flattened_scalar.rs | 12 +- .../src/testing/datatypes/multi_enum.rs | 26 +- .../testing/datatypes/primitive_component.rs | 12 +- .../src/testing/datatypes/string_component.rs | 10 +- .../src/testing/datatypes/valued_enum.rs | 12 +- .../tests/types/annotation_context.rs | 4 +- crates/store/re_types/tests/types/arrows3d.rs | 4 +- crates/store/re_types/tests/types/asset3d.rs | 4 +- crates/store/re_types/tests/types/box2d.rs | 4 +- crates/store/re_types/tests/types/box3d.rs | 4 +- crates/store/re_types/tests/types/clear.rs | 4 +- .../store/re_types/tests/types/depth_image.rs | 4 +- .../tests/types/disconnected_space.rs | 4 +- crates/store/re_types/tests/types/fuzzy.rs | 16 +- crates/store/re_types/tests/types/image.rs | 4 +- .../re_types/tests/types/line_strips2d.rs | 4 +- .../re_types/tests/types/line_strips3d.rs | 4 +- crates/store/re_types/tests/types/mesh3d.rs | 4 +- crates/store/re_types/tests/types/pinhole.rs | 4 +- crates/store/re_types/tests/types/points2d.rs | 4 +- crates/store/re_types/tests/types/points3d.rs | 4 +- .../tests/types/segmentation_image.rs | 4 +- crates/store/re_types/tests/types/tensor.rs | 4 +- .../re_types/tests/types/text_document.rs | 4 +- .../store/re_types/tests/types/transform3d.rs | 4 +- crates/store/re_types/tests/types/validity.rs | 12 +- .../re_types/tests/types/view_coordinates.rs | 4 +- .../archetypes/container_blueprint.rs | 18 +- .../blueprint/archetypes/panel_blueprint.rs | 4 +- .../archetypes/viewport_blueprint.rs | 12 +- .../src/blueprint/components/auto_layout.rs | 12 +- .../blueprint/components/auto_space_views.rs | 12 +- .../blueprint/components/container_kind.rs | 12 +- .../src/blueprint/components/grid_columns.rs | 16 +- .../components/included_space_view.rs | 16 +- .../blueprint/components/root_container.rs | 16 +- .../components/space_view_maximized.rs | 16 +- .../components/visualizer_overrides.rs | 12 +- .../src/blueprint/datatypes/utf8list.rs | 10 +- .../store/re_types_core/benches/bench_tuid.rs | 6 +- crates/store/re_types_core/src/archetype.rs | 12 +- .../re_types_core/src/archetypes/clear.rs | 4 +- .../src/components/clear_is_recursive.rs | 12 +- .../store/re_types_core/src/datatypes/bool.rs | 10 +- .../src/datatypes/entity_path.rs | 10 +- .../re_types_core/src/datatypes/float32.rs | 12 +- .../re_types_core/src/datatypes/float64.rs | 12 +- .../re_types_core/src/datatypes/time_int.rs | 12 +- .../re_types_core/src/datatypes/time_range.rs | 26 +- .../src/datatypes/time_range_boundary.rs | 18 +- .../re_types_core/src/datatypes/uint16.rs | 12 +- .../re_types_core/src/datatypes/uint32.rs | 12 +- .../re_types_core/src/datatypes/uint64.rs | 12 +- .../store/re_types_core/src/datatypes/utf8.rs | 10 +- .../src/datatypes/visible_time_range.rs | 22 +- crates/store/re_types_core/src/lib.rs | 4 +- crates/store/re_types_core/src/loggable.rs | 14 +- .../store/re_types_core/src/loggable_batch.rs | 48 +-- crates/store/re_types_core/src/tuid.rs | 30 +- crates/top/re_sdk/src/recording_stream.rs | 25 +- .../src/datatype_uis/singleline_string.rs | 4 +- .../re_data_ui/src/component_ui_registry.rs | 2 +- crates/viewer/re_space_view/src/lib.rs | 2 +- .../viewer/re_space_view/src/results_ext.rs | 2 +- .../src/max_image_dimension_subscriber.rs | 9 +- .../src/line_visualizer_system.rs | 8 +- .../src/point_visualizer_system.rs | 8 +- .../re_viewer/src/blueprint/validation.rs | 6 +- crates/viewer/re_viewer/src/reflection/mod.rs | 396 +++++++++--------- .../src/component_fallbacks.rs | 2 +- .../src/component_ui_registry.rs | 4 +- .../src/view_properties.rs | 4 +- docs/snippets/all/tutorials/custom_data.rs | 8 +- 304 files changed, 2195 insertions(+), 2177 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 a919b4864a04..99feda813e40 100644 --- a/crates/build/re_types_builder/src/codegen/rust/api.rs +++ b/crates/build/re_types_builder/src/codegen/rust/api.rs @@ -864,15 +864,15 @@ fn quote_trait_impls_for_datatype_or_component( let quoted_arrow_datatype = if let Some(forwarded_type) = forwarded_type.as_ref() { quote! { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - #forwarded_type::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + #forwarded_type::arrow2_datatype() } } } else { let datatype = ArrowDataTypeTokenizer(&datatype, false); quote! { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; #datatype @@ -880,8 +880,8 @@ fn quote_trait_impls_for_datatype_or_component( } }; - let quoted_from_arrow = if optimize_for_buffer_slice { - let from_arrow_body = if let Some(forwarded_type) = forwarded_type.as_ref() { + let quoted_from_arrow2 = if optimize_for_buffer_slice { + let from_arrow2_body = if let Some(forwarded_type) = forwarded_type.as_ref() { let is_pod = obj .try_get_attr::(ATTR_RUST_DERIVE) .map_or(false, |d| d.contains("bytemuck::Pod")) @@ -890,11 +890,11 @@ fn quote_trait_impls_for_datatype_or_component( .map_or(false, |d| d.contains("bytemuck::Pod")); if is_pod { quote! { - #forwarded_type::from_arrow(arrow_data).map(bytemuck::cast_vec) + #forwarded_type::from_arrow2(arrow_data).map(bytemuck::cast_vec) } } else { quote! { - #forwarded_type::from_arrow(arrow_data).map(|v| v.into_iter().map(Self).collect()) + #forwarded_type::from_arrow2(arrow_data).map(|v| v.into_iter().map(Self).collect()) } } } else { @@ -923,13 +923,13 @@ fn quote_trait_impls_for_datatype_or_component( quote! { #[inline] - fn from_arrow( + fn from_arrow2( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult> where Self: Sized { - #from_arrow_body + #from_arrow2_body } } } else { @@ -939,7 +939,7 @@ fn quote_trait_impls_for_datatype_or_component( // Forward deserialization to existing datatype if it's transparent. let quoted_deserializer = if let Some(forwarded_type) = forwarded_type.as_ref() { quote! { - #forwarded_type::from_arrow_opt(arrow_data).map(|v| v.into_iter().map(|v| v.map(Self)).collect()) + #forwarded_type::from_arrow2_opt(arrow_data).map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } else { let quoted_deserializer = quote_arrow_deserializer(arrow_registry, objects, obj); @@ -956,13 +956,13 @@ fn quote_trait_impls_for_datatype_or_component( let quoted_serializer = if let Some(forwarded_type) = forwarded_type.as_ref() { quote! { - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - #forwarded_type::to_arrow_opt(data.into_iter().map(|datum| { + #forwarded_type::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -976,7 +976,7 @@ fn quote_trait_impls_for_datatype_or_component( quote! { // NOTE: Don't inline this, this gets _huge_. - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -1015,7 +1015,7 @@ fn quote_trait_impls_for_datatype_or_component( #quoted_serializer // NOTE: Don't inline this, this gets _huge_. - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -1024,7 +1024,7 @@ fn quote_trait_impls_for_datatype_or_component( #quoted_deserializer } - #quoted_from_arrow + #quoted_from_arrow2 } #quoted_impl_component @@ -1173,7 +1173,7 @@ fn quote_trait_impls_for_archetype(obj: &Object) -> TokenStream { quote! { if let Some(array) = arrays_by_name.get(#field_typ_fqname_str) { - <#component>::from_arrow_opt(&**array) + <#component>::from_arrow2_opt(&**array) .with_context(#obj_field_fqname)? #quoted_collection } else { @@ -1184,7 +1184,7 @@ fn quote_trait_impls_for_archetype(obj: &Object) -> TokenStream { quote! { if let Some(array) = arrays_by_name.get(#field_typ_fqname_str) { Some({ - <#component>::from_arrow_opt(&**array) + <#component>::from_arrow2_opt(&**array) .with_context(#obj_field_fqname)? #quoted_collection }) @@ -1199,7 +1199,7 @@ fn quote_trait_impls_for_archetype(obj: &Object) -> TokenStream { .ok_or_else(DeserializationError::missing_data) .with_context(#obj_field_fqname)?; - <#component>::from_arrow_opt(&**array).with_context(#obj_field_fqname)? #quoted_collection + <#component>::from_arrow2_opt(&**array).with_context(#obj_field_fqname)? #quoted_collection }} }; @@ -1269,7 +1269,7 @@ fn quote_trait_impls_for_archetype(obj: &Object) -> TokenStream { } #[inline] - fn from_arrow_components( + fn from_arrow2_components( arrow_data: impl IntoIterator, diff --git a/crates/build/re_types_builder/src/codegen/rust/arrow.rs b/crates/build/re_types_builder/src/codegen/rust/arrow.rs index 8809ed7680e9..82509d5ae255 100644 --- a/crates/build/re_types_builder/src/codegen/rust/arrow.rs +++ b/crates/build/re_types_builder/src/codegen/rust/arrow.rs @@ -65,7 +65,7 @@ impl quote::ToTokens for ArrowDataTypeTokenizer<'_> { DataType::Extension(fqname, datatype, _metadata) => { if *recursive { let fqname_use = quote_fqname_as_type_path(fqname); - quote!(<#fqname_use>::arrow_datatype()) + quote!(<#fqname_use>::arrow2_datatype()) } else { let datatype = ArrowDataTypeTokenizer(datatype.to_logical_type(), false); quote!(#datatype) diff --git a/crates/build/re_types_builder/src/codegen/rust/deserializer.rs b/crates/build/re_types_builder/src/codegen/rust/deserializer.rs index 5db7eeee4bc4..5e54a58c939f 100644 --- a/crates/build/re_types_builder/src/codegen/rust/deserializer.rs +++ b/crates/build/re_types_builder/src/codegen/rust/deserializer.rs @@ -18,9 +18,9 @@ use crate::{ /// This short-circuits on error using the `try` (`?`) operator: the outer scope must be one that /// returns a `Result<_, DeserializationError>`! /// -/// There is a 1:1 relationship between `quote_arrow_deserializer` and `Loggable::from_arrow_opt`: +/// There is a 1:1 relationship between `quote_arrow_deserializer` and `Loggable::from_arrow2_opt`: /// ```ignore -/// fn from_arrow_opt(data: &dyn ::arrow2::array::Array) -> DeserializationResult>> { +/// fn from_arrow2_opt(data: &dyn ::arrow2::array::Array) -> DeserializationResult>> { /// Ok(#quoted_deserializer) /// } /// ``` @@ -60,7 +60,7 @@ pub fn quote_arrow_deserializer( let data_src = format_ident!("arrow_data"); let datatype = &arrow_registry.get(&obj.fqname); - let quoted_self_datatype = quote! { Self::arrow_datatype() }; + let quoted_self_datatype = quote! { Self::arrow2_datatype() }; let obj_fqname = obj.fqname.as_str(); let is_enum = obj.is_enum(); @@ -494,7 +494,7 @@ enum InnerRepr { /// /// The `datatype` comes from our compile-time Arrow registry, not from the runtime payload! /// If the datatype happens to be a struct or union, this will merely inject a runtime call to -/// `Loggable::from_arrow_opt` and call it a day, preventing code bloat. +/// `Loggable::from_arrow2_opt` and call it a day, preventing code bloat. /// /// `data_src` is the runtime identifier of the variable holding the Arrow payload (`&dyn ::arrow2::array::Array`). /// The returned `TokenStream` always instantiates a `Vec>`. @@ -517,7 +517,7 @@ fn quote_arrow_field_deserializer( if let DataType::Extension(fqname, _, _) = datatype { if objects.get(fqname).map_or(false, |obj| obj.is_enum()) { let fqname_use = quote_fqname_as_type_path(fqname); - return quote!(#fqname_use::from_arrow_opt(#data_src).with_context(#obj_field_fqname)?.into_iter()); + return quote!(#fqname_use::from_arrow2_opt(#data_src).with_context(#obj_field_fqname)?.into_iter()); } } @@ -848,7 +848,7 @@ fn quote_arrow_field_deserializer( unreachable!() }; let fqname_use = quote_fqname_as_type_path(fqname); - quote!(#fqname_use::from_arrow_opt(#data_src).with_context(#obj_field_fqname)?.into_iter()) + quote!(#fqname_use::from_arrow2_opt(#data_src).with_context(#obj_field_fqname)?.into_iter()) } _ => unimplemented!("{datatype:#?}"), 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 79819a4fd6a5..308929bbef70 100644 --- a/crates/build/re_types_builder/src/codegen/rust/reflection.rs +++ b/crates/build/re_types_builder/src/codegen/rust/reflection.rs @@ -136,7 +136,7 @@ fn generate_component_reflection( || contents.contains(&format!("impl Default for super::{}", &obj.name)) }); let custom_placeholder = if auto_derive_default || has_custom_default_impl { - quote! { Some(#type_name::default().to_arrow()?) } + quote! { Some(#type_name::default().to_arrow2()?) } } else { quote! { None } }; @@ -145,7 +145,7 @@ fn generate_component_reflection( ComponentReflection { docstring_md: #docstring_md, custom_placeholder: #custom_placeholder, - datatype: #type_name::arrow_datatype(), + datatype: #type_name::arrow2_datatype(), } }; quoted_pairs.push(quote! { (#quoted_name, #quoted_reflection) }); diff --git a/crates/build/re_types_builder/src/codegen/rust/serializer.rs b/crates/build/re_types_builder/src/codegen/rust/serializer.rs index 3b6df80ab07c..4ac39260cb86 100644 --- a/crates/build/re_types_builder/src/codegen/rust/serializer.rs +++ b/crates/build/re_types_builder/src/codegen/rust/serializer.rs @@ -19,7 +19,7 @@ pub fn quote_arrow_serializer( ) -> TokenStream { let datatype = &arrow_registry.get(&obj.fqname); - let quoted_datatype = quote! { Self::arrow_datatype() }; + let quoted_datatype = quote! { Self::arrow2_datatype() }; let is_enum = obj.is_enum(); let is_arrow_transparent = obj.datatype.is_none(); @@ -51,7 +51,7 @@ pub fn quote_arrow_serializer( let bitmap_dst = format_ident!("{quoted_data_dst}_bitmap"); // The choice of true or false for `elements_are_nullable` here is a bit confusing. - // This code-gen path forms the basis of `to_arrow_opt`, which implies that we + // This code-gen path forms the basis of `to_arrow2_opt`, which implies that we // support nullable elements. Additionally, this MAY be used as a recursive code // path when using an enum within a struct, and that struct within the field may // be null, as such the elements are always handled as nullable. @@ -485,7 +485,7 @@ fn quote_arrow_field_serializer( return quote! {{ _ = #bitmap_src; - #fqname_use::to_arrow_opt(#data_src #option_wrapper)? + #fqname_use::to_arrow2_opt(#data_src #option_wrapper)? }}; } } @@ -903,7 +903,7 @@ fn quote_arrow_field_serializer( quote! {{ _ = #bitmap_src; - #fqname_use::to_arrow_opt(#data_src #option_wrapper)? + #fqname_use::to_arrow2_opt(#data_src #option_wrapper)? }} } diff --git a/crates/store/re_chunk/src/batcher.rs b/crates/store/re_chunk/src/batcher.rs index c12bda62275a..3e09dbb81c2d 100644 --- a/crates/store/re_chunk/src/batcher.rs +++ b/crates/store/re_chunk/src/batcher.rs @@ -1000,9 +1000,9 @@ mod tests { let timepoint2 = TimePoint::default().with(timeline1, 43); let timepoint3 = TimePoint::default().with(timeline1, 44); - let points1 = MyPoint::to_arrow([MyPoint::new(1.0, 2.0), MyPoint::new(3.0, 4.0)])?; - let points2 = MyPoint::to_arrow([MyPoint::new(10.0, 20.0), MyPoint::new(30.0, 40.0)])?; - let points3 = MyPoint::to_arrow([MyPoint::new(100.0, 200.0), MyPoint::new(300.0, 400.0)])?; + let points1 = MyPoint::to_arrow2([MyPoint::new(1.0, 2.0), MyPoint::new(3.0, 4.0)])?; + let points2 = MyPoint::to_arrow2([MyPoint::new(10.0, 20.0), MyPoint::new(30.0, 40.0)])?; + let points3 = MyPoint::to_arrow2([MyPoint::new(100.0, 200.0), MyPoint::new(300.0, 400.0)])?; let components1 = [(MyPoint::name(), points1.clone())]; let components2 = [(MyPoint::name(), points2.clone())]; @@ -1079,9 +1079,9 @@ mod tests { let timeless = TimePoint::default(); - let points1 = MyPoint::to_arrow([MyPoint::new(1.0, 2.0), MyPoint::new(3.0, 4.0)])?; - let points2 = MyPoint::to_arrow([MyPoint::new(10.0, 20.0), MyPoint::new(30.0, 40.0)])?; - let points3 = MyPoint::to_arrow([MyPoint::new(100.0, 200.0), MyPoint::new(300.0, 400.0)])?; + let points1 = MyPoint::to_arrow2([MyPoint::new(1.0, 2.0), MyPoint::new(3.0, 4.0)])?; + let points2 = MyPoint::to_arrow2([MyPoint::new(10.0, 20.0), MyPoint::new(30.0, 40.0)])?; + let points3 = MyPoint::to_arrow2([MyPoint::new(100.0, 200.0), MyPoint::new(300.0, 400.0)])?; let components1 = [(MyPoint::name(), points1.clone())]; let components2 = [(MyPoint::name(), points2.clone())]; @@ -1155,9 +1155,9 @@ mod tests { let timepoint2 = TimePoint::default().with(timeline1, 43); let timepoint3 = TimePoint::default().with(timeline1, 44); - let points1 = MyPoint::to_arrow([MyPoint::new(1.0, 2.0), MyPoint::new(3.0, 4.0)])?; - let points2 = MyPoint::to_arrow([MyPoint::new(10.0, 20.0), MyPoint::new(30.0, 40.0)])?; - let points3 = MyPoint::to_arrow([MyPoint::new(100.0, 200.0), MyPoint::new(300.0, 400.0)])?; + let points1 = MyPoint::to_arrow2([MyPoint::new(1.0, 2.0), MyPoint::new(3.0, 4.0)])?; + let points2 = MyPoint::to_arrow2([MyPoint::new(10.0, 20.0), MyPoint::new(30.0, 40.0)])?; + let points3 = MyPoint::to_arrow2([MyPoint::new(100.0, 200.0), MyPoint::new(300.0, 400.0)])?; let components1 = [(MyPoint::name(), points1.clone())]; let components2 = [(MyPoint::name(), points2.clone())]; @@ -1271,9 +1271,9 @@ mod tests { .with(timeline1, 44) .with(timeline2, 1001); - let points1 = MyPoint::to_arrow([MyPoint::new(1.0, 2.0), MyPoint::new(3.0, 4.0)])?; - let points2 = MyPoint::to_arrow([MyPoint::new(10.0, 20.0), MyPoint::new(30.0, 40.0)])?; - let points3 = MyPoint::to_arrow([MyPoint::new(100.0, 200.0), MyPoint::new(300.0, 400.0)])?; + let points1 = MyPoint::to_arrow2([MyPoint::new(1.0, 2.0), MyPoint::new(3.0, 4.0)])?; + let points2 = MyPoint::to_arrow2([MyPoint::new(10.0, 20.0), MyPoint::new(30.0, 40.0)])?; + let points3 = MyPoint::to_arrow2([MyPoint::new(100.0, 200.0), MyPoint::new(300.0, 400.0)])?; let components1 = [(MyPoint::name(), points1.clone())]; let components2 = [(MyPoint::name(), points2.clone())]; @@ -1391,10 +1391,10 @@ mod tests { let timepoint2 = TimePoint::default().with(timeline1, 43); let timepoint3 = TimePoint::default().with(timeline1, 44); - let points1 = MyPoint::to_arrow([MyPoint::new(1.0, 2.0), MyPoint::new(3.0, 4.0)])?; + let points1 = MyPoint::to_arrow2([MyPoint::new(1.0, 2.0), MyPoint::new(3.0, 4.0)])?; let points2 = - MyPoint64::to_arrow([MyPoint64::new(10.0, 20.0), MyPoint64::new(30.0, 40.0)])?; - let points3 = MyPoint::to_arrow([MyPoint::new(100.0, 200.0), MyPoint::new(300.0, 400.0)])?; + MyPoint64::to_arrow2([MyPoint64::new(10.0, 20.0), MyPoint64::new(30.0, 40.0)])?; + let points3 = MyPoint::to_arrow2([MyPoint::new(100.0, 200.0), MyPoint::new(300.0, 400.0)])?; let components1 = [(MyPoint::name(), points1.clone())]; let components2 = [(MyPoint::name(), points2.clone())]; // same name, different datatype @@ -1516,11 +1516,11 @@ mod tests { .with(timeline2, 1003) .with(timeline1, 45); - let points1 = MyPoint::to_arrow([MyPoint::new(1.0, 2.0), MyPoint::new(3.0, 4.0)])?; - let points2 = MyPoint::to_arrow([MyPoint::new(10.0, 20.0), MyPoint::new(30.0, 40.0)])?; - let points3 = MyPoint::to_arrow([MyPoint::new(100.0, 200.0), MyPoint::new(300.0, 400.0)])?; + let points1 = MyPoint::to_arrow2([MyPoint::new(1.0, 2.0), MyPoint::new(3.0, 4.0)])?; + let points2 = MyPoint::to_arrow2([MyPoint::new(10.0, 20.0), MyPoint::new(30.0, 40.0)])?; + let points3 = MyPoint::to_arrow2([MyPoint::new(100.0, 200.0), MyPoint::new(300.0, 400.0)])?; let points4 = - MyPoint::to_arrow([MyPoint::new(1000.0, 2000.0), MyPoint::new(3000.0, 4000.0)])?; + MyPoint::to_arrow2([MyPoint::new(1000.0, 2000.0), MyPoint::new(3000.0, 4000.0)])?; let components1 = [(MyPoint::name(), points1.clone())]; let components2 = [(MyPoint::name(), points2.clone())]; @@ -1630,11 +1630,11 @@ mod tests { .with(timeline2, 1003) .with(timeline1, 45); - let points1 = MyPoint::to_arrow([MyPoint::new(1.0, 2.0), MyPoint::new(3.0, 4.0)])?; - let points2 = MyPoint::to_arrow([MyPoint::new(10.0, 20.0), MyPoint::new(30.0, 40.0)])?; - let points3 = MyPoint::to_arrow([MyPoint::new(100.0, 200.0), MyPoint::new(300.0, 400.0)])?; + let points1 = MyPoint::to_arrow2([MyPoint::new(1.0, 2.0), MyPoint::new(3.0, 4.0)])?; + let points2 = MyPoint::to_arrow2([MyPoint::new(10.0, 20.0), MyPoint::new(30.0, 40.0)])?; + let points3 = MyPoint::to_arrow2([MyPoint::new(100.0, 200.0), MyPoint::new(300.0, 400.0)])?; let points4 = - MyPoint::to_arrow([MyPoint::new(1000.0, 2000.0), MyPoint::new(3000.0, 4000.0)])?; + MyPoint::to_arrow2([MyPoint::new(1000.0, 2000.0), MyPoint::new(3000.0, 4000.0)])?; let components1 = [(MyPoint::name(), points1.clone())]; let components2 = [(MyPoint::name(), points2.clone())]; diff --git a/crates/store/re_chunk/src/builder.rs b/crates/store/re_chunk/src/builder.rs index 939b7044b67a..9da99f0924e8 100644 --- a/crates/store/re_chunk/src/builder.rs +++ b/crates/store/re_chunk/src/builder.rs @@ -146,7 +146,7 @@ impl ChunkBuilder { row_id, timepoint, component_batch - .to_arrow() + .to_arrow2() .ok() .map(|array| (component_batch.name(), array)), ) @@ -165,7 +165,7 @@ impl ChunkBuilder { timepoint, component_batches.into_iter().filter_map(|component_batch| { component_batch - .to_arrow() + .to_arrow2() .ok() .map(|array| (component_batch.name(), array)) }), @@ -188,7 +188,7 @@ impl ChunkBuilder { .map(|(component_name, component_batch)| { ( component_name, - component_batch.and_then(|batch| batch.to_arrow().ok()), + component_batch.and_then(|batch| batch.to_arrow2().ok()), ) }), ) diff --git a/crates/store/re_chunk/src/chunk.rs b/crates/store/re_chunk/src/chunk.rs index ab9945a09462..26847f60e28f 100644 --- a/crates/store/re_chunk/src/chunk.rs +++ b/crates/store/re_chunk/src/chunk.rs @@ -265,7 +265,7 @@ impl Chunk { .collect_vec(); #[allow(clippy::unwrap_used)] - let row_ids = ::to_arrow(&row_ids) + let row_ids = ::to_arrow2(&row_ids) // Unwrap: native RowIds cannot fail to serialize. .unwrap() .as_any() @@ -295,7 +295,7 @@ impl Chunk { .collect_vec(); #[allow(clippy::unwrap_used)] - let row_ids = ::to_arrow(&row_ids) + let row_ids = ::to_arrow2(&row_ids) // Unwrap: native RowIds cannot fail to serialize. .unwrap() .as_any() @@ -623,7 +623,7 @@ impl Chunk { ) -> ChunkResult { re_tracing::profile_function!(); let row_ids = row_ids - .to_arrow() + .to_arrow2() // NOTE: impossible, but better safe than sorry. .map_err(|err| ChunkError::Malformed { reason: format!("RowIds failed to serialize: {err}"), @@ -700,7 +700,7 @@ impl Chunk { entity_path, heap_size_bytes: Default::default(), is_sorted: true, - row_ids: ArrowStructArray::new_empty(RowId::arrow_datatype()), + row_ids: ArrowStructArray::new_empty(RowId::arrow2_datatype()), timelines: Default::default(), components: Default::default(), } @@ -1264,11 +1264,11 @@ impl Chunk { // Row IDs { - if *row_ids.data_type().to_logical_type() != RowId::arrow_datatype() { + if *row_ids.data_type().to_logical_type() != RowId::arrow2_datatype() { return Err(ChunkError::Malformed { reason: format!( "RowId data has the wrong datatype: expected {:?} but got {:?} instead", - RowId::arrow_datatype(), + RowId::arrow2_datatype(), *row_ids.data_type(), ), }); diff --git a/crates/store/re_chunk/src/helpers.rs b/crates/store/re_chunk/src/helpers.rs index f02b4b299d5c..43f89fab2bd7 100644 --- a/crates/store/re_chunk/src/helpers.rs +++ b/crates/store/re_chunk/src/helpers.rs @@ -48,7 +48,7 @@ impl Chunk { Err(err) => return Some(Err(err)), }; - let data = C::from_arrow(&*array); + let data = C::from_arrow2(&*array); Some(data.map_err(Into::into)) } @@ -99,7 +99,7 @@ impl Chunk { Err(err) => return Some(Err(err)), }; - match C::from_arrow(&*array) { + match C::from_arrow2(&*array) { Ok(data) => data.into_iter().next().map(Ok), // NOTE: It's already sliced! Err(err) => Some(Err(err.into())), } @@ -148,7 +148,7 @@ impl Chunk { Err(err) => return Some(Err(err)), }; - match C::from_arrow(&*array) { + match C::from_arrow2(&*array) { Ok(data) => data.into_iter().next().map(Ok), // NOTE: It's already sliced! Err(err) => Some(Err(err.into())), } @@ -268,7 +268,7 @@ impl UnitChunkShared { /// Returns an error if the data cannot be deserialized. #[inline] pub fn component_batch(&self) -> Option>> { - let data = C::from_arrow(&*self.component_batch_raw(&C::name())?); + let data = C::from_arrow2(&*self.component_batch_raw(&C::name())?); Some(data.map_err(Into::into)) } @@ -310,7 +310,7 @@ impl UnitChunkShared { Err(err) => return Some(Err(err)), }; - match C::from_arrow(&*array) { + match C::from_arrow2(&*array) { Ok(data) => data.into_iter().next().map(Ok), // NOTE: It's already sliced! Err(err) => Some(Err(err.into())), } @@ -350,7 +350,7 @@ impl UnitChunkShared { Err(err) => return Some(Err(err)), }; - match C::from_arrow(&*array) { + match C::from_arrow2(&*array) { Ok(data) => data.into_iter().next().map(Ok), // NOTE: It's already sliced! Err(err) => Some(Err(err.into())), } diff --git a/crates/store/re_chunk/src/iter.rs b/crates/store/re_chunk/src/iter.rs index f52b6770c4a1..6668dcb47a46 100644 --- a/crates/store/re_chunk/src/iter.rs +++ b/crates/store/re_chunk/src/iter.rs @@ -705,7 +705,7 @@ impl Chunk { }; let values = list_array.values(); - let values = match C::from_arrow(&**values) { + let values = match C::from_arrow2(&**values) { Ok(values) => values, Err(err) => { if cfg!(debug_assertions) { diff --git a/crates/store/re_chunk/src/merge.rs b/crates/store/re_chunk/src/merge.rs index c93f3f12a196..4ba2ceba41a9 100644 --- a/crates/store/re_chunk/src/merge.rs +++ b/crates/store/re_chunk/src/merge.rs @@ -768,9 +768,9 @@ mod tests { let timepoint2 = [(Timeline::new_sequence("frame"), 2)]; let points32bit = - ::to_arrow(&MyPoint::new(1.0, 1.0))?; + ::to_arrow2(&MyPoint::new(1.0, 1.0))?; let points64bit = - ::to_arrow(&MyPoint64::new(1.0, 1.0))?; + ::to_arrow2(&MyPoint64::new(1.0, 1.0))?; let chunk1 = Chunk::builder(entity_path.into()) .with_row( diff --git a/crates/store/re_chunk/src/slice.rs b/crates/store/re_chunk/src/slice.rs index 35a08d21ad31..8e7f3fe4a427 100644 --- a/crates/store/re_chunk/src/slice.rs +++ b/crates/store/re_chunk/src/slice.rs @@ -984,8 +984,8 @@ mod tests { assert!(!chunk.is_sorted()); for (row_id, component_name, expected) in expectations { - let expected = - expected.and_then(|expected| re_types_core::LoggableBatch::to_arrow(expected).ok()); + let expected = expected + .and_then(|expected| re_types_core::LoggableBatch::to_arrow2(expected).ok()); eprintln!("{component_name} @ {row_id}"); similar_asserts::assert_eq!(expected, chunk.cell(*row_id, component_name)); } @@ -994,8 +994,8 @@ mod tests { assert!(chunk.is_sorted()); for (row_id, component_name, expected) in expectations { - let expected = - expected.and_then(|expected| re_types_core::LoggableBatch::to_arrow(expected).ok()); + let expected = expected + .and_then(|expected| re_types_core::LoggableBatch::to_arrow2(expected).ok()); eprintln!("{component_name} @ {row_id}"); similar_asserts::assert_eq!(expected, chunk.cell(*row_id, component_name)); } @@ -1113,7 +1113,7 @@ mod tests { for (row_id, component_name, expected) in expectations { let expected = expected - .and_then(|expected| re_types_core::LoggableBatch::to_arrow(expected).ok()); + .and_then(|expected| re_types_core::LoggableBatch::to_arrow2(expected).ok()); eprintln!("{component_name} @ {row_id}"); similar_asserts::assert_eq!(expected, chunk.cell(*row_id, component_name)); } @@ -1144,7 +1144,7 @@ mod tests { for (row_id, component_name, expected) in expectations { let expected = expected - .and_then(|expected| re_types_core::LoggableBatch::to_arrow(expected).ok()); + .and_then(|expected| re_types_core::LoggableBatch::to_arrow2(expected).ok()); eprintln!("{component_name} @ {row_id}"); similar_asserts::assert_eq!(expected, chunk.cell(*row_id, component_name)); } @@ -1240,7 +1240,7 @@ mod tests { for (row_id, component_name, expected) in expectations { let expected = expected - .and_then(|expected| re_types_core::LoggableBatch::to_arrow(expected).ok()); + .and_then(|expected| re_types_core::LoggableBatch::to_arrow2(expected).ok()); eprintln!("{component_name} @ {row_id}"); similar_asserts::assert_eq!(expected, chunk.cell(*row_id, component_name)); } @@ -1259,7 +1259,7 @@ mod tests { for (row_id, component_name, expected) in expectations { let expected = expected - .and_then(|expected| re_types_core::LoggableBatch::to_arrow(expected).ok()); + .and_then(|expected| re_types_core::LoggableBatch::to_arrow2(expected).ok()); eprintln!("{component_name} @ {row_id}"); similar_asserts::assert_eq!(expected, chunk.cell(*row_id, component_name)); } @@ -1386,7 +1386,7 @@ mod tests { for (row_id, component_name, expected) in expectations { let expected = expected - .and_then(|expected| re_types_core::LoggableBatch::to_arrow(expected).ok()); + .and_then(|expected| re_types_core::LoggableBatch::to_arrow2(expected).ok()); eprintln!("{component_name} @ {row_id}"); similar_asserts::assert_eq!(expected, chunk.cell(*row_id, component_name)); } @@ -1533,7 +1533,7 @@ mod tests { for (row_id, component_name, expected) in expectations { let expected = expected - .and_then(|expected| re_types_core::LoggableBatch::to_arrow(expected).ok()); + .and_then(|expected| re_types_core::LoggableBatch::to_arrow2(expected).ok()); eprintln!("{component_name} @ {row_id}"); similar_asserts::assert_eq!(expected, chunk.cell(*row_id, component_name)); } diff --git a/crates/store/re_chunk/src/transport.rs b/crates/store/re_chunk/src/transport.rs index 04d9f2ed78ac..c00753caa556 100644 --- a/crates/store/re_chunk/src/transport.rs +++ b/crates/store/re_chunk/src/transport.rs @@ -476,7 +476,7 @@ impl Chunk { .ok_or_else(|| ChunkError::Malformed { reason: format!( "RowId data has the wrong datatype: expected {:?} but got {:?} instead", - RowId::arrow_datatype(), + RowId::arrow2_datatype(), *row_ids.data_type(), ), })? @@ -660,21 +660,21 @@ mod tests { let timelines2 = BTreeMap::default(); // static - let points1 = MyPoint::to_arrow([ + let points1 = MyPoint::to_arrow2([ MyPoint::new(1.0, 2.0), MyPoint::new(3.0, 4.0), MyPoint::new(5.0, 6.0), ])?; let points2 = None; - let points3 = MyPoint::to_arrow([MyPoint::new(10.0, 20.0)])?; - let points4 = MyPoint::to_arrow([MyPoint::new(100.0, 200.0), MyPoint::new(300.0, 400.0)])?; + let points3 = MyPoint::to_arrow2([MyPoint::new(10.0, 20.0)])?; + let points4 = MyPoint::to_arrow2([MyPoint::new(100.0, 200.0), MyPoint::new(300.0, 400.0)])?; - let colors1 = MyColor::to_arrow([ + let colors1 = MyColor::to_arrow2([ MyColor::from_rgb(1, 2, 3), MyColor::from_rgb(4, 5, 6), MyColor::from_rgb(7, 8, 9), ])?; - let colors2 = MyColor::to_arrow([MyColor::from_rgb(10, 20, 30)])?; + let colors2 = MyColor::to_arrow2([MyColor::from_rgb(10, 20, 30)])?; let colors3 = None; let colors4 = None; diff --git a/crates/store/re_chunk/tests/latest_at.rs b/crates/store/re_chunk/tests/latest_at.rs index 566df5e7df83..96ebe4c7bba0 100644 --- a/crates/store/re_chunk/tests/latest_at.rs +++ b/crates/store/re_chunk/tests/latest_at.rs @@ -11,9 +11,9 @@ const ENTITY_PATH: &str = "my/entity"; fn datatypes() -> IntMap { [ - (MyPoint::name(), MyPoint::arrow_datatype()), - (MyColor::name(), MyColor::arrow_datatype()), - (MyLabel::name(), MyLabel::arrow_datatype()), + (MyPoint::name(), MyPoint::arrow2_datatype()), + (MyColor::name(), MyColor::arrow2_datatype()), + (MyLabel::name(), MyLabel::arrow2_datatype()), ] .into_iter() .collect() diff --git a/crates/store/re_chunk/tests/range.rs b/crates/store/re_chunk/tests/range.rs index 1c37166bd7b8..c94c7a0fc92e 100644 --- a/crates/store/re_chunk/tests/range.rs +++ b/crates/store/re_chunk/tests/range.rs @@ -14,9 +14,9 @@ const ENTITY_PATH: &str = "my/entity"; fn datatypes() -> IntMap { [ - (MyPoint::name(), MyPoint::arrow_datatype()), - (MyColor::name(), MyColor::arrow_datatype()), - (MyLabel::name(), MyLabel::arrow_datatype()), + (MyPoint::name(), MyPoint::arrow2_datatype()), + (MyColor::name(), MyColor::arrow2_datatype()), + (MyLabel::name(), MyLabel::arrow2_datatype()), ] .into_iter() .collect() diff --git a/crates/store/re_chunk_store/tests/memory_test.rs b/crates/store/re_chunk_store/tests/memory_test.rs index 99ffa6ed2ed0..0f1c2af49979 100644 --- a/crates/store/re_chunk_store/tests/memory_test.rs +++ b/crates/store/re_chunk_store/tests/memory_test.rs @@ -100,7 +100,7 @@ fn scalar_memory_overhead() { let entity_path = re_log_types::entity_path!("scalar"); let timepoint = TimePoint::default().with(Timeline::new("log_time", TimeType::Time), i as i64); - let scalars = Scalar::to_arrow([Scalar::from(i as f64)]).unwrap(); + let scalars = Scalar::to_arrow2([Scalar::from(i as f64)]).unwrap(); let row = PendingRow::new( timepoint, diff --git a/crates/store/re_format_arrow/src/lib.rs b/crates/store/re_format_arrow/src/lib.rs index 9858d1ff9e8c..4b2a76b35cfc 100644 --- a/crates/store/re_format_arrow/src/lib.rs +++ b/crates/store/re_format_arrow/src/lib.rs @@ -67,7 +67,7 @@ fn parse_tuid(array: &dyn Array, index: usize) -> Option { _ => (array.to_boxed(), index), }; - let tuids = Tuid::from_arrow(array.as_ref()).ok()?; + let tuids = Tuid::from_arrow2(array.as_ref()).ok()?; tuids.get(index).copied() } diff --git a/crates/store/re_log_types/src/example_components.rs b/crates/store/re_log_types/src/example_components.rs index f3473f713c43..389e83b85a42 100644 --- a/crates/store/re_log_types/src/example_components.rs +++ b/crates/store/re_log_types/src/example_components.rs @@ -75,7 +75,7 @@ impl SizeBytes for MyPoint { } impl Loggable for MyPoint { - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { use arrow2::datatypes::DataType::Float32; arrow2::datatypes::DataType::Struct(Arc::new(vec![ arrow2::datatypes::Field::new("x", Float32, false), @@ -83,7 +83,7 @@ impl Loggable for MyPoint { ])) } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> re_types_core::SerializationResult> where @@ -100,12 +100,12 @@ impl Loggable for MyPoint { let y_array = arrow2::array::Float32Array::from_vec(ys).boxed(); Ok( - arrow2::array::StructArray::new(Self::arrow_datatype(), vec![x_array, y_array], None) + arrow2::array::StructArray::new(Self::arrow2_datatype(), vec![x_array, y_array], None) .boxed(), ) } - fn from_arrow_opt( + fn from_arrow2_opt( data: &dyn arrow2::array::Array, ) -> re_types_core::DeserializationResult>> { let array = data @@ -184,7 +184,7 @@ impl SizeBytes for MyPoint64 { } impl Loggable for MyPoint64 { - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { use arrow2::datatypes::DataType::Float64; arrow2::datatypes::DataType::Struct(Arc::new(vec![ arrow2::datatypes::Field::new("x", Float64, false), @@ -192,7 +192,7 @@ impl Loggable for MyPoint64 { ])) } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> re_types_core::SerializationResult> where @@ -209,12 +209,12 @@ impl Loggable for MyPoint64 { let y_array = arrow2::array::Float64Array::from_vec(ys).boxed(); Ok( - arrow2::array::StructArray::new(Self::arrow_datatype(), vec![x_array, y_array], None) + arrow2::array::StructArray::new(Self::arrow2_datatype(), vec![x_array, y_array], None) .boxed(), ) } - fn from_arrow_opt( + fn from_arrow2_opt( data: &dyn arrow2::array::Array, ) -> re_types_core::DeserializationResult>> { let array = data @@ -296,28 +296,28 @@ impl SizeBytes for MyColor { } impl Loggable for MyColor { - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { arrow2::datatypes::DataType::UInt32 } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> re_types_core::SerializationResult> where Self: 'a, { use re_types_core::datatypes::UInt32; - UInt32::to_arrow_opt( + UInt32::to_arrow2_opt( data.into_iter() .map(|opt| opt.map(Into::into).map(|c| UInt32(c.0))), ) } - fn from_arrow_opt( + fn from_arrow2_opt( data: &dyn arrow2::array::Array, ) -> re_types_core::DeserializationResult>> { use re_types_core::datatypes::UInt32; - Ok(UInt32::from_arrow_opt(data)? + Ok(UInt32::from_arrow2_opt(data)? .into_iter() .map(|opt| opt.map(|v| Self(v.0))) .collect()) @@ -347,28 +347,28 @@ impl SizeBytes for MyLabel { } impl Loggable for MyLabel { - fn arrow_datatype() -> arrow2::datatypes::DataType { - re_types_core::datatypes::Utf8::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + re_types_core::datatypes::Utf8::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> re_types_core::SerializationResult> where Self: 'a, { use re_types_core::datatypes::Utf8; - Utf8::to_arrow_opt( + Utf8::to_arrow2_opt( data.into_iter() .map(|opt| opt.map(Into::into).map(|l| Utf8(l.0.clone().into()))), ) } - fn from_arrow_opt( + fn from_arrow2_opt( data: &dyn arrow2::array::Array, ) -> re_types_core::DeserializationResult>> { use re_types_core::datatypes::Utf8; - Ok(Utf8::from_arrow_opt(data)? + Ok(Utf8::from_arrow2_opt(data)? .into_iter() .map(|opt| opt.map(|v| Self(v.0.to_string()))) .collect()) @@ -407,28 +407,28 @@ impl SizeBytes for MyIndex { } impl Loggable for MyIndex { - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { arrow2::datatypes::DataType::UInt64 } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> re_types_core::SerializationResult> where Self: 'a, { use re_types_core::datatypes::UInt64; - UInt64::to_arrow_opt( + UInt64::to_arrow2_opt( data.into_iter() .map(|opt| opt.map(Into::into).map(|c| UInt64(c.0))), ) } - fn from_arrow_opt( + fn from_arrow2_opt( data: &dyn arrow2::array::Array, ) -> re_types_core::DeserializationResult>> { use re_types_core::datatypes::UInt64; - Ok(UInt64::from_arrow_opt(data)? + Ok(UInt64::from_arrow2_opt(data)? .into_iter() .map(|opt| opt.map(|v| Self(v.0))) .collect()) 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 d059f573f188..ea412cf364cf 100644 --- a/crates/store/re_log_types/src/path/entity_path.rs +++ b/crates/store/re_log_types/src/path/entity_path.rs @@ -423,11 +423,11 @@ re_types_core::macros::impl_into_cow!(EntityPath); impl Loggable for EntityPath { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - re_types_core::datatypes::Utf8::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + re_types_core::datatypes::Utf8::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( _data: impl IntoIterator>>>, ) -> re_types_core::SerializationResult> where @@ -440,23 +440,23 @@ impl Loggable for EntityPath { } #[inline] - fn to_arrow<'a>( + fn to_arrow2<'a>( data: impl IntoIterator>>, ) -> re_types_core::SerializationResult> where Self: 'a, { - re_types_core::datatypes::Utf8::to_arrow( + re_types_core::datatypes::Utf8::to_arrow2( data.into_iter() .map(Into::into) .map(|ent_path| re_types_core::datatypes::Utf8(ent_path.to_string().into())), ) } - fn from_arrow( + fn from_arrow2( array: &dyn ::arrow2::array::Array, ) -> re_types_core::DeserializationResult> { - Ok(re_types_core::datatypes::Utf8::from_arrow(array)? + Ok(re_types_core::datatypes::Utf8::from_arrow2(array)? .into_iter() .map(|utf8| Self::from(utf8.to_string())) .collect()) diff --git a/crates/store/re_types/src/archetypes/annotation_context.rs b/crates/store/re_types/src/archetypes/annotation_context.rs index b2717806c887..22bbd20e1508 100644 --- a/crates/store/re_types/src/archetypes/annotation_context.rs +++ b/crates/store/re_types/src/archetypes/annotation_context.rs @@ -152,7 +152,7 @@ impl ::re_types_core::Archetype for AnnotationContext { } #[inline] - fn from_arrow_components( + fn from_arrow2_components( arrow_data: impl IntoIterator)>, ) -> DeserializationResult { re_tracing::profile_function!(); @@ -166,7 +166,7 @@ impl ::re_types_core::Archetype for AnnotationContext { .get("rerun.components.AnnotationContext") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.archetypes.AnnotationContext#context")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.AnnotationContext#context")? .into_iter() .next() diff --git a/crates/store/re_types/src/archetypes/arrows2d.rs b/crates/store/re_types/src/archetypes/arrows2d.rs index bedc33649bde..61b91af0fbe5 100644 --- a/crates/store/re_types/src/archetypes/arrows2d.rs +++ b/crates/store/re_types/src/archetypes/arrows2d.rs @@ -199,7 +199,7 @@ impl ::re_types_core::Archetype for Arrows2D { } #[inline] - fn from_arrow_components( + fn from_arrow2_components( arrow_data: impl IntoIterator)>, ) -> DeserializationResult { re_tracing::profile_function!(); @@ -213,7 +213,7 @@ impl ::re_types_core::Archetype for Arrows2D { .get("rerun.components.Vector2D") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.archetypes.Arrows2D#vectors")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Arrows2D#vectors")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -222,7 +222,7 @@ impl ::re_types_core::Archetype for Arrows2D { }; let origins = if let Some(array) = arrays_by_name.get("rerun.components.Position2D") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Arrows2D#origins")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -234,7 +234,7 @@ impl ::re_types_core::Archetype for Arrows2D { }; let radii = if let Some(array) = arrays_by_name.get("rerun.components.Radius") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Arrows2D#radii")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -246,7 +246,7 @@ impl ::re_types_core::Archetype for Arrows2D { }; let colors = if let Some(array) = arrays_by_name.get("rerun.components.Color") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Arrows2D#colors")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -258,7 +258,7 @@ impl ::re_types_core::Archetype for Arrows2D { }; let labels = if let Some(array) = arrays_by_name.get("rerun.components.Text") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Arrows2D#labels")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -269,7 +269,7 @@ impl ::re_types_core::Archetype for Arrows2D { None }; let show_labels = if let Some(array) = arrays_by_name.get("rerun.components.ShowLabels") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Arrows2D#show_labels")? .into_iter() .next() @@ -278,7 +278,7 @@ impl ::re_types_core::Archetype for Arrows2D { None }; let draw_order = if let Some(array) = arrays_by_name.get("rerun.components.DrawOrder") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Arrows2D#draw_order")? .into_iter() .next() @@ -288,7 +288,7 @@ impl ::re_types_core::Archetype for Arrows2D { }; let class_ids = if let Some(array) = arrays_by_name.get("rerun.components.ClassId") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Arrows2D#class_ids")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) diff --git a/crates/store/re_types/src/archetypes/arrows3d.rs b/crates/store/re_types/src/archetypes/arrows3d.rs index ce72fc982ec0..fca47c39aacd 100644 --- a/crates/store/re_types/src/archetypes/arrows3d.rs +++ b/crates/store/re_types/src/archetypes/arrows3d.rs @@ -203,7 +203,7 @@ impl ::re_types_core::Archetype for Arrows3D { } #[inline] - fn from_arrow_components( + fn from_arrow2_components( arrow_data: impl IntoIterator)>, ) -> DeserializationResult { re_tracing::profile_function!(); @@ -217,7 +217,7 @@ impl ::re_types_core::Archetype for Arrows3D { .get("rerun.components.Vector3D") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.archetypes.Arrows3D#vectors")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Arrows3D#vectors")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -226,7 +226,7 @@ impl ::re_types_core::Archetype for Arrows3D { }; let origins = if let Some(array) = arrays_by_name.get("rerun.components.Position3D") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Arrows3D#origins")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -238,7 +238,7 @@ impl ::re_types_core::Archetype for Arrows3D { }; let radii = if let Some(array) = arrays_by_name.get("rerun.components.Radius") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Arrows3D#radii")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -250,7 +250,7 @@ impl ::re_types_core::Archetype for Arrows3D { }; let colors = if let Some(array) = arrays_by_name.get("rerun.components.Color") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Arrows3D#colors")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -262,7 +262,7 @@ impl ::re_types_core::Archetype for Arrows3D { }; let labels = if let Some(array) = arrays_by_name.get("rerun.components.Text") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Arrows3D#labels")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -273,7 +273,7 @@ impl ::re_types_core::Archetype for Arrows3D { None }; let show_labels = if let Some(array) = arrays_by_name.get("rerun.components.ShowLabels") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Arrows3D#show_labels")? .into_iter() .next() @@ -283,7 +283,7 @@ impl ::re_types_core::Archetype for Arrows3D { }; let class_ids = if let Some(array) = arrays_by_name.get("rerun.components.ClassId") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Arrows3D#class_ids")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) diff --git a/crates/store/re_types/src/archetypes/asset3d.rs b/crates/store/re_types/src/archetypes/asset3d.rs index 5983dff798c7..c52ee742ca05 100644 --- a/crates/store/re_types/src/archetypes/asset3d.rs +++ b/crates/store/re_types/src/archetypes/asset3d.rs @@ -166,7 +166,7 @@ impl ::re_types_core::Archetype for Asset3D { } #[inline] - fn from_arrow_components( + fn from_arrow2_components( arrow_data: impl IntoIterator)>, ) -> DeserializationResult { re_tracing::profile_function!(); @@ -180,7 +180,7 @@ impl ::re_types_core::Archetype for Asset3D { .get("rerun.components.Blob") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.archetypes.Asset3D#blob")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Asset3D#blob")? .into_iter() .next() @@ -189,7 +189,7 @@ impl ::re_types_core::Archetype for Asset3D { .with_context("rerun.archetypes.Asset3D#blob")? }; let media_type = if let Some(array) = arrays_by_name.get("rerun.components.MediaType") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Asset3D#media_type")? .into_iter() .next() @@ -199,7 +199,7 @@ impl ::re_types_core::Archetype for Asset3D { }; let albedo_factor = if let Some(array) = arrays_by_name.get("rerun.components.AlbedoFactor") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Asset3D#albedo_factor")? .into_iter() .next() diff --git a/crates/store/re_types/src/archetypes/asset_video.rs b/crates/store/re_types/src/archetypes/asset_video.rs index e07cdf929fb1..9e6411aac9ce 100644 --- a/crates/store/re_types/src/archetypes/asset_video.rs +++ b/crates/store/re_types/src/archetypes/asset_video.rs @@ -222,7 +222,7 @@ impl ::re_types_core::Archetype for AssetVideo { } #[inline] - fn from_arrow_components( + fn from_arrow2_components( arrow_data: impl IntoIterator)>, ) -> DeserializationResult { re_tracing::profile_function!(); @@ -236,7 +236,7 @@ impl ::re_types_core::Archetype for AssetVideo { .get("rerun.components.Blob") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.archetypes.AssetVideo#blob")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.AssetVideo#blob")? .into_iter() .next() @@ -245,7 +245,7 @@ impl ::re_types_core::Archetype for AssetVideo { .with_context("rerun.archetypes.AssetVideo#blob")? }; let media_type = if let Some(array) = arrays_by_name.get("rerun.components.MediaType") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.AssetVideo#media_type")? .into_iter() .next() diff --git a/crates/store/re_types/src/archetypes/bar_chart.rs b/crates/store/re_types/src/archetypes/bar_chart.rs index a3f841a409e1..caebaadf295e 100644 --- a/crates/store/re_types/src/archetypes/bar_chart.rs +++ b/crates/store/re_types/src/archetypes/bar_chart.rs @@ -133,7 +133,7 @@ impl ::re_types_core::Archetype for BarChart { } #[inline] - fn from_arrow_components( + fn from_arrow2_components( arrow_data: impl IntoIterator)>, ) -> DeserializationResult { re_tracing::profile_function!(); @@ -147,7 +147,7 @@ impl ::re_types_core::Archetype for BarChart { .get("rerun.components.TensorData") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.archetypes.BarChart#values")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.BarChart#values")? .into_iter() .next() @@ -156,7 +156,7 @@ impl ::re_types_core::Archetype for BarChart { .with_context("rerun.archetypes.BarChart#values")? }; let color = if let Some(array) = arrays_by_name.get("rerun.components.Color") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.BarChart#color")? .into_iter() .next() diff --git a/crates/store/re_types/src/archetypes/boxes2d.rs b/crates/store/re_types/src/archetypes/boxes2d.rs index 6a50249836f9..7066ac700d39 100644 --- a/crates/store/re_types/src/archetypes/boxes2d.rs +++ b/crates/store/re_types/src/archetypes/boxes2d.rs @@ -192,7 +192,7 @@ impl ::re_types_core::Archetype for Boxes2D { } #[inline] - fn from_arrow_components( + fn from_arrow2_components( arrow_data: impl IntoIterator)>, ) -> DeserializationResult { re_tracing::profile_function!(); @@ -206,7 +206,7 @@ impl ::re_types_core::Archetype for Boxes2D { .get("rerun.components.HalfSize2D") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.archetypes.Boxes2D#half_sizes")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Boxes2D#half_sizes")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -215,7 +215,7 @@ impl ::re_types_core::Archetype for Boxes2D { }; let centers = if let Some(array) = arrays_by_name.get("rerun.components.Position2D") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Boxes2D#centers")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -227,7 +227,7 @@ impl ::re_types_core::Archetype for Boxes2D { }; let colors = if let Some(array) = arrays_by_name.get("rerun.components.Color") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Boxes2D#colors")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -239,7 +239,7 @@ impl ::re_types_core::Archetype for Boxes2D { }; let radii = if let Some(array) = arrays_by_name.get("rerun.components.Radius") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Boxes2D#radii")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -251,7 +251,7 @@ impl ::re_types_core::Archetype for Boxes2D { }; let labels = if let Some(array) = arrays_by_name.get("rerun.components.Text") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Boxes2D#labels")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -262,7 +262,7 @@ impl ::re_types_core::Archetype for Boxes2D { None }; let show_labels = if let Some(array) = arrays_by_name.get("rerun.components.ShowLabels") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Boxes2D#show_labels")? .into_iter() .next() @@ -271,7 +271,7 @@ impl ::re_types_core::Archetype for Boxes2D { None }; let draw_order = if let Some(array) = arrays_by_name.get("rerun.components.DrawOrder") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Boxes2D#draw_order")? .into_iter() .next() @@ -281,7 +281,7 @@ impl ::re_types_core::Archetype for Boxes2D { }; let class_ids = if let Some(array) = arrays_by_name.get("rerun.components.ClassId") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Boxes2D#class_ids")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) diff --git a/crates/store/re_types/src/archetypes/boxes3d.rs b/crates/store/re_types/src/archetypes/boxes3d.rs index 80090c6e4c14..180810e27f8c 100644 --- a/crates/store/re_types/src/archetypes/boxes3d.rs +++ b/crates/store/re_types/src/archetypes/boxes3d.rs @@ -230,7 +230,7 @@ impl ::re_types_core::Archetype for Boxes3D { } #[inline] - fn from_arrow_components( + fn from_arrow2_components( arrow_data: impl IntoIterator)>, ) -> DeserializationResult { re_tracing::profile_function!(); @@ -244,7 +244,7 @@ impl ::re_types_core::Archetype for Boxes3D { .get("rerun.components.HalfSize3D") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.archetypes.Boxes3D#half_sizes")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Boxes3D#half_sizes")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -254,7 +254,7 @@ impl ::re_types_core::Archetype for Boxes3D { let centers = if let Some(array) = arrays_by_name.get("rerun.components.PoseTranslation3D") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Boxes3D#centers")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -267,7 +267,7 @@ impl ::re_types_core::Archetype for Boxes3D { let rotation_axis_angles = if let Some(array) = arrays_by_name.get("rerun.components.PoseRotationAxisAngle") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Boxes3D#rotation_axis_angles")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -280,7 +280,7 @@ impl ::re_types_core::Archetype for Boxes3D { let quaternions = if let Some(array) = arrays_by_name.get("rerun.components.PoseRotationQuat") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Boxes3D#quaternions")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -292,7 +292,7 @@ impl ::re_types_core::Archetype for Boxes3D { }; let colors = if let Some(array) = arrays_by_name.get("rerun.components.Color") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Boxes3D#colors")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -304,7 +304,7 @@ impl ::re_types_core::Archetype for Boxes3D { }; let radii = if let Some(array) = arrays_by_name.get("rerun.components.Radius") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Boxes3D#radii")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -315,7 +315,7 @@ impl ::re_types_core::Archetype for Boxes3D { None }; let fill_mode = if let Some(array) = arrays_by_name.get("rerun.components.FillMode") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Boxes3D#fill_mode")? .into_iter() .next() @@ -325,7 +325,7 @@ impl ::re_types_core::Archetype for Boxes3D { }; let labels = if let Some(array) = arrays_by_name.get("rerun.components.Text") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Boxes3D#labels")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -336,7 +336,7 @@ impl ::re_types_core::Archetype for Boxes3D { None }; let show_labels = if let Some(array) = arrays_by_name.get("rerun.components.ShowLabels") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Boxes3D#show_labels")? .into_iter() .next() @@ -346,7 +346,7 @@ impl ::re_types_core::Archetype for Boxes3D { }; let class_ids = if let Some(array) = arrays_by_name.get("rerun.components.ClassId") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Boxes3D#class_ids")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) diff --git a/crates/store/re_types/src/archetypes/capsules3d.rs b/crates/store/re_types/src/archetypes/capsules3d.rs index 9db3227b1a8c..43125d119b81 100644 --- a/crates/store/re_types/src/archetypes/capsules3d.rs +++ b/crates/store/re_types/src/archetypes/capsules3d.rs @@ -232,7 +232,7 @@ impl ::re_types_core::Archetype for Capsules3D { } #[inline] - fn from_arrow_components( + fn from_arrow2_components( arrow_data: impl IntoIterator)>, ) -> DeserializationResult { re_tracing::profile_function!(); @@ -246,7 +246,7 @@ impl ::re_types_core::Archetype for Capsules3D { .get("rerun.components.Length") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.archetypes.Capsules3D#lengths")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Capsules3D#lengths")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -258,7 +258,7 @@ impl ::re_types_core::Archetype for Capsules3D { .get("rerun.components.Radius") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.archetypes.Capsules3D#radii")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Capsules3D#radii")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -268,7 +268,7 @@ impl ::re_types_core::Archetype for Capsules3D { let translations = if let Some(array) = arrays_by_name.get("rerun.components.PoseTranslation3D") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Capsules3D#translations")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -281,7 +281,7 @@ impl ::re_types_core::Archetype for Capsules3D { let rotation_axis_angles = if let Some(array) = arrays_by_name.get("rerun.components.PoseRotationAxisAngle") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Capsules3D#rotation_axis_angles")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -294,7 +294,7 @@ impl ::re_types_core::Archetype for Capsules3D { let quaternions = if let Some(array) = arrays_by_name.get("rerun.components.PoseRotationQuat") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Capsules3D#quaternions")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -306,7 +306,7 @@ impl ::re_types_core::Archetype for Capsules3D { }; let colors = if let Some(array) = arrays_by_name.get("rerun.components.Color") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Capsules3D#colors")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -318,7 +318,7 @@ impl ::re_types_core::Archetype for Capsules3D { }; let labels = if let Some(array) = arrays_by_name.get("rerun.components.Text") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Capsules3D#labels")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -329,7 +329,7 @@ impl ::re_types_core::Archetype for Capsules3D { None }; let show_labels = if let Some(array) = arrays_by_name.get("rerun.components.ShowLabels") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Capsules3D#show_labels")? .into_iter() .next() @@ -339,7 +339,7 @@ impl ::re_types_core::Archetype for Capsules3D { }; let class_ids = if let Some(array) = arrays_by_name.get("rerun.components.ClassId") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Capsules3D#class_ids")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) diff --git a/crates/store/re_types/src/archetypes/depth_image.rs b/crates/store/re_types/src/archetypes/depth_image.rs index 9032c30bd030..42f82815f263 100644 --- a/crates/store/re_types/src/archetypes/depth_image.rs +++ b/crates/store/re_types/src/archetypes/depth_image.rs @@ -222,7 +222,7 @@ impl ::re_types_core::Archetype for DepthImage { } #[inline] - fn from_arrow_components( + fn from_arrow2_components( arrow_data: impl IntoIterator)>, ) -> DeserializationResult { re_tracing::profile_function!(); @@ -236,7 +236,7 @@ impl ::re_types_core::Archetype for DepthImage { .get("rerun.components.ImageBuffer") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.archetypes.DepthImage#buffer")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.DepthImage#buffer")? .into_iter() .next() @@ -249,7 +249,7 @@ impl ::re_types_core::Archetype for DepthImage { .get("rerun.components.ImageFormat") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.archetypes.DepthImage#format")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.DepthImage#format")? .into_iter() .next() @@ -258,7 +258,7 @@ impl ::re_types_core::Archetype for DepthImage { .with_context("rerun.archetypes.DepthImage#format")? }; let meter = if let Some(array) = arrays_by_name.get("rerun.components.DepthMeter") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.DepthImage#meter")? .into_iter() .next() @@ -267,7 +267,7 @@ impl ::re_types_core::Archetype for DepthImage { None }; let colormap = if let Some(array) = arrays_by_name.get("rerun.components.Colormap") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.DepthImage#colormap")? .into_iter() .next() @@ -276,7 +276,7 @@ impl ::re_types_core::Archetype for DepthImage { None }; let depth_range = if let Some(array) = arrays_by_name.get("rerun.components.ValueRange") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.DepthImage#depth_range")? .into_iter() .next() @@ -286,7 +286,7 @@ impl ::re_types_core::Archetype for DepthImage { }; let point_fill_ratio = if let Some(array) = arrays_by_name.get("rerun.components.FillRatio") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.DepthImage#point_fill_ratio")? .into_iter() .next() @@ -295,7 +295,7 @@ impl ::re_types_core::Archetype for DepthImage { None }; let draw_order = if let Some(array) = arrays_by_name.get("rerun.components.DrawOrder") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.DepthImage#draw_order")? .into_iter() .next() diff --git a/crates/store/re_types/src/archetypes/disconnected_space.rs b/crates/store/re_types/src/archetypes/disconnected_space.rs index 04a2a451a86c..e3308b01372b 100644 --- a/crates/store/re_types/src/archetypes/disconnected_space.rs +++ b/crates/store/re_types/src/archetypes/disconnected_space.rs @@ -144,7 +144,7 @@ impl ::re_types_core::Archetype for DisconnectedSpace { } #[inline] - fn from_arrow_components( + fn from_arrow2_components( arrow_data: impl IntoIterator)>, ) -> DeserializationResult { re_tracing::profile_function!(); @@ -158,7 +158,7 @@ impl ::re_types_core::Archetype for DisconnectedSpace { .get("rerun.components.DisconnectedSpace") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.archetypes.DisconnectedSpace#disconnected_space")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.DisconnectedSpace#disconnected_space")? .into_iter() .next() diff --git a/crates/store/re_types/src/archetypes/ellipsoids3d.rs b/crates/store/re_types/src/archetypes/ellipsoids3d.rs index 0d5a1670ffc2..2293bfa84f39 100644 --- a/crates/store/re_types/src/archetypes/ellipsoids3d.rs +++ b/crates/store/re_types/src/archetypes/ellipsoids3d.rs @@ -193,7 +193,7 @@ impl ::re_types_core::Archetype for Ellipsoids3D { } #[inline] - fn from_arrow_components( + fn from_arrow2_components( arrow_data: impl IntoIterator)>, ) -> DeserializationResult { re_tracing::profile_function!(); @@ -207,7 +207,7 @@ impl ::re_types_core::Archetype for Ellipsoids3D { .get("rerun.components.HalfSize3D") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.archetypes.Ellipsoids3D#half_sizes")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Ellipsoids3D#half_sizes")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -217,7 +217,7 @@ impl ::re_types_core::Archetype for Ellipsoids3D { let centers = if let Some(array) = arrays_by_name.get("rerun.components.PoseTranslation3D") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Ellipsoids3D#centers")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -230,7 +230,7 @@ impl ::re_types_core::Archetype for Ellipsoids3D { let rotation_axis_angles = if let Some(array) = arrays_by_name.get("rerun.components.PoseRotationAxisAngle") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Ellipsoids3D#rotation_axis_angles")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -243,7 +243,7 @@ impl ::re_types_core::Archetype for Ellipsoids3D { let quaternions = if let Some(array) = arrays_by_name.get("rerun.components.PoseRotationQuat") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Ellipsoids3D#quaternions")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -255,7 +255,7 @@ impl ::re_types_core::Archetype for Ellipsoids3D { }; let colors = if let Some(array) = arrays_by_name.get("rerun.components.Color") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Ellipsoids3D#colors")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -267,7 +267,7 @@ impl ::re_types_core::Archetype for Ellipsoids3D { }; let line_radii = if let Some(array) = arrays_by_name.get("rerun.components.Radius") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Ellipsoids3D#line_radii")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -278,7 +278,7 @@ impl ::re_types_core::Archetype for Ellipsoids3D { None }; let fill_mode = if let Some(array) = arrays_by_name.get("rerun.components.FillMode") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Ellipsoids3D#fill_mode")? .into_iter() .next() @@ -288,7 +288,7 @@ impl ::re_types_core::Archetype for Ellipsoids3D { }; let labels = if let Some(array) = arrays_by_name.get("rerun.components.Text") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Ellipsoids3D#labels")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -299,7 +299,7 @@ impl ::re_types_core::Archetype for Ellipsoids3D { None }; let show_labels = if let Some(array) = arrays_by_name.get("rerun.components.ShowLabels") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Ellipsoids3D#show_labels")? .into_iter() .next() @@ -309,7 +309,7 @@ impl ::re_types_core::Archetype for Ellipsoids3D { }; let class_ids = if let Some(array) = arrays_by_name.get("rerun.components.ClassId") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Ellipsoids3D#class_ids")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) diff --git a/crates/store/re_types/src/archetypes/encoded_image.rs b/crates/store/re_types/src/archetypes/encoded_image.rs index 2962feba7c20..ea5bff668cd7 100644 --- a/crates/store/re_types/src/archetypes/encoded_image.rs +++ b/crates/store/re_types/src/archetypes/encoded_image.rs @@ -162,7 +162,7 @@ impl ::re_types_core::Archetype for EncodedImage { } #[inline] - fn from_arrow_components( + fn from_arrow2_components( arrow_data: impl IntoIterator)>, ) -> DeserializationResult { re_tracing::profile_function!(); @@ -176,7 +176,7 @@ impl ::re_types_core::Archetype for EncodedImage { .get("rerun.components.Blob") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.archetypes.EncodedImage#blob")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.EncodedImage#blob")? .into_iter() .next() @@ -185,7 +185,7 @@ impl ::re_types_core::Archetype for EncodedImage { .with_context("rerun.archetypes.EncodedImage#blob")? }; let media_type = if let Some(array) = arrays_by_name.get("rerun.components.MediaType") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.EncodedImage#media_type")? .into_iter() .next() @@ -194,7 +194,7 @@ impl ::re_types_core::Archetype for EncodedImage { None }; let opacity = if let Some(array) = arrays_by_name.get("rerun.components.Opacity") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.EncodedImage#opacity")? .into_iter() .next() @@ -203,7 +203,7 @@ impl ::re_types_core::Archetype for EncodedImage { None }; let draw_order = if let Some(array) = arrays_by_name.get("rerun.components.DrawOrder") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.EncodedImage#draw_order")? .into_iter() .next() diff --git a/crates/store/re_types/src/archetypes/geo_line_strings.rs b/crates/store/re_types/src/archetypes/geo_line_strings.rs index 242a99868902..560442880977 100644 --- a/crates/store/re_types/src/archetypes/geo_line_strings.rs +++ b/crates/store/re_types/src/archetypes/geo_line_strings.rs @@ -158,7 +158,7 @@ impl ::re_types_core::Archetype for GeoLineStrings { } #[inline] - fn from_arrow_components( + fn from_arrow2_components( arrow_data: impl IntoIterator)>, ) -> DeserializationResult { re_tracing::profile_function!(); @@ -172,7 +172,7 @@ impl ::re_types_core::Archetype for GeoLineStrings { .get("rerun.components.GeoLineString") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.archetypes.GeoLineStrings#line_strings")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.GeoLineStrings#line_strings")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -181,7 +181,7 @@ impl ::re_types_core::Archetype for GeoLineStrings { }; let radii = if let Some(array) = arrays_by_name.get("rerun.components.Radius") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.GeoLineStrings#radii")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -193,7 +193,7 @@ impl ::re_types_core::Archetype for GeoLineStrings { }; let colors = if let Some(array) = arrays_by_name.get("rerun.components.Color") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.GeoLineStrings#colors")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) diff --git a/crates/store/re_types/src/archetypes/geo_points.rs b/crates/store/re_types/src/archetypes/geo_points.rs index 05e6a9c676a7..500c7e8d4a2d 100644 --- a/crates/store/re_types/src/archetypes/geo_points.rs +++ b/crates/store/re_types/src/archetypes/geo_points.rs @@ -157,7 +157,7 @@ impl ::re_types_core::Archetype for GeoPoints { } #[inline] - fn from_arrow_components( + fn from_arrow2_components( arrow_data: impl IntoIterator)>, ) -> DeserializationResult { re_tracing::profile_function!(); @@ -171,7 +171,7 @@ impl ::re_types_core::Archetype for GeoPoints { .get("rerun.components.LatLon") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.archetypes.GeoPoints#positions")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.GeoPoints#positions")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -180,7 +180,7 @@ impl ::re_types_core::Archetype for GeoPoints { }; let radii = if let Some(array) = arrays_by_name.get("rerun.components.Radius") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.GeoPoints#radii")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -192,7 +192,7 @@ impl ::re_types_core::Archetype for GeoPoints { }; let colors = if let Some(array) = arrays_by_name.get("rerun.components.Color") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.GeoPoints#colors")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -204,7 +204,7 @@ impl ::re_types_core::Archetype for GeoPoints { }; let class_ids = if let Some(array) = arrays_by_name.get("rerun.components.ClassId") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.GeoPoints#class_ids")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) diff --git a/crates/store/re_types/src/archetypes/image.rs b/crates/store/re_types/src/archetypes/image.rs index 92b6338291f5..9b6c68978d09 100644 --- a/crates/store/re_types/src/archetypes/image.rs +++ b/crates/store/re_types/src/archetypes/image.rs @@ -241,7 +241,7 @@ impl ::re_types_core::Archetype for Image { } #[inline] - fn from_arrow_components( + fn from_arrow2_components( arrow_data: impl IntoIterator)>, ) -> DeserializationResult { re_tracing::profile_function!(); @@ -255,7 +255,7 @@ impl ::re_types_core::Archetype for Image { .get("rerun.components.ImageBuffer") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.archetypes.Image#buffer")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Image#buffer")? .into_iter() .next() @@ -268,7 +268,7 @@ impl ::re_types_core::Archetype for Image { .get("rerun.components.ImageFormat") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.archetypes.Image#format")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Image#format")? .into_iter() .next() @@ -277,7 +277,7 @@ impl ::re_types_core::Archetype for Image { .with_context("rerun.archetypes.Image#format")? }; let opacity = if let Some(array) = arrays_by_name.get("rerun.components.Opacity") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Image#opacity")? .into_iter() .next() @@ -286,7 +286,7 @@ impl ::re_types_core::Archetype for Image { None }; let draw_order = if let Some(array) = arrays_by_name.get("rerun.components.DrawOrder") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Image#draw_order")? .into_iter() .next() diff --git a/crates/store/re_types/src/archetypes/instance_poses3d.rs b/crates/store/re_types/src/archetypes/instance_poses3d.rs index 2bae38d77e5b..0903a53dfb68 100644 --- a/crates/store/re_types/src/archetypes/instance_poses3d.rs +++ b/crates/store/re_types/src/archetypes/instance_poses3d.rs @@ -205,7 +205,7 @@ impl ::re_types_core::Archetype for InstancePoses3D { } #[inline] - fn from_arrow_components( + fn from_arrow2_components( arrow_data: impl IntoIterator)>, ) -> DeserializationResult { re_tracing::profile_function!(); @@ -217,7 +217,7 @@ impl ::re_types_core::Archetype for InstancePoses3D { let translations = if let Some(array) = arrays_by_name.get("rerun.components.PoseTranslation3D") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.InstancePoses3D#translations")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -230,7 +230,7 @@ impl ::re_types_core::Archetype for InstancePoses3D { let rotation_axis_angles = if let Some(array) = arrays_by_name.get("rerun.components.PoseRotationAxisAngle") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.InstancePoses3D#rotation_axis_angles")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -243,7 +243,7 @@ impl ::re_types_core::Archetype for InstancePoses3D { let quaternions = if let Some(array) = arrays_by_name.get("rerun.components.PoseRotationQuat") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.InstancePoses3D#quaternions")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -255,7 +255,7 @@ impl ::re_types_core::Archetype for InstancePoses3D { }; let scales = if let Some(array) = arrays_by_name.get("rerun.components.PoseScale3D") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.InstancePoses3D#scales")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -268,7 +268,7 @@ impl ::re_types_core::Archetype for InstancePoses3D { let mat3x3 = if let Some(array) = arrays_by_name.get("rerun.components.PoseTransformMat3x3") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.InstancePoses3D#mat3x3")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) diff --git a/crates/store/re_types/src/archetypes/line_strips2d.rs b/crates/store/re_types/src/archetypes/line_strips2d.rs index e9bb3b73a4b5..259ded243719 100644 --- a/crates/store/re_types/src/archetypes/line_strips2d.rs +++ b/crates/store/re_types/src/archetypes/line_strips2d.rs @@ -222,7 +222,7 @@ impl ::re_types_core::Archetype for LineStrips2D { } #[inline] - fn from_arrow_components( + fn from_arrow2_components( arrow_data: impl IntoIterator)>, ) -> DeserializationResult { re_tracing::profile_function!(); @@ -236,7 +236,7 @@ impl ::re_types_core::Archetype for LineStrips2D { .get("rerun.components.LineStrip2D") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.archetypes.LineStrips2D#strips")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.LineStrips2D#strips")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -245,7 +245,7 @@ impl ::re_types_core::Archetype for LineStrips2D { }; let radii = if let Some(array) = arrays_by_name.get("rerun.components.Radius") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.LineStrips2D#radii")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -257,7 +257,7 @@ impl ::re_types_core::Archetype for LineStrips2D { }; let colors = if let Some(array) = arrays_by_name.get("rerun.components.Color") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.LineStrips2D#colors")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -269,7 +269,7 @@ impl ::re_types_core::Archetype for LineStrips2D { }; let labels = if let Some(array) = arrays_by_name.get("rerun.components.Text") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.LineStrips2D#labels")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -280,7 +280,7 @@ impl ::re_types_core::Archetype for LineStrips2D { None }; let show_labels = if let Some(array) = arrays_by_name.get("rerun.components.ShowLabels") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.LineStrips2D#show_labels")? .into_iter() .next() @@ -289,7 +289,7 @@ impl ::re_types_core::Archetype for LineStrips2D { None }; let draw_order = if let Some(array) = arrays_by_name.get("rerun.components.DrawOrder") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.LineStrips2D#draw_order")? .into_iter() .next() @@ -299,7 +299,7 @@ impl ::re_types_core::Archetype for LineStrips2D { }; let class_ids = if let Some(array) = arrays_by_name.get("rerun.components.ClassId") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.LineStrips2D#class_ids")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) diff --git a/crates/store/re_types/src/archetypes/line_strips3d.rs b/crates/store/re_types/src/archetypes/line_strips3d.rs index f48259fc2170..0080beae7aec 100644 --- a/crates/store/re_types/src/archetypes/line_strips3d.rs +++ b/crates/store/re_types/src/archetypes/line_strips3d.rs @@ -228,7 +228,7 @@ impl ::re_types_core::Archetype for LineStrips3D { } #[inline] - fn from_arrow_components( + fn from_arrow2_components( arrow_data: impl IntoIterator)>, ) -> DeserializationResult { re_tracing::profile_function!(); @@ -242,7 +242,7 @@ impl ::re_types_core::Archetype for LineStrips3D { .get("rerun.components.LineStrip3D") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.archetypes.LineStrips3D#strips")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.LineStrips3D#strips")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -251,7 +251,7 @@ impl ::re_types_core::Archetype for LineStrips3D { }; let radii = if let Some(array) = arrays_by_name.get("rerun.components.Radius") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.LineStrips3D#radii")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -263,7 +263,7 @@ impl ::re_types_core::Archetype for LineStrips3D { }; let colors = if let Some(array) = arrays_by_name.get("rerun.components.Color") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.LineStrips3D#colors")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -275,7 +275,7 @@ impl ::re_types_core::Archetype for LineStrips3D { }; let labels = if let Some(array) = arrays_by_name.get("rerun.components.Text") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.LineStrips3D#labels")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -286,7 +286,7 @@ impl ::re_types_core::Archetype for LineStrips3D { None }; let show_labels = if let Some(array) = arrays_by_name.get("rerun.components.ShowLabels") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.LineStrips3D#show_labels")? .into_iter() .next() @@ -296,7 +296,7 @@ impl ::re_types_core::Archetype for LineStrips3D { }; let class_ids = if let Some(array) = arrays_by_name.get("rerun.components.ClassId") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.LineStrips3D#class_ids")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) diff --git a/crates/store/re_types/src/archetypes/mesh3d.rs b/crates/store/re_types/src/archetypes/mesh3d.rs index 3ac1ece946ec..46d78a599191 100644 --- a/crates/store/re_types/src/archetypes/mesh3d.rs +++ b/crates/store/re_types/src/archetypes/mesh3d.rs @@ -261,7 +261,7 @@ impl ::re_types_core::Archetype for Mesh3D { } #[inline] - fn from_arrow_components( + fn from_arrow2_components( arrow_data: impl IntoIterator)>, ) -> DeserializationResult { re_tracing::profile_function!(); @@ -275,7 +275,7 @@ impl ::re_types_core::Archetype for Mesh3D { .get("rerun.components.Position3D") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.archetypes.Mesh3D#vertex_positions")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Mesh3D#vertex_positions")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -285,7 +285,7 @@ impl ::re_types_core::Archetype for Mesh3D { let triangle_indices = if let Some(array) = arrays_by_name.get("rerun.components.TriangleIndices") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Mesh3D#triangle_indices")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -297,7 +297,7 @@ impl ::re_types_core::Archetype for Mesh3D { }; let vertex_normals = if let Some(array) = arrays_by_name.get("rerun.components.Vector3D") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Mesh3D#vertex_normals")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -309,7 +309,7 @@ impl ::re_types_core::Archetype for Mesh3D { }; let vertex_colors = if let Some(array) = arrays_by_name.get("rerun.components.Color") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Mesh3D#vertex_colors")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -322,7 +322,7 @@ impl ::re_types_core::Archetype for Mesh3D { let vertex_texcoords = if let Some(array) = arrays_by_name.get("rerun.components.Texcoord2D") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Mesh3D#vertex_texcoords")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -334,7 +334,7 @@ impl ::re_types_core::Archetype for Mesh3D { }; let albedo_factor = if let Some(array) = arrays_by_name.get("rerun.components.AlbedoFactor") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Mesh3D#albedo_factor")? .into_iter() .next() @@ -344,7 +344,7 @@ impl ::re_types_core::Archetype for Mesh3D { }; let albedo_texture_buffer = if let Some(array) = arrays_by_name.get("rerun.components.ImageBuffer") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Mesh3D#albedo_texture_buffer")? .into_iter() .next() @@ -354,7 +354,7 @@ impl ::re_types_core::Archetype for Mesh3D { }; let albedo_texture_format = if let Some(array) = arrays_by_name.get("rerun.components.ImageFormat") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Mesh3D#albedo_texture_format")? .into_iter() .next() @@ -364,7 +364,7 @@ impl ::re_types_core::Archetype for Mesh3D { }; let class_ids = if let Some(array) = arrays_by_name.get("rerun.components.ClassId") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Mesh3D#class_ids")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) diff --git a/crates/store/re_types/src/archetypes/pinhole.rs b/crates/store/re_types/src/archetypes/pinhole.rs index 124dcf47d924..95d09610101d 100644 --- a/crates/store/re_types/src/archetypes/pinhole.rs +++ b/crates/store/re_types/src/archetypes/pinhole.rs @@ -232,7 +232,7 @@ impl ::re_types_core::Archetype for Pinhole { } #[inline] - fn from_arrow_components( + fn from_arrow2_components( arrow_data: impl IntoIterator)>, ) -> DeserializationResult { re_tracing::profile_function!(); @@ -246,7 +246,7 @@ impl ::re_types_core::Archetype for Pinhole { .get("rerun.components.PinholeProjection") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.archetypes.Pinhole#image_from_camera")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Pinhole#image_from_camera")? .into_iter() .next() @@ -255,7 +255,7 @@ impl ::re_types_core::Archetype for Pinhole { .with_context("rerun.archetypes.Pinhole#image_from_camera")? }; let resolution = if let Some(array) = arrays_by_name.get("rerun.components.Resolution") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Pinhole#resolution")? .into_iter() .next() @@ -265,7 +265,7 @@ impl ::re_types_core::Archetype for Pinhole { }; let camera_xyz = if let Some(array) = arrays_by_name.get("rerun.components.ViewCoordinates") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Pinhole#camera_xyz")? .into_iter() .next() @@ -275,7 +275,7 @@ impl ::re_types_core::Archetype for Pinhole { }; let image_plane_distance = if let Some(array) = arrays_by_name.get("rerun.components.ImagePlaneDistance") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Pinhole#image_plane_distance")? .into_iter() .next() diff --git a/crates/store/re_types/src/archetypes/points2d.rs b/crates/store/re_types/src/archetypes/points2d.rs index 2f0d162f68bb..47d327e88752 100644 --- a/crates/store/re_types/src/archetypes/points2d.rs +++ b/crates/store/re_types/src/archetypes/points2d.rs @@ -249,7 +249,7 @@ impl ::re_types_core::Archetype for Points2D { } #[inline] - fn from_arrow_components( + fn from_arrow2_components( arrow_data: impl IntoIterator)>, ) -> DeserializationResult { re_tracing::profile_function!(); @@ -263,7 +263,7 @@ impl ::re_types_core::Archetype for Points2D { .get("rerun.components.Position2D") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.archetypes.Points2D#positions")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Points2D#positions")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -272,7 +272,7 @@ impl ::re_types_core::Archetype for Points2D { }; let radii = if let Some(array) = arrays_by_name.get("rerun.components.Radius") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Points2D#radii")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -284,7 +284,7 @@ impl ::re_types_core::Archetype for Points2D { }; let colors = if let Some(array) = arrays_by_name.get("rerun.components.Color") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Points2D#colors")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -296,7 +296,7 @@ impl ::re_types_core::Archetype for Points2D { }; let labels = if let Some(array) = arrays_by_name.get("rerun.components.Text") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Points2D#labels")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -307,7 +307,7 @@ impl ::re_types_core::Archetype for Points2D { None }; let show_labels = if let Some(array) = arrays_by_name.get("rerun.components.ShowLabels") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Points2D#show_labels")? .into_iter() .next() @@ -316,7 +316,7 @@ impl ::re_types_core::Archetype for Points2D { None }; let draw_order = if let Some(array) = arrays_by_name.get("rerun.components.DrawOrder") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Points2D#draw_order")? .into_iter() .next() @@ -326,7 +326,7 @@ impl ::re_types_core::Archetype for Points2D { }; let class_ids = if let Some(array) = arrays_by_name.get("rerun.components.ClassId") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Points2D#class_ids")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -338,7 +338,7 @@ impl ::re_types_core::Archetype for Points2D { }; let keypoint_ids = if let Some(array) = arrays_by_name.get("rerun.components.KeypointId") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Points2D#keypoint_ids")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) diff --git a/crates/store/re_types/src/archetypes/points3d.rs b/crates/store/re_types/src/archetypes/points3d.rs index fb7394b3612f..be320be01354 100644 --- a/crates/store/re_types/src/archetypes/points3d.rs +++ b/crates/store/re_types/src/archetypes/points3d.rs @@ -238,7 +238,7 @@ impl ::re_types_core::Archetype for Points3D { } #[inline] - fn from_arrow_components( + fn from_arrow2_components( arrow_data: impl IntoIterator)>, ) -> DeserializationResult { re_tracing::profile_function!(); @@ -252,7 +252,7 @@ impl ::re_types_core::Archetype for Points3D { .get("rerun.components.Position3D") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.archetypes.Points3D#positions")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Points3D#positions")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -261,7 +261,7 @@ impl ::re_types_core::Archetype for Points3D { }; let radii = if let Some(array) = arrays_by_name.get("rerun.components.Radius") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Points3D#radii")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -273,7 +273,7 @@ impl ::re_types_core::Archetype for Points3D { }; let colors = if let Some(array) = arrays_by_name.get("rerun.components.Color") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Points3D#colors")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -285,7 +285,7 @@ impl ::re_types_core::Archetype for Points3D { }; let labels = if let Some(array) = arrays_by_name.get("rerun.components.Text") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Points3D#labels")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -296,7 +296,7 @@ impl ::re_types_core::Archetype for Points3D { None }; let show_labels = if let Some(array) = arrays_by_name.get("rerun.components.ShowLabels") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Points3D#show_labels")? .into_iter() .next() @@ -306,7 +306,7 @@ impl ::re_types_core::Archetype for Points3D { }; let class_ids = if let Some(array) = arrays_by_name.get("rerun.components.ClassId") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Points3D#class_ids")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -318,7 +318,7 @@ impl ::re_types_core::Archetype for Points3D { }; let keypoint_ids = if let Some(array) = arrays_by_name.get("rerun.components.KeypointId") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Points3D#keypoint_ids")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) diff --git a/crates/store/re_types/src/archetypes/scalar.rs b/crates/store/re_types/src/archetypes/scalar.rs index e094175afbaf..f87f9eec60d4 100644 --- a/crates/store/re_types/src/archetypes/scalar.rs +++ b/crates/store/re_types/src/archetypes/scalar.rs @@ -136,7 +136,7 @@ impl ::re_types_core::Archetype for Scalar { } #[inline] - fn from_arrow_components( + fn from_arrow2_components( arrow_data: impl IntoIterator)>, ) -> DeserializationResult { re_tracing::profile_function!(); @@ -150,7 +150,7 @@ impl ::re_types_core::Archetype for Scalar { .get("rerun.components.Scalar") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.archetypes.Scalar#scalar")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Scalar#scalar")? .into_iter() .next() diff --git a/crates/store/re_types/src/archetypes/segmentation_image.rs b/crates/store/re_types/src/archetypes/segmentation_image.rs index 6a2da5f741d5..638916255c94 100644 --- a/crates/store/re_types/src/archetypes/segmentation_image.rs +++ b/crates/store/re_types/src/archetypes/segmentation_image.rs @@ -179,7 +179,7 @@ impl ::re_types_core::Archetype for SegmentationImage { } #[inline] - fn from_arrow_components( + fn from_arrow2_components( arrow_data: impl IntoIterator)>, ) -> DeserializationResult { re_tracing::profile_function!(); @@ -193,7 +193,7 @@ impl ::re_types_core::Archetype for SegmentationImage { .get("rerun.components.ImageBuffer") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.archetypes.SegmentationImage#buffer")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.SegmentationImage#buffer")? .into_iter() .next() @@ -206,7 +206,7 @@ impl ::re_types_core::Archetype for SegmentationImage { .get("rerun.components.ImageFormat") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.archetypes.SegmentationImage#format")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.SegmentationImage#format")? .into_iter() .next() @@ -215,7 +215,7 @@ impl ::re_types_core::Archetype for SegmentationImage { .with_context("rerun.archetypes.SegmentationImage#format")? }; let opacity = if let Some(array) = arrays_by_name.get("rerun.components.Opacity") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.SegmentationImage#opacity")? .into_iter() .next() @@ -224,7 +224,7 @@ impl ::re_types_core::Archetype for SegmentationImage { None }; let draw_order = if let Some(array) = arrays_by_name.get("rerun.components.DrawOrder") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.SegmentationImage#draw_order")? .into_iter() .next() diff --git a/crates/store/re_types/src/archetypes/series_line.rs b/crates/store/re_types/src/archetypes/series_line.rs index caca74913862..ccce4ffc5527 100644 --- a/crates/store/re_types/src/archetypes/series_line.rs +++ b/crates/store/re_types/src/archetypes/series_line.rs @@ -183,7 +183,7 @@ impl ::re_types_core::Archetype for SeriesLine { } #[inline] - fn from_arrow_components( + fn from_arrow2_components( arrow_data: impl IntoIterator)>, ) -> DeserializationResult { re_tracing::profile_function!(); @@ -193,7 +193,7 @@ impl ::re_types_core::Archetype for SeriesLine { .map(|(name, array)| (name.full_name(), array)) .collect(); let color = if let Some(array) = arrays_by_name.get("rerun.components.Color") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.SeriesLine#color")? .into_iter() .next() @@ -202,7 +202,7 @@ impl ::re_types_core::Archetype for SeriesLine { None }; let width = if let Some(array) = arrays_by_name.get("rerun.components.StrokeWidth") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.SeriesLine#width")? .into_iter() .next() @@ -211,7 +211,7 @@ impl ::re_types_core::Archetype for SeriesLine { None }; let name = if let Some(array) = arrays_by_name.get("rerun.components.Name") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.SeriesLine#name")? .into_iter() .next() @@ -221,7 +221,7 @@ impl ::re_types_core::Archetype for SeriesLine { }; let aggregation_policy = if let Some(array) = arrays_by_name.get("rerun.components.AggregationPolicy") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.SeriesLine#aggregation_policy")? .into_iter() .next() diff --git a/crates/store/re_types/src/archetypes/series_point.rs b/crates/store/re_types/src/archetypes/series_point.rs index 15b409864346..74a2293feab7 100644 --- a/crates/store/re_types/src/archetypes/series_point.rs +++ b/crates/store/re_types/src/archetypes/series_point.rs @@ -181,7 +181,7 @@ impl ::re_types_core::Archetype for SeriesPoint { } #[inline] - fn from_arrow_components( + fn from_arrow2_components( arrow_data: impl IntoIterator)>, ) -> DeserializationResult { re_tracing::profile_function!(); @@ -191,7 +191,7 @@ impl ::re_types_core::Archetype for SeriesPoint { .map(|(name, array)| (name.full_name(), array)) .collect(); let color = if let Some(array) = arrays_by_name.get("rerun.components.Color") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.SeriesPoint#color")? .into_iter() .next() @@ -200,7 +200,7 @@ impl ::re_types_core::Archetype for SeriesPoint { None }; let marker = if let Some(array) = arrays_by_name.get("rerun.components.MarkerShape") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.SeriesPoint#marker")? .into_iter() .next() @@ -209,7 +209,7 @@ impl ::re_types_core::Archetype for SeriesPoint { None }; let name = if let Some(array) = arrays_by_name.get("rerun.components.Name") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.SeriesPoint#name")? .into_iter() .next() @@ -218,7 +218,7 @@ impl ::re_types_core::Archetype for SeriesPoint { None }; let marker_size = if let Some(array) = arrays_by_name.get("rerun.components.MarkerSize") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.SeriesPoint#marker_size")? .into_iter() .next() diff --git a/crates/store/re_types/src/archetypes/tensor.rs b/crates/store/re_types/src/archetypes/tensor.rs index 5d8ad391a76a..f997ab297fb2 100644 --- a/crates/store/re_types/src/archetypes/tensor.rs +++ b/crates/store/re_types/src/archetypes/tensor.rs @@ -146,7 +146,7 @@ impl ::re_types_core::Archetype for Tensor { } #[inline] - fn from_arrow_components( + fn from_arrow2_components( arrow_data: impl IntoIterator)>, ) -> DeserializationResult { re_tracing::profile_function!(); @@ -160,7 +160,7 @@ impl ::re_types_core::Archetype for Tensor { .get("rerun.components.TensorData") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.archetypes.Tensor#data")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Tensor#data")? .into_iter() .next() @@ -169,7 +169,7 @@ impl ::re_types_core::Archetype for Tensor { .with_context("rerun.archetypes.Tensor#data")? }; let value_range = if let Some(array) = arrays_by_name.get("rerun.components.ValueRange") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Tensor#value_range")? .into_iter() .next() diff --git a/crates/store/re_types/src/archetypes/text_document.rs b/crates/store/re_types/src/archetypes/text_document.rs index b9abcb00b4af..7331b76b32aa 100644 --- a/crates/store/re_types/src/archetypes/text_document.rs +++ b/crates/store/re_types/src/archetypes/text_document.rs @@ -180,7 +180,7 @@ impl ::re_types_core::Archetype for TextDocument { } #[inline] - fn from_arrow_components( + fn from_arrow2_components( arrow_data: impl IntoIterator)>, ) -> DeserializationResult { re_tracing::profile_function!(); @@ -194,7 +194,7 @@ impl ::re_types_core::Archetype for TextDocument { .get("rerun.components.Text") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.archetypes.TextDocument#text")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.TextDocument#text")? .into_iter() .next() @@ -203,7 +203,7 @@ impl ::re_types_core::Archetype for TextDocument { .with_context("rerun.archetypes.TextDocument#text")? }; let media_type = if let Some(array) = arrays_by_name.get("rerun.components.MediaType") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.TextDocument#media_type")? .into_iter() .next() diff --git a/crates/store/re_types/src/archetypes/text_log.rs b/crates/store/re_types/src/archetypes/text_log.rs index 7d311a7435ed..20aaaca3b524 100644 --- a/crates/store/re_types/src/archetypes/text_log.rs +++ b/crates/store/re_types/src/archetypes/text_log.rs @@ -158,7 +158,7 @@ impl ::re_types_core::Archetype for TextLog { } #[inline] - fn from_arrow_components( + fn from_arrow2_components( arrow_data: impl IntoIterator)>, ) -> DeserializationResult { re_tracing::profile_function!(); @@ -172,7 +172,7 @@ impl ::re_types_core::Archetype for TextLog { .get("rerun.components.Text") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.archetypes.TextLog#text")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.TextLog#text")? .into_iter() .next() @@ -181,7 +181,7 @@ impl ::re_types_core::Archetype for TextLog { .with_context("rerun.archetypes.TextLog#text")? }; let level = if let Some(array) = arrays_by_name.get("rerun.components.TextLogLevel") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.TextLog#level")? .into_iter() .next() @@ -190,7 +190,7 @@ impl ::re_types_core::Archetype for TextLog { None }; let color = if let Some(array) = arrays_by_name.get("rerun.components.Color") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.TextLog#color")? .into_iter() .next() diff --git a/crates/store/re_types/src/archetypes/transform3d.rs b/crates/store/re_types/src/archetypes/transform3d.rs index da2f38f29529..0fcec845a109 100644 --- a/crates/store/re_types/src/archetypes/transform3d.rs +++ b/crates/store/re_types/src/archetypes/transform3d.rs @@ -298,7 +298,7 @@ impl ::re_types_core::Archetype for Transform3D { } #[inline] - fn from_arrow_components( + fn from_arrow2_components( arrow_data: impl IntoIterator)>, ) -> DeserializationResult { re_tracing::profile_function!(); @@ -309,7 +309,7 @@ impl ::re_types_core::Archetype for Transform3D { .collect(); let translation = if let Some(array) = arrays_by_name.get("rerun.components.Translation3D") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Transform3D#translation")? .into_iter() .next() @@ -319,7 +319,7 @@ impl ::re_types_core::Archetype for Transform3D { }; let rotation_axis_angle = if let Some(array) = arrays_by_name.get("rerun.components.RotationAxisAngle") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Transform3D#rotation_axis_angle")? .into_iter() .next() @@ -328,7 +328,7 @@ impl ::re_types_core::Archetype for Transform3D { None }; let quaternion = if let Some(array) = arrays_by_name.get("rerun.components.RotationQuat") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Transform3D#quaternion")? .into_iter() .next() @@ -337,7 +337,7 @@ impl ::re_types_core::Archetype for Transform3D { None }; let scale = if let Some(array) = arrays_by_name.get("rerun.components.Scale3D") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Transform3D#scale")? .into_iter() .next() @@ -346,7 +346,7 @@ impl ::re_types_core::Archetype for Transform3D { None }; let mat3x3 = if let Some(array) = arrays_by_name.get("rerun.components.TransformMat3x3") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Transform3D#mat3x3")? .into_iter() .next() @@ -356,7 +356,7 @@ impl ::re_types_core::Archetype for Transform3D { }; let relation = if let Some(array) = arrays_by_name.get("rerun.components.TransformRelation") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Transform3D#relation")? .into_iter() .next() @@ -365,7 +365,7 @@ impl ::re_types_core::Archetype for Transform3D { None }; let axis_length = if let Some(array) = arrays_by_name.get("rerun.components.AxisLength") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Transform3D#axis_length")? .into_iter() .next() diff --git a/crates/store/re_types/src/archetypes/video_frame_reference.rs b/crates/store/re_types/src/archetypes/video_frame_reference.rs index 861bbf31ded4..8fb800d7e6e0 100644 --- a/crates/store/re_types/src/archetypes/video_frame_reference.rs +++ b/crates/store/re_types/src/archetypes/video_frame_reference.rs @@ -226,7 +226,7 @@ impl ::re_types_core::Archetype for VideoFrameReference { } #[inline] - fn from_arrow_components( + fn from_arrow2_components( arrow_data: impl IntoIterator)>, ) -> DeserializationResult { re_tracing::profile_function!(); @@ -240,7 +240,7 @@ impl ::re_types_core::Archetype for VideoFrameReference { .get("rerun.components.VideoTimestamp") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.archetypes.VideoFrameReference#timestamp")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.VideoFrameReference#timestamp")? .into_iter() .next() @@ -250,7 +250,7 @@ impl ::re_types_core::Archetype for VideoFrameReference { }; let video_reference = if let Some(array) = arrays_by_name.get("rerun.components.EntityPath") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.VideoFrameReference#video_reference")? .into_iter() .next() diff --git a/crates/store/re_types/src/archetypes/view_coordinates.rs b/crates/store/re_types/src/archetypes/view_coordinates.rs index b358ef9cdcbb..51162a56efcb 100644 --- a/crates/store/re_types/src/archetypes/view_coordinates.rs +++ b/crates/store/re_types/src/archetypes/view_coordinates.rs @@ -143,7 +143,7 @@ impl ::re_types_core::Archetype for ViewCoordinates { } #[inline] - fn from_arrow_components( + fn from_arrow2_components( arrow_data: impl IntoIterator)>, ) -> DeserializationResult { re_tracing::profile_function!(); @@ -157,7 +157,7 @@ impl ::re_types_core::Archetype for ViewCoordinates { .get("rerun.components.ViewCoordinates") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.archetypes.ViewCoordinates#xyz")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.ViewCoordinates#xyz")? .into_iter() .next() diff --git a/crates/store/re_types/src/blueprint/archetypes/background.rs b/crates/store/re_types/src/blueprint/archetypes/background.rs index 1d8a9924ae0d..382aae7d7a8d 100644 --- a/crates/store/re_types/src/blueprint/archetypes/background.rs +++ b/crates/store/re_types/src/blueprint/archetypes/background.rs @@ -107,7 +107,7 @@ impl ::re_types_core::Archetype for Background { } #[inline] - fn from_arrow_components( + fn from_arrow2_components( arrow_data: impl IntoIterator)>, ) -> DeserializationResult { re_tracing::profile_function!(); @@ -121,7 +121,7 @@ impl ::re_types_core::Archetype for Background { .get("rerun.blueprint.components.BackgroundKind") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.blueprint.archetypes.Background#kind")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.blueprint.archetypes.Background#kind")? .into_iter() .next() @@ -130,7 +130,7 @@ impl ::re_types_core::Archetype for Background { .with_context("rerun.blueprint.archetypes.Background#kind")? }; let color = if let Some(array) = arrays_by_name.get("rerun.components.Color") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.blueprint.archetypes.Background#color")? .into_iter() .next() diff --git a/crates/store/re_types/src/blueprint/archetypes/dataframe_query.rs b/crates/store/re_types/src/blueprint/archetypes/dataframe_query.rs index b36aa45dcd63..78c9dd1ffc0e 100644 --- a/crates/store/re_types/src/blueprint/archetypes/dataframe_query.rs +++ b/crates/store/re_types/src/blueprint/archetypes/dataframe_query.rs @@ -138,7 +138,7 @@ impl ::re_types_core::Archetype for DataframeQuery { } #[inline] - fn from_arrow_components( + fn from_arrow2_components( arrow_data: impl IntoIterator)>, ) -> DeserializationResult { re_tracing::profile_function!(); @@ -149,7 +149,7 @@ impl ::re_types_core::Archetype for DataframeQuery { .collect(); let timeline = if let Some(array) = arrays_by_name.get("rerun.blueprint.components.TimelineName") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.blueprint.archetypes.DataframeQuery#timeline")? .into_iter() .next() @@ -159,7 +159,7 @@ impl ::re_types_core::Archetype for DataframeQuery { }; let filter_by_range = if let Some(array) = arrays_by_name.get("rerun.blueprint.components.FilterByRange") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.blueprint.archetypes.DataframeQuery#filter_by_range")? .into_iter() .next() @@ -169,7 +169,7 @@ impl ::re_types_core::Archetype for DataframeQuery { }; let filter_is_not_null = if let Some(array) = arrays_by_name.get("rerun.blueprint.components.FilterIsNotNull") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.blueprint.archetypes.DataframeQuery#filter_is_not_null")? .into_iter() .next() @@ -179,7 +179,7 @@ impl ::re_types_core::Archetype for DataframeQuery { }; let apply_latest_at = if let Some(array) = arrays_by_name.get("rerun.blueprint.components.ApplyLatestAt") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.blueprint.archetypes.DataframeQuery#apply_latest_at")? .into_iter() .next() @@ -189,7 +189,7 @@ impl ::re_types_core::Archetype for DataframeQuery { }; let select = if let Some(array) = arrays_by_name.get("rerun.blueprint.components.SelectedColumns") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.blueprint.archetypes.DataframeQuery#select")? .into_iter() .next() diff --git a/crates/store/re_types/src/blueprint/archetypes/map_background.rs b/crates/store/re_types/src/blueprint/archetypes/map_background.rs index 1f902c730a4b..b6acd8df48a8 100644 --- a/crates/store/re_types/src/blueprint/archetypes/map_background.rs +++ b/crates/store/re_types/src/blueprint/archetypes/map_background.rs @@ -104,7 +104,7 @@ impl ::re_types_core::Archetype for MapBackground { } #[inline] - fn from_arrow_components( + fn from_arrow2_components( arrow_data: impl IntoIterator)>, ) -> DeserializationResult { re_tracing::profile_function!(); @@ -118,7 +118,7 @@ impl ::re_types_core::Archetype for MapBackground { .get("rerun.blueprint.components.MapProvider") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.blueprint.archetypes.MapBackground#provider")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.blueprint.archetypes.MapBackground#provider")? .into_iter() .next() diff --git a/crates/store/re_types/src/blueprint/archetypes/map_zoom.rs b/crates/store/re_types/src/blueprint/archetypes/map_zoom.rs index 405711488b4a..6c7057b7bdab 100644 --- a/crates/store/re_types/src/blueprint/archetypes/map_zoom.rs +++ b/crates/store/re_types/src/blueprint/archetypes/map_zoom.rs @@ -104,7 +104,7 @@ impl ::re_types_core::Archetype for MapZoom { } #[inline] - fn from_arrow_components( + fn from_arrow2_components( arrow_data: impl IntoIterator)>, ) -> DeserializationResult { re_tracing::profile_function!(); @@ -118,7 +118,7 @@ impl ::re_types_core::Archetype for MapZoom { .get("rerun.blueprint.components.ZoomLevel") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.blueprint.archetypes.MapZoom#zoom")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.blueprint.archetypes.MapZoom#zoom")? .into_iter() .next() diff --git a/crates/store/re_types/src/blueprint/archetypes/plot_legend.rs b/crates/store/re_types/src/blueprint/archetypes/plot_legend.rs index 9476755fb4ac..14ac217a5b9a 100644 --- a/crates/store/re_types/src/blueprint/archetypes/plot_legend.rs +++ b/crates/store/re_types/src/blueprint/archetypes/plot_legend.rs @@ -116,7 +116,7 @@ impl ::re_types_core::Archetype for PlotLegend { } #[inline] - fn from_arrow_components( + fn from_arrow2_components( arrow_data: impl IntoIterator)>, ) -> DeserializationResult { re_tracing::profile_function!(); @@ -127,7 +127,7 @@ impl ::re_types_core::Archetype for PlotLegend { .collect(); let corner = if let Some(array) = arrays_by_name.get("rerun.blueprint.components.Corner2D") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.blueprint.archetypes.PlotLegend#corner")? .into_iter() .next() @@ -137,7 +137,7 @@ impl ::re_types_core::Archetype for PlotLegend { }; let visible = if let Some(array) = arrays_by_name.get("rerun.blueprint.components.Visible") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.blueprint.archetypes.PlotLegend#visible")? .into_iter() .next() diff --git a/crates/store/re_types/src/blueprint/archetypes/scalar_axis.rs b/crates/store/re_types/src/blueprint/archetypes/scalar_axis.rs index b731fb736cb9..c7ce46374843 100644 --- a/crates/store/re_types/src/blueprint/archetypes/scalar_axis.rs +++ b/crates/store/re_types/src/blueprint/archetypes/scalar_axis.rs @@ -114,7 +114,7 @@ impl ::re_types_core::Archetype for ScalarAxis { } #[inline] - fn from_arrow_components( + fn from_arrow2_components( arrow_data: impl IntoIterator)>, ) -> DeserializationResult { re_tracing::profile_function!(); @@ -124,7 +124,7 @@ impl ::re_types_core::Archetype for ScalarAxis { .map(|(name, array)| (name.full_name(), array)) .collect(); let range = if let Some(array) = arrays_by_name.get("rerun.components.Range1D") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.blueprint.archetypes.ScalarAxis#range")? .into_iter() .next() @@ -135,7 +135,7 @@ impl ::re_types_core::Archetype for ScalarAxis { let zoom_lock = if let Some(array) = arrays_by_name.get("rerun.blueprint.components.LockRangeDuringZoom") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.blueprint.archetypes.ScalarAxis#zoom_lock")? .into_iter() .next() diff --git a/crates/store/re_types/src/blueprint/archetypes/space_view_blueprint.rs b/crates/store/re_types/src/blueprint/archetypes/space_view_blueprint.rs index 144764064840..119519f21ecd 100644 --- a/crates/store/re_types/src/blueprint/archetypes/space_view_blueprint.rs +++ b/crates/store/re_types/src/blueprint/archetypes/space_view_blueprint.rs @@ -137,7 +137,7 @@ impl ::re_types_core::Archetype for SpaceViewBlueprint { } #[inline] - fn from_arrow_components( + fn from_arrow2_components( arrow_data: impl IntoIterator)>, ) -> DeserializationResult { re_tracing::profile_function!(); @@ -151,7 +151,7 @@ impl ::re_types_core::Archetype for SpaceViewBlueprint { .get("rerun.blueprint.components.SpaceViewClass") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.blueprint.archetypes.SpaceViewBlueprint#class_identifier")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.blueprint.archetypes.SpaceViewBlueprint#class_identifier")? .into_iter() .next() @@ -160,7 +160,7 @@ impl ::re_types_core::Archetype for SpaceViewBlueprint { .with_context("rerun.blueprint.archetypes.SpaceViewBlueprint#class_identifier")? }; let display_name = if let Some(array) = arrays_by_name.get("rerun.components.Name") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.blueprint.archetypes.SpaceViewBlueprint#display_name")? .into_iter() .next() @@ -170,7 +170,7 @@ impl ::re_types_core::Archetype for SpaceViewBlueprint { }; let space_origin = if let Some(array) = arrays_by_name.get("rerun.blueprint.components.SpaceViewOrigin") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.blueprint.archetypes.SpaceViewBlueprint#space_origin")? .into_iter() .next() @@ -180,7 +180,7 @@ impl ::re_types_core::Archetype for SpaceViewBlueprint { }; let visible = if let Some(array) = arrays_by_name.get("rerun.blueprint.components.Visible") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.blueprint.archetypes.SpaceViewBlueprint#visible")? .into_iter() .next() diff --git a/crates/store/re_types/src/blueprint/archetypes/space_view_contents.rs b/crates/store/re_types/src/blueprint/archetypes/space_view_contents.rs index 33b6e7849b72..05efbc1e0a8c 100644 --- a/crates/store/re_types/src/blueprint/archetypes/space_view_contents.rs +++ b/crates/store/re_types/src/blueprint/archetypes/space_view_contents.rs @@ -141,7 +141,7 @@ impl ::re_types_core::Archetype for SpaceViewContents { } #[inline] - fn from_arrow_components( + fn from_arrow2_components( arrow_data: impl IntoIterator)>, ) -> DeserializationResult { re_tracing::profile_function!(); @@ -155,7 +155,7 @@ impl ::re_types_core::Archetype for SpaceViewContents { .get("rerun.blueprint.components.QueryExpression") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.blueprint.archetypes.SpaceViewContents#query")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.blueprint.archetypes.SpaceViewContents#query")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) diff --git a/crates/store/re_types/src/blueprint/archetypes/tensor_scalar_mapping.rs b/crates/store/re_types/src/blueprint/archetypes/tensor_scalar_mapping.rs index a0877142b5a2..b07e5ea686e2 100644 --- a/crates/store/re_types/src/blueprint/archetypes/tensor_scalar_mapping.rs +++ b/crates/store/re_types/src/blueprint/archetypes/tensor_scalar_mapping.rs @@ -131,7 +131,7 @@ impl ::re_types_core::Archetype for TensorScalarMapping { } #[inline] - fn from_arrow_components( + fn from_arrow2_components( arrow_data: impl IntoIterator)>, ) -> DeserializationResult { re_tracing::profile_function!(); @@ -142,7 +142,7 @@ impl ::re_types_core::Archetype for TensorScalarMapping { .collect(); let mag_filter = if let Some(array) = arrays_by_name.get("rerun.components.MagnificationFilter") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.blueprint.archetypes.TensorScalarMapping#mag_filter")? .into_iter() .next() @@ -151,7 +151,7 @@ impl ::re_types_core::Archetype for TensorScalarMapping { None }; let colormap = if let Some(array) = arrays_by_name.get("rerun.components.Colormap") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.blueprint.archetypes.TensorScalarMapping#colormap")? .into_iter() .next() @@ -160,7 +160,7 @@ impl ::re_types_core::Archetype for TensorScalarMapping { None }; let gamma = if let Some(array) = arrays_by_name.get("rerun.components.GammaCorrection") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.blueprint.archetypes.TensorScalarMapping#gamma")? .into_iter() .next() diff --git a/crates/store/re_types/src/blueprint/archetypes/tensor_slice_selection.rs b/crates/store/re_types/src/blueprint/archetypes/tensor_slice_selection.rs index 5b07c992f7be..02f719d986ed 100644 --- a/crates/store/re_types/src/blueprint/archetypes/tensor_slice_selection.rs +++ b/crates/store/re_types/src/blueprint/archetypes/tensor_slice_selection.rs @@ -140,7 +140,7 @@ impl ::re_types_core::Archetype for TensorSliceSelection { } #[inline] - fn from_arrow_components( + fn from_arrow2_components( arrow_data: impl IntoIterator)>, ) -> DeserializationResult { re_tracing::profile_function!(); @@ -151,7 +151,7 @@ impl ::re_types_core::Archetype for TensorSliceSelection { .collect(); let width = if let Some(array) = arrays_by_name.get("rerun.components.TensorWidthDimension") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.blueprint.archetypes.TensorSliceSelection#width")? .into_iter() .next() @@ -161,7 +161,7 @@ impl ::re_types_core::Archetype for TensorSliceSelection { }; let height = if let Some(array) = arrays_by_name.get("rerun.components.TensorHeightDimension") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.blueprint.archetypes.TensorSliceSelection#height")? .into_iter() .next() @@ -173,7 +173,7 @@ impl ::re_types_core::Archetype for TensorSliceSelection { arrays_by_name.get("rerun.components.TensorDimensionIndexSelection") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.blueprint.archetypes.TensorSliceSelection#indices")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -187,12 +187,14 @@ impl ::re_types_core::Archetype for TensorSliceSelection { arrays_by_name.get("rerun.blueprint.components.TensorDimensionIndexSlider") { Some({ - ::from_arrow_opt(&**array) - .with_context("rerun.blueprint.archetypes.TensorSliceSelection#slider")? - .into_iter() - .map(|v| v.ok_or_else(DeserializationError::missing_data)) - .collect::>>() - .with_context("rerun.blueprint.archetypes.TensorSliceSelection#slider")? + ::from_arrow2_opt( + &**array, + ) + .with_context("rerun.blueprint.archetypes.TensorSliceSelection#slider")? + .into_iter() + .map(|v| v.ok_or_else(DeserializationError::missing_data)) + .collect::>>() + .with_context("rerun.blueprint.archetypes.TensorSliceSelection#slider")? }) } else { None diff --git a/crates/store/re_types/src/blueprint/archetypes/tensor_view_fit.rs b/crates/store/re_types/src/blueprint/archetypes/tensor_view_fit.rs index 4fd0a891add6..307f4db131e9 100644 --- a/crates/store/re_types/src/blueprint/archetypes/tensor_view_fit.rs +++ b/crates/store/re_types/src/blueprint/archetypes/tensor_view_fit.rs @@ -102,7 +102,7 @@ impl ::re_types_core::Archetype for TensorViewFit { } #[inline] - fn from_arrow_components( + fn from_arrow2_components( arrow_data: impl IntoIterator)>, ) -> DeserializationResult { re_tracing::profile_function!(); @@ -113,7 +113,7 @@ impl ::re_types_core::Archetype for TensorViewFit { .collect(); let scaling = if let Some(array) = arrays_by_name.get("rerun.blueprint.components.ViewFit") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.blueprint.archetypes.TensorViewFit#scaling")? .into_iter() .next() diff --git a/crates/store/re_types/src/blueprint/archetypes/visible_time_ranges.rs b/crates/store/re_types/src/blueprint/archetypes/visible_time_ranges.rs index 7e68966a55d7..b817ee2a5799 100644 --- a/crates/store/re_types/src/blueprint/archetypes/visible_time_ranges.rs +++ b/crates/store/re_types/src/blueprint/archetypes/visible_time_ranges.rs @@ -112,7 +112,7 @@ impl ::re_types_core::Archetype for VisibleTimeRanges { } #[inline] - fn from_arrow_components( + fn from_arrow2_components( arrow_data: impl IntoIterator)>, ) -> DeserializationResult { re_tracing::profile_function!(); @@ -126,7 +126,7 @@ impl ::re_types_core::Archetype for VisibleTimeRanges { .get("rerun.blueprint.components.VisibleTimeRange") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.blueprint.archetypes.VisibleTimeRanges#ranges")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.blueprint.archetypes.VisibleTimeRanges#ranges")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) diff --git a/crates/store/re_types/src/blueprint/archetypes/visual_bounds2d.rs b/crates/store/re_types/src/blueprint/archetypes/visual_bounds2d.rs index ffd025e6b21a..f250112e9380 100644 --- a/crates/store/re_types/src/blueprint/archetypes/visual_bounds2d.rs +++ b/crates/store/re_types/src/blueprint/archetypes/visual_bounds2d.rs @@ -110,7 +110,7 @@ impl ::re_types_core::Archetype for VisualBounds2D { } #[inline] - fn from_arrow_components( + fn from_arrow2_components( arrow_data: impl IntoIterator)>, ) -> DeserializationResult { re_tracing::profile_function!(); @@ -124,7 +124,7 @@ impl ::re_types_core::Archetype for VisualBounds2D { .get("rerun.blueprint.components.VisualBounds2D") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.blueprint.archetypes.VisualBounds2D#range")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.blueprint.archetypes.VisualBounds2D#range")? .into_iter() .next() 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 6d94139188bd..462a62ffe13c 100644 --- a/crates/store/re_types/src/blueprint/components/active_tab.rs +++ b/crates/store/re_types/src/blueprint/components/active_tab.rs @@ -72,17 +72,17 @@ impl std::ops::DerefMut for ActiveTab { impl ::re_types_core::Loggable for ActiveTab { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::EntityPath::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::EntityPath::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::EntityPath::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::EntityPath::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -90,13 +90,13 @@ impl ::re_types_core::Loggable for ActiveTab { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::EntityPath::from_arrow_opt(arrow_data) + crate::datatypes::EntityPath::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } 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 0ac0606db0f2..60662eaab1d7 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 @@ -68,17 +68,17 @@ impl std::ops::DerefMut for ApplyLatestAt { impl ::re_types_core::Loggable for ApplyLatestAt { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::Bool::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::Bool::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::Bool::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::Bool::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -86,13 +86,13 @@ impl ::re_types_core::Loggable for ApplyLatestAt { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::Bool::from_arrow_opt(arrow_data) + crate::datatypes::Bool::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } 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 d258fb33cfd2..5d1ab542b8d0 100644 --- a/crates/store/re_types/src/blueprint/components/background_kind.rs +++ b/crates/store/re_types/src/blueprint/components/background_kind.rs @@ -84,13 +84,13 @@ impl std::fmt::Display for BackgroundKind { impl ::re_types_core::Loggable for BackgroundKind { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::UInt8 } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -114,7 +114,7 @@ impl ::re_types_core::Loggable for BackgroundKind { any_nones.then(|| somes.into()) }; PrimitiveArray::new( - Self::arrow_datatype(), + Self::arrow2_datatype(), data0.into_iter().map(|v| v.unwrap_or_default()).collect(), data0_bitmap, ) @@ -122,7 +122,7 @@ impl ::re_types_core::Loggable for BackgroundKind { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -135,7 +135,7 @@ impl ::re_types_core::Loggable for BackgroundKind { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -148,7 +148,7 @@ impl ::re_types_core::Loggable for BackgroundKind { Some(3) => Ok(Some(Self::SolidColor)), None => Ok(None), Some(invalid) => Err(DeserializationError::missing_union_arm( - Self::arrow_datatype(), + Self::arrow2_datatype(), "", invalid as _, )), 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 feb5792c291d..57896a6535e7 100644 --- a/crates/store/re_types/src/blueprint/components/column_share.rs +++ b/crates/store/re_types/src/blueprint/components/column_share.rs @@ -70,17 +70,17 @@ impl std::ops::DerefMut for ColumnShare { impl ::re_types_core::Loggable for ColumnShare { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::Float32::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::Float32::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::Float32::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::Float32::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -88,22 +88,23 @@ impl ::re_types_core::Loggable for ColumnShare { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::Float32::from_arrow_opt(arrow_data) + crate::datatypes::Float32::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } #[inline] - fn from_arrow(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> + fn from_arrow2(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> where Self: Sized, { - crate::datatypes::Float32::from_arrow(arrow_data).map(|v| v.into_iter().map(Self).collect()) + crate::datatypes::Float32::from_arrow2(arrow_data) + .map(|v| v.into_iter().map(Self).collect()) } } 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 23445fc4ec45..d595fea9d2dd 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 @@ -72,17 +72,17 @@ impl std::ops::DerefMut for ComponentColumnSelector { impl ::re_types_core::Loggable for ComponentColumnSelector { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::blueprint::datatypes::ComponentColumnSelector::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::blueprint::datatypes::ComponentColumnSelector::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::blueprint::datatypes::ComponentColumnSelector::to_arrow_opt(data.into_iter().map( + crate::blueprint::datatypes::ComponentColumnSelector::to_arrow2_opt(data.into_iter().map( |datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), @@ -92,13 +92,13 @@ impl ::re_types_core::Loggable for ComponentColumnSelector { )) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::blueprint::datatypes::ComponentColumnSelector::from_arrow_opt(arrow_data) + crate::blueprint::datatypes::ComponentColumnSelector::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } diff --git a/crates/store/re_types/src/blueprint/components/corner2d.rs b/crates/store/re_types/src/blueprint/components/corner2d.rs index 48eedac43c98..1a4505e61f77 100644 --- a/crates/store/re_types/src/blueprint/components/corner2d.rs +++ b/crates/store/re_types/src/blueprint/components/corner2d.rs @@ -86,13 +86,13 @@ impl std::fmt::Display for Corner2D { impl ::re_types_core::Loggable for Corner2D { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::UInt8 } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -116,7 +116,7 @@ impl ::re_types_core::Loggable for Corner2D { any_nones.then(|| somes.into()) }; PrimitiveArray::new( - Self::arrow_datatype(), + Self::arrow2_datatype(), data0.into_iter().map(|v| v.unwrap_or_default()).collect(), data0_bitmap, ) @@ -124,7 +124,7 @@ impl ::re_types_core::Loggable for Corner2D { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -137,7 +137,7 @@ impl ::re_types_core::Loggable for Corner2D { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -151,7 +151,7 @@ impl ::re_types_core::Loggable for Corner2D { Some(4) => Ok(Some(Self::RightBottom)), None => Ok(None), Some(invalid) => Err(DeserializationError::missing_union_arm( - Self::arrow_datatype(), + Self::arrow2_datatype(), "", invalid as _, )), 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 7532481da050..b1658d9e43c0 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 @@ -68,17 +68,17 @@ impl std::ops::DerefMut for FilterByRange { impl ::re_types_core::Loggable for FilterByRange { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::blueprint::datatypes::FilterByRange::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::blueprint::datatypes::FilterByRange::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::blueprint::datatypes::FilterByRange::to_arrow_opt(data.into_iter().map(|datum| { + crate::blueprint::datatypes::FilterByRange::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -86,13 +86,13 @@ impl ::re_types_core::Loggable for FilterByRange { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::blueprint::datatypes::FilterByRange::from_arrow_opt(arrow_data) + crate::blueprint::datatypes::FilterByRange::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } 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 748c06bb858c..4628de994d9e 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 @@ -68,17 +68,17 @@ impl std::ops::DerefMut for FilterIsNotNull { impl ::re_types_core::Loggable for FilterIsNotNull { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::blueprint::datatypes::FilterIsNotNull::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::blueprint::datatypes::FilterIsNotNull::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::blueprint::datatypes::FilterIsNotNull::to_arrow_opt(data.into_iter().map(|datum| { + crate::blueprint::datatypes::FilterIsNotNull::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -86,13 +86,13 @@ impl ::re_types_core::Loggable for FilterIsNotNull { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::blueprint::datatypes::FilterIsNotNull::from_arrow_opt(arrow_data) + crate::blueprint::datatypes::FilterIsNotNull::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } 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 eb57fc1ea2cc..5cf6e082812c 100644 --- a/crates/store/re_types/src/blueprint/components/included_content.rs +++ b/crates/store/re_types/src/blueprint/components/included_content.rs @@ -73,17 +73,17 @@ impl std::ops::DerefMut for IncludedContent { impl ::re_types_core::Loggable for IncludedContent { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::EntityPath::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::EntityPath::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::EntityPath::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::EntityPath::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -91,13 +91,13 @@ impl ::re_types_core::Loggable for IncludedContent { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::EntityPath::from_arrow_opt(arrow_data) + crate::datatypes::EntityPath::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } diff --git a/crates/store/re_types/src/blueprint/components/interactive.rs b/crates/store/re_types/src/blueprint/components/interactive.rs index 267cdc3f0625..d3b7e62ed8e8 100644 --- a/crates/store/re_types/src/blueprint/components/interactive.rs +++ b/crates/store/re_types/src/blueprint/components/interactive.rs @@ -70,17 +70,17 @@ impl std::ops::DerefMut for Interactive { impl ::re_types_core::Loggable for Interactive { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::Bool::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::Bool::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::Bool::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::Bool::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -88,13 +88,13 @@ impl ::re_types_core::Loggable for Interactive { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::Bool::from_arrow_opt(arrow_data) + crate::datatypes::Bool::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } 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 1aae7facb00a..32beda76206d 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 @@ -70,17 +70,17 @@ impl std::ops::DerefMut for LockRangeDuringZoom { impl ::re_types_core::Loggable for LockRangeDuringZoom { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::Bool::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::Bool::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::Bool::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::Bool::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -88,13 +88,13 @@ impl ::re_types_core::Loggable for LockRangeDuringZoom { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::Bool::from_arrow_opt(arrow_data) + crate::datatypes::Bool::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } 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 795ac984437e..96e643f58c00 100644 --- a/crates/store/re_types/src/blueprint/components/map_provider.rs +++ b/crates/store/re_types/src/blueprint/components/map_provider.rs @@ -86,13 +86,13 @@ impl std::fmt::Display for MapProvider { impl ::re_types_core::Loggable for MapProvider { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::UInt8 } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -116,7 +116,7 @@ impl ::re_types_core::Loggable for MapProvider { any_nones.then(|| somes.into()) }; PrimitiveArray::new( - Self::arrow_datatype(), + Self::arrow2_datatype(), data0.into_iter().map(|v| v.unwrap_or_default()).collect(), data0_bitmap, ) @@ -124,7 +124,7 @@ impl ::re_types_core::Loggable for MapProvider { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -137,7 +137,7 @@ impl ::re_types_core::Loggable for MapProvider { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -151,7 +151,7 @@ impl ::re_types_core::Loggable for MapProvider { Some(4) => Ok(Some(Self::MapboxSatellite)), None => Ok(None), Some(invalid) => Err(DeserializationError::missing_union_arm( - Self::arrow_datatype(), + Self::arrow2_datatype(), "", invalid as _, )), 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 6260edb501e7..ebdc60024175 100644 --- a/crates/store/re_types/src/blueprint/components/panel_state.rs +++ b/crates/store/re_types/src/blueprint/components/panel_state.rs @@ -76,13 +76,13 @@ impl std::fmt::Display for PanelState { impl ::re_types_core::Loggable for PanelState { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::UInt8 } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -106,7 +106,7 @@ impl ::re_types_core::Loggable for PanelState { any_nones.then(|| somes.into()) }; PrimitiveArray::new( - Self::arrow_datatype(), + Self::arrow2_datatype(), data0.into_iter().map(|v| v.unwrap_or_default()).collect(), data0_bitmap, ) @@ -114,7 +114,7 @@ impl ::re_types_core::Loggable for PanelState { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -127,7 +127,7 @@ impl ::re_types_core::Loggable for PanelState { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -140,7 +140,7 @@ impl ::re_types_core::Loggable for PanelState { Some(3) => Ok(Some(Self::Expanded)), None => Ok(None), Some(invalid) => Err(DeserializationError::missing_union_arm( - Self::arrow_datatype(), + Self::arrow2_datatype(), "", invalid as _, )), 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 4064987cd883..71984913fd3b 100644 --- a/crates/store/re_types/src/blueprint/components/query_expression.rs +++ b/crates/store/re_types/src/blueprint/components/query_expression.rs @@ -77,17 +77,17 @@ impl std::ops::DerefMut for QueryExpression { impl ::re_types_core::Loggable for QueryExpression { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::Utf8::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::Utf8::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::Utf8::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::Utf8::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -95,13 +95,13 @@ impl ::re_types_core::Loggable for QueryExpression { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::Utf8::from_arrow_opt(arrow_data) + crate::datatypes::Utf8::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } 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 5a60b77931a9..2ac3a7fad68d 100644 --- a/crates/store/re_types/src/blueprint/components/row_share.rs +++ b/crates/store/re_types/src/blueprint/components/row_share.rs @@ -70,17 +70,17 @@ impl std::ops::DerefMut for RowShare { impl ::re_types_core::Loggable for RowShare { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::Float32::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::Float32::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::Float32::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::Float32::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -88,22 +88,23 @@ impl ::re_types_core::Loggable for RowShare { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::Float32::from_arrow_opt(arrow_data) + crate::datatypes::Float32::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } #[inline] - fn from_arrow(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> + fn from_arrow2(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> where Self: Sized, { - crate::datatypes::Float32::from_arrow(arrow_data).map(|v| v.into_iter().map(Self).collect()) + crate::datatypes::Float32::from_arrow2(arrow_data) + .map(|v| v.into_iter().map(Self).collect()) } } 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 2d8b9a6aa89b..c8bb696c7d2b 100644 --- a/crates/store/re_types/src/blueprint/components/selected_columns.rs +++ b/crates/store/re_types/src/blueprint/components/selected_columns.rs @@ -68,17 +68,17 @@ impl std::ops::DerefMut for SelectedColumns { impl ::re_types_core::Loggable for SelectedColumns { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::blueprint::datatypes::SelectedColumns::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::blueprint::datatypes::SelectedColumns::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::blueprint::datatypes::SelectedColumns::to_arrow_opt(data.into_iter().map(|datum| { + crate::blueprint::datatypes::SelectedColumns::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -86,13 +86,13 @@ impl ::re_types_core::Loggable for SelectedColumns { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::blueprint::datatypes::SelectedColumns::from_arrow_opt(arrow_data) + crate::blueprint::datatypes::SelectedColumns::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } 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 c10f3f36a560..a236ec277dc6 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 @@ -68,17 +68,17 @@ impl std::ops::DerefMut for SpaceViewClass { impl ::re_types_core::Loggable for SpaceViewClass { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::Utf8::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::Utf8::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::Utf8::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::Utf8::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -86,13 +86,13 @@ impl ::re_types_core::Loggable for SpaceViewClass { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::Utf8::from_arrow_opt(arrow_data) + crate::datatypes::Utf8::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } 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 9341bd0313a0..8e5afbb5b7e2 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 @@ -68,17 +68,17 @@ impl std::ops::DerefMut for SpaceViewOrigin { impl ::re_types_core::Loggable for SpaceViewOrigin { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::EntityPath::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::EntityPath::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::EntityPath::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::EntityPath::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -86,13 +86,13 @@ impl ::re_types_core::Loggable for SpaceViewOrigin { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::EntityPath::from_arrow_opt(arrow_data) + crate::datatypes::EntityPath::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } 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 c5ff59a9a80a..e33dd858eca8 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 @@ -72,33 +72,33 @@ impl std::ops::DerefMut for TensorDimensionIndexSlider { impl ::re_types_core::Loggable for TensorDimensionIndexSlider { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::blueprint::datatypes::TensorDimensionIndexSlider::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::blueprint::datatypes::TensorDimensionIndexSlider::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::blueprint::datatypes::TensorDimensionIndexSlider::to_arrow_opt(data.into_iter().map( - |datum| { + crate::blueprint::datatypes::TensorDimensionIndexSlider::to_arrow2_opt( + data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), }) - }, - )) + }), + ) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::blueprint::datatypes::TensorDimensionIndexSlider::from_arrow_opt(arrow_data) + crate::blueprint::datatypes::TensorDimensionIndexSlider::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } 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 895faea6acc4..2b1720dd8ab0 100644 --- a/crates/store/re_types/src/blueprint/components/timeline_name.rs +++ b/crates/store/re_types/src/blueprint/components/timeline_name.rs @@ -68,17 +68,17 @@ impl std::ops::DerefMut for TimelineName { impl ::re_types_core::Loggable for TimelineName { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::Utf8::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::Utf8::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::Utf8::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::Utf8::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -86,13 +86,13 @@ impl ::re_types_core::Loggable for TimelineName { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::Utf8::from_arrow_opt(arrow_data) + crate::datatypes::Utf8::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } 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 c2bba38de9a2..dbe3f4a5c3a5 100644 --- a/crates/store/re_types/src/blueprint/components/view_fit.rs +++ b/crates/store/re_types/src/blueprint/components/view_fit.rs @@ -82,13 +82,13 @@ impl std::fmt::Display for ViewFit { impl ::re_types_core::Loggable for ViewFit { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::UInt8 } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -112,7 +112,7 @@ impl ::re_types_core::Loggable for ViewFit { any_nones.then(|| somes.into()) }; PrimitiveArray::new( - Self::arrow_datatype(), + Self::arrow2_datatype(), data0.into_iter().map(|v| v.unwrap_or_default()).collect(), data0_bitmap, ) @@ -120,7 +120,7 @@ impl ::re_types_core::Loggable for ViewFit { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -133,7 +133,7 @@ impl ::re_types_core::Loggable for ViewFit { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -146,7 +146,7 @@ impl ::re_types_core::Loggable for ViewFit { Some(3) => Ok(Some(Self::FillKeepAspectRatio)), None => Ok(None), Some(invalid) => Err(DeserializationError::missing_union_arm( - Self::arrow_datatype(), + Self::arrow2_datatype(), "", invalid as _, )), 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 7a920e591889..c1c4e50af4d2 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 @@ -70,17 +70,17 @@ impl std::ops::DerefMut for ViewerRecommendationHash { impl ::re_types_core::Loggable for ViewerRecommendationHash { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::UInt64::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::UInt64::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::UInt64::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::UInt64::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -88,22 +88,22 @@ impl ::re_types_core::Loggable for ViewerRecommendationHash { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::UInt64::from_arrow_opt(arrow_data) + crate::datatypes::UInt64::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } #[inline] - fn from_arrow(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> + fn from_arrow2(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> where Self: Sized, { - crate::datatypes::UInt64::from_arrow(arrow_data).map(|v| v.into_iter().map(Self).collect()) + crate::datatypes::UInt64::from_arrow2(arrow_data).map(|v| v.into_iter().map(Self).collect()) } } diff --git a/crates/store/re_types/src/blueprint/components/visible.rs b/crates/store/re_types/src/blueprint/components/visible.rs index 0b32354da401..009963f2c3b2 100644 --- a/crates/store/re_types/src/blueprint/components/visible.rs +++ b/crates/store/re_types/src/blueprint/components/visible.rs @@ -68,17 +68,17 @@ impl std::ops::DerefMut for Visible { impl ::re_types_core::Loggable for Visible { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::Bool::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::Bool::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::Bool::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::Bool::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -86,13 +86,13 @@ impl ::re_types_core::Loggable for Visible { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::Bool::from_arrow_opt(arrow_data) + crate::datatypes::Bool::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } 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 2b75530f8ba8..6c003f3b503b 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 @@ -70,17 +70,17 @@ impl std::ops::DerefMut for VisibleTimeRange { impl ::re_types_core::Loggable for VisibleTimeRange { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::VisibleTimeRange::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::VisibleTimeRange::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::VisibleTimeRange::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::VisibleTimeRange::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -88,13 +88,13 @@ impl ::re_types_core::Loggable for VisibleTimeRange { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::VisibleTimeRange::from_arrow_opt(arrow_data) + crate::datatypes::VisibleTimeRange::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } 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 20fcc14f3943..3a57b91aa109 100644 --- a/crates/store/re_types/src/blueprint/components/visual_bounds2d.rs +++ b/crates/store/re_types/src/blueprint/components/visual_bounds2d.rs @@ -71,17 +71,17 @@ impl std::ops::DerefMut for VisualBounds2D { impl ::re_types_core::Loggable for VisualBounds2D { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::Range2D::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::Range2D::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::Range2D::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::Range2D::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -89,13 +89,13 @@ impl ::re_types_core::Loggable for VisualBounds2D { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::Range2D::from_arrow_opt(arrow_data) + crate::datatypes::Range2D::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } 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 2a4f8bd97619..f20294a830c1 100644 --- a/crates/store/re_types/src/blueprint/components/zoom_level.rs +++ b/crates/store/re_types/src/blueprint/components/zoom_level.rs @@ -70,17 +70,17 @@ impl std::ops::DerefMut for ZoomLevel { impl ::re_types_core::Loggable for ZoomLevel { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::Float64::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::Float64::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::Float64::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::Float64::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -88,22 +88,23 @@ impl ::re_types_core::Loggable for ZoomLevel { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::Float64::from_arrow_opt(arrow_data) + crate::datatypes::Float64::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } #[inline] - fn from_arrow(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> + fn from_arrow2(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> where Self: Sized, { - crate::datatypes::Float64::from_arrow(arrow_data).map(|v| v.into_iter().map(Self).collect()) + crate::datatypes::Float64::from_arrow2(arrow_data) + .map(|v| v.into_iter().map(Self).collect()) } } 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 a161499feb2c..e06c354774bb 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 @@ -44,24 +44,24 @@ impl ::re_types_core::SizeBytes for ComponentColumnSelector { impl ::re_types_core::Loggable for ComponentColumnSelector { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::Struct(std::sync::Arc::new(vec![ Field::new( "entity_path", - ::arrow_datatype(), + ::arrow2_datatype(), false, ), Field::new( "component", - ::arrow_datatype(), + ::arrow2_datatype(), false, ), ])) } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -84,7 +84,7 @@ impl ::re_types_core::Loggable for ComponentColumnSelector { any_nones.then(|| somes.into()) }; StructArray::new( - Self::arrow_datatype(), + Self::arrow2_datatype(), vec![ { let (somes, entity_path): (Vec<_>, Vec<_>) = data @@ -167,7 +167,7 @@ impl ::re_types_core::Loggable for ComponentColumnSelector { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -181,7 +181,7 @@ impl ::re_types_core::Loggable for ComponentColumnSelector { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -199,7 +199,7 @@ impl ::re_types_core::Loggable for ComponentColumnSelector { let entity_path = { if !arrays_by_name.contains_key("entity_path") { return Err(DeserializationError::missing_struct_field( - Self::arrow_datatype(), + Self::arrow2_datatype(), "entity_path", )) .with_context("rerun.blueprint.datatypes.ComponentColumnSelector"); @@ -258,7 +258,7 @@ impl ::re_types_core::Loggable for ComponentColumnSelector { let component = { if !arrays_by_name.contains_key("component") { return Err(DeserializationError::missing_struct_field( - Self::arrow_datatype(), + Self::arrow2_datatype(), "component", )) .with_context("rerun.blueprint.datatypes.ComponentColumnSelector"); 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 072117f1a739..e818f93c14df 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 @@ -44,20 +44,20 @@ impl ::re_types_core::SizeBytes for FilterByRange { impl ::re_types_core::Loggable for FilterByRange { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::Struct(std::sync::Arc::new(vec![ Field::new( "start", - ::arrow_datatype(), + ::arrow2_datatype(), false, ), - Field::new("end", ::arrow_datatype(), false), + Field::new("end", ::arrow2_datatype(), false), ])) } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -80,7 +80,7 @@ impl ::re_types_core::Loggable for FilterByRange { any_nones.then(|| somes.into()) }; StructArray::new( - Self::arrow_datatype(), + Self::arrow2_datatype(), vec![ { let (somes, start): (Vec<_>, Vec<_>) = data @@ -132,7 +132,7 @@ impl ::re_types_core::Loggable for FilterByRange { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -146,7 +146,7 @@ impl ::re_types_core::Loggable for FilterByRange { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -164,7 +164,7 @@ impl ::re_types_core::Loggable for FilterByRange { let start = { if !arrays_by_name.contains_key("start") { return Err(DeserializationError::missing_struct_field( - Self::arrow_datatype(), + Self::arrow2_datatype(), "start", )) .with_context("rerun.blueprint.datatypes.FilterByRange"); @@ -186,7 +186,7 @@ impl ::re_types_core::Loggable for FilterByRange { let end = { if !arrays_by_name.contains_key("end") { return Err(DeserializationError::missing_struct_field( - Self::arrow_datatype(), + Self::arrow2_datatype(), "end", )) .with_context("rerun.blueprint.datatypes.FilterByRange"); 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 90717038cfe1..61b149cf5e0e 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 @@ -45,20 +45,20 @@ impl ::re_types_core::SizeBytes for FilterIsNotNull { impl ::re_types_core::Loggable for FilterIsNotNull { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::Struct(std::sync::Arc::new(vec![ - Field::new("active", ::arrow_datatype(), false), + Field::new("active", ::arrow2_datatype(), false), Field::new( "column", - ::arrow_datatype(), + ::arrow2_datatype(), false, ), ])) } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -81,7 +81,7 @@ impl ::re_types_core::Loggable for FilterIsNotNull { any_nones.then(|| somes.into()) }; StructArray::new( - Self::arrow_datatype(), + Self::arrow2_datatype(), vec![ { let (somes, active): (Vec<_>, Vec<_>) = data @@ -119,7 +119,7 @@ impl ::re_types_core::Loggable for FilterIsNotNull { }; { _ = column_bitmap; - crate::blueprint::datatypes::ComponentColumnSelector::to_arrow_opt( + crate::blueprint::datatypes::ComponentColumnSelector::to_arrow2_opt( column, )? } @@ -131,7 +131,7 @@ impl ::re_types_core::Loggable for FilterIsNotNull { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -145,7 +145,7 @@ impl ::re_types_core::Loggable for FilterIsNotNull { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -163,7 +163,7 @@ impl ::re_types_core::Loggable for FilterIsNotNull { let active = { if !arrays_by_name.contains_key("active") { return Err(DeserializationError::missing_struct_field( - Self::arrow_datatype(), + Self::arrow2_datatype(), "active", )) .with_context("rerun.blueprint.datatypes.FilterIsNotNull"); @@ -184,15 +184,17 @@ impl ::re_types_core::Loggable for FilterIsNotNull { let column = { if !arrays_by_name.contains_key("column") { return Err(DeserializationError::missing_struct_field( - Self::arrow_datatype(), + Self::arrow2_datatype(), "column", )) .with_context("rerun.blueprint.datatypes.FilterIsNotNull"); } let arrow_data = &**arrays_by_name["column"]; - crate::blueprint::datatypes::ComponentColumnSelector::from_arrow_opt(arrow_data) - .with_context("rerun.blueprint.datatypes.FilterIsNotNull#column")? - .into_iter() + crate::blueprint::datatypes::ComponentColumnSelector::from_arrow2_opt( + arrow_data, + ) + .with_context("rerun.blueprint.datatypes.FilterIsNotNull#column")? + .into_iter() }; arrow2::bitmap::utils::ZipValidity::new_with_validity( ::itertools::izip!(active, column), 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 65c3fce46ffb..e2b26eabbbfd 100644 --- a/crates/store/re_types/src/blueprint/datatypes/selected_columns.rs +++ b/crates/store/re_types/src/blueprint/datatypes/selected_columns.rs @@ -45,7 +45,7 @@ impl ::re_types_core::SizeBytes for SelectedColumns { impl ::re_types_core::Loggable for SelectedColumns { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::Struct(std::sync::Arc::new(vec![ @@ -53,7 +53,7 @@ impl ::re_types_core::Loggable for SelectedColumns { "time_columns", DataType::List(std::sync::Arc::new(Field::new( "item", - ::arrow_datatype(), + ::arrow2_datatype(), false, ))), false, @@ -62,7 +62,7 @@ impl ::re_types_core::Loggable for SelectedColumns { "component_columns", DataType::List(std::sync::Arc::new(Field::new( "item", - ::arrow_datatype(), + ::arrow2_datatype(), false, ))), false, @@ -70,7 +70,7 @@ impl ::re_types_core::Loggable for SelectedColumns { ])) } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -93,7 +93,7 @@ impl ::re_types_core::Loggable for SelectedColumns { any_nones.then(|| somes.into()) }; StructArray::new( - Self::arrow_datatype(), + Self::arrow2_datatype(), vec![ { let (somes, time_columns) : (Vec < _ >, Vec < _ >) = data .iter().map(| datum | { let datum = datum.as_ref().map(| datum | @@ -109,7 +109,7 @@ impl ::re_types_core::Loggable for SelectedColumns { time_columns_inner_bitmap : Option < arrow2::bitmap::Bitmap > = None; ListArray::try_new(DataType::List(std::sync::Arc::new(Field::new("item", - < crate ::datatypes::Utf8 > ::arrow_datatype(), false))), + < crate ::datatypes::Utf8 > ::arrow2_datatype(), false))), offsets, { let offsets = arrow2::offset::Offsets:: < i32 > ::try_from_lengths(time_columns_inner_data.iter().map(| datum | { datum.0.len() })) ? .into(); let inner_data : @@ -136,9 +136,9 @@ impl ::re_types_core::Loggable for SelectedColumns { > = None; ListArray::try_new(DataType::List(std::sync::Arc::new(Field::new("item", < crate ::blueprint::datatypes::ComponentColumnSelector > - ::arrow_datatype(), false))), offsets, { _ = + ::arrow2_datatype(), false))), offsets, { _ = component_columns_inner_bitmap; crate - ::blueprint::datatypes::ComponentColumnSelector::to_arrow_opt(component_columns_inner_data + ::blueprint::datatypes::ComponentColumnSelector::to_arrow2_opt(component_columns_inner_data .into_iter().map(Some)) ? }, component_columns_bitmap,) ? .boxed() } }, ], @@ -148,7 +148,7 @@ impl ::re_types_core::Loggable for SelectedColumns { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -162,7 +162,7 @@ impl ::re_types_core::Loggable for SelectedColumns { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -180,7 +180,7 @@ impl ::re_types_core::Loggable for SelectedColumns { let time_columns = { if !arrays_by_name.contains_key("time_columns") { return Err(DeserializationError::missing_struct_field( - Self::arrow_datatype(), + Self::arrow2_datatype(), "time_columns", )) .with_context("rerun.blueprint.datatypes.SelectedColumns"); @@ -193,7 +193,7 @@ impl ::re_types_core::Loggable for SelectedColumns { .ok_or_else(|| { let expected = DataType::List(std::sync::Arc::new(Field::new( "item", - ::arrow_datatype(), + ::arrow2_datatype(), false, ))); let actual = arrow_data.data_type().clone(); @@ -304,7 +304,7 @@ impl ::re_types_core::Loggable for SelectedColumns { let component_columns = { if !arrays_by_name.contains_key("component_columns") { return Err(DeserializationError::missing_struct_field( - Self::arrow_datatype(), + Self::arrow2_datatype(), "component_columns", )) .with_context("rerun.blueprint.datatypes.SelectedColumns"); @@ -319,7 +319,7 @@ impl ::re_types_core::Loggable for SelectedColumns { std::sync::Arc::new( Field::new( "item", - ::arrow_datatype(), + ::arrow2_datatype(), false, ), ), @@ -335,7 +335,7 @@ impl ::re_types_core::Loggable for SelectedColumns { } else { let arrow_data_inner = { let arrow_data_inner = &**arrow_data.values(); - crate::blueprint::datatypes::ComponentColumnSelector::from_arrow_opt( + crate::blueprint::datatypes::ComponentColumnSelector::from_arrow2_opt( arrow_data_inner, ) .with_context( 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 5e064ed1d9c2..d69ffee86956 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 @@ -55,7 +55,7 @@ impl From for u32 { impl ::re_types_core::Loggable for TensorDimensionIndexSlider { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::Struct(std::sync::Arc::new(vec![Field::new( @@ -65,7 +65,7 @@ impl ::re_types_core::Loggable for TensorDimensionIndexSlider { )])) } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -88,7 +88,7 @@ impl ::re_types_core::Loggable for TensorDimensionIndexSlider { any_nones.then(|| somes.into()) }; StructArray::new( - Self::arrow_datatype(), + Self::arrow2_datatype(), vec![{ let (somes, dimension): (Vec<_>, Vec<_>) = data .iter() @@ -117,7 +117,7 @@ impl ::re_types_core::Loggable for TensorDimensionIndexSlider { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -131,7 +131,7 @@ impl ::re_types_core::Loggable for TensorDimensionIndexSlider { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -149,7 +149,7 @@ impl ::re_types_core::Loggable for TensorDimensionIndexSlider { let dimension = { if !arrays_by_name.contains_key("dimension") { return Err(DeserializationError::missing_struct_field( - Self::arrow_datatype(), + Self::arrow2_datatype(), "dimension", )) .with_context("rerun.blueprint.datatypes.TensorDimensionIndexSlider"); diff --git a/crates/store/re_types/src/components/aggregation_policy.rs b/crates/store/re_types/src/components/aggregation_policy.rs index 421ac0083c5f..aab508c386c4 100644 --- a/crates/store/re_types/src/components/aggregation_policy.rs +++ b/crates/store/re_types/src/components/aggregation_policy.rs @@ -108,13 +108,13 @@ impl std::fmt::Display for AggregationPolicy { impl ::re_types_core::Loggable for AggregationPolicy { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::UInt8 } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -138,7 +138,7 @@ impl ::re_types_core::Loggable for AggregationPolicy { any_nones.then(|| somes.into()) }; PrimitiveArray::new( - Self::arrow_datatype(), + Self::arrow2_datatype(), data0.into_iter().map(|v| v.unwrap_or_default()).collect(), data0_bitmap, ) @@ -146,7 +146,7 @@ impl ::re_types_core::Loggable for AggregationPolicy { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -159,7 +159,7 @@ impl ::re_types_core::Loggable for AggregationPolicy { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -175,7 +175,7 @@ impl ::re_types_core::Loggable for AggregationPolicy { Some(6) => Ok(Some(Self::MinMaxAverage)), None => Ok(None), Some(invalid) => Err(DeserializationError::missing_union_arm( - Self::arrow_datatype(), + Self::arrow2_datatype(), "", invalid as _, )), diff --git a/crates/store/re_types/src/components/albedo_factor.rs b/crates/store/re_types/src/components/albedo_factor.rs index b1300535248e..24f4ec79a340 100644 --- a/crates/store/re_types/src/components/albedo_factor.rs +++ b/crates/store/re_types/src/components/albedo_factor.rs @@ -70,17 +70,17 @@ impl std::ops::DerefMut for AlbedoFactor { impl ::re_types_core::Loggable for AlbedoFactor { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::Rgba32::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::Rgba32::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::Rgba32::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::Rgba32::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -88,22 +88,22 @@ impl ::re_types_core::Loggable for AlbedoFactor { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::Rgba32::from_arrow_opt(arrow_data) + crate::datatypes::Rgba32::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } #[inline] - fn from_arrow(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> + fn from_arrow2(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> where Self: Sized, { - crate::datatypes::Rgba32::from_arrow(arrow_data).map(bytemuck::cast_vec) + crate::datatypes::Rgba32::from_arrow2(arrow_data).map(bytemuck::cast_vec) } } diff --git a/crates/store/re_types/src/components/annotation_context.rs b/crates/store/re_types/src/components/annotation_context.rs index 3c5d7b627abc..6fc9228699ad 100644 --- a/crates/store/re_types/src/components/annotation_context.rs +++ b/crates/store/re_types/src/components/annotation_context.rs @@ -55,17 +55,17 @@ impl, T: IntoIterator arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::List(std::sync::Arc::new(Field::new( "item", - ::arrow_datatype(), + ::arrow2_datatype(), false, ))) } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -99,11 +99,11 @@ impl ::re_types_core::Loggable for AnnotationContext { let data0_inner_data: Vec<_> = data0.into_iter().flatten().flatten().collect(); let data0_inner_bitmap: Option = None; ListArray::try_new( - Self::arrow_datatype(), + Self::arrow2_datatype(), offsets, { _ = data0_inner_bitmap; - crate::datatypes::ClassDescriptionMapElem::to_arrow_opt( + crate::datatypes::ClassDescriptionMapElem::to_arrow2_opt( data0_inner_data.into_iter().map(Some), )? }, @@ -114,7 +114,7 @@ impl ::re_types_core::Loggable for AnnotationContext { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -128,7 +128,7 @@ impl ::re_types_core::Loggable for AnnotationContext { .as_any() .downcast_ref::>() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -138,7 +138,7 @@ impl ::re_types_core::Loggable for AnnotationContext { } else { let arrow_data_inner = { let arrow_data_inner = &**arrow_data.values(); - crate::datatypes::ClassDescriptionMapElem::from_arrow_opt(arrow_data_inner) + crate::datatypes::ClassDescriptionMapElem::from_arrow2_opt(arrow_data_inner) .with_context("rerun.components.AnnotationContext#class_map")? .into_iter() .collect::>() diff --git a/crates/store/re_types/src/components/axis_length.rs b/crates/store/re_types/src/components/axis_length.rs index 95e6033c1c54..b26bb72e5969 100644 --- a/crates/store/re_types/src/components/axis_length.rs +++ b/crates/store/re_types/src/components/axis_length.rs @@ -68,17 +68,17 @@ impl std::ops::DerefMut for AxisLength { impl ::re_types_core::Loggable for AxisLength { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::Float32::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::Float32::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::Float32::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::Float32::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -86,22 +86,23 @@ impl ::re_types_core::Loggable for AxisLength { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::Float32::from_arrow_opt(arrow_data) + crate::datatypes::Float32::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } #[inline] - fn from_arrow(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> + fn from_arrow2(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> where Self: Sized, { - crate::datatypes::Float32::from_arrow(arrow_data).map(|v| v.into_iter().map(Self).collect()) + crate::datatypes::Float32::from_arrow2(arrow_data) + .map(|v| v.into_iter().map(Self).collect()) } } diff --git a/crates/store/re_types/src/components/blob.rs b/crates/store/re_types/src/components/blob.rs index 6dc378a9cd00..6db9bc340c1b 100644 --- a/crates/store/re_types/src/components/blob.rs +++ b/crates/store/re_types/src/components/blob.rs @@ -70,17 +70,17 @@ impl std::ops::DerefMut for Blob { impl ::re_types_core::Loggable for Blob { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::Blob::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::Blob::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::Blob::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::Blob::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -88,13 +88,13 @@ impl ::re_types_core::Loggable for Blob { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::Blob::from_arrow_opt(arrow_data) + crate::datatypes::Blob::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } diff --git a/crates/store/re_types/src/components/class_id.rs b/crates/store/re_types/src/components/class_id.rs index 209a001e849e..e3ae4921fd25 100644 --- a/crates/store/re_types/src/components/class_id.rs +++ b/crates/store/re_types/src/components/class_id.rs @@ -73,17 +73,17 @@ impl std::ops::DerefMut for ClassId { impl ::re_types_core::Loggable for ClassId { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::ClassId::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::ClassId::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::ClassId::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::ClassId::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -91,22 +91,22 @@ impl ::re_types_core::Loggable for ClassId { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::ClassId::from_arrow_opt(arrow_data) + crate::datatypes::ClassId::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } #[inline] - fn from_arrow(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> + fn from_arrow2(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> where Self: Sized, { - crate::datatypes::ClassId::from_arrow(arrow_data).map(bytemuck::cast_vec) + crate::datatypes::ClassId::from_arrow2(arrow_data).map(bytemuck::cast_vec) } } diff --git a/crates/store/re_types/src/components/color.rs b/crates/store/re_types/src/components/color.rs index 1d8d3d674f0a..06a40cb00305 100644 --- a/crates/store/re_types/src/components/color.rs +++ b/crates/store/re_types/src/components/color.rs @@ -71,17 +71,17 @@ impl std::ops::DerefMut for Color { impl ::re_types_core::Loggable for Color { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::Rgba32::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::Rgba32::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::Rgba32::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::Rgba32::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -89,22 +89,22 @@ impl ::re_types_core::Loggable for Color { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::Rgba32::from_arrow_opt(arrow_data) + crate::datatypes::Rgba32::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } #[inline] - fn from_arrow(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> + fn from_arrow2(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> where Self: Sized, { - crate::datatypes::Rgba32::from_arrow(arrow_data).map(bytemuck::cast_vec) + crate::datatypes::Rgba32::from_arrow2(arrow_data).map(bytemuck::cast_vec) } } diff --git a/crates/store/re_types/src/components/colormap.rs b/crates/store/re_types/src/components/colormap.rs index 669df72b69d8..a81be2d20490 100644 --- a/crates/store/re_types/src/components/colormap.rs +++ b/crates/store/re_types/src/components/colormap.rs @@ -145,13 +145,13 @@ impl std::fmt::Display for Colormap { impl ::re_types_core::Loggable for Colormap { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::UInt8 } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -175,7 +175,7 @@ impl ::re_types_core::Loggable for Colormap { any_nones.then(|| somes.into()) }; PrimitiveArray::new( - Self::arrow_datatype(), + Self::arrow2_datatype(), data0.into_iter().map(|v| v.unwrap_or_default()).collect(), data0_bitmap, ) @@ -183,7 +183,7 @@ impl ::re_types_core::Loggable for Colormap { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -196,7 +196,7 @@ impl ::re_types_core::Loggable for Colormap { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -213,7 +213,7 @@ impl ::re_types_core::Loggable for Colormap { Some(7) => Ok(Some(Self::CyanToYellow)), None => Ok(None), Some(invalid) => Err(DeserializationError::missing_union_arm( - Self::arrow_datatype(), + Self::arrow2_datatype(), "", invalid as _, )), diff --git a/crates/store/re_types/src/components/depth_meter.rs b/crates/store/re_types/src/components/depth_meter.rs index 20813ecef617..987c1d79ed27 100644 --- a/crates/store/re_types/src/components/depth_meter.rs +++ b/crates/store/re_types/src/components/depth_meter.rs @@ -75,17 +75,17 @@ impl std::ops::DerefMut for DepthMeter { impl ::re_types_core::Loggable for DepthMeter { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::Float32::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::Float32::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::Float32::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::Float32::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -93,22 +93,22 @@ impl ::re_types_core::Loggable for DepthMeter { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::Float32::from_arrow_opt(arrow_data) + crate::datatypes::Float32::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } #[inline] - fn from_arrow(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> + fn from_arrow2(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> where Self: Sized, { - crate::datatypes::Float32::from_arrow(arrow_data).map(bytemuck::cast_vec) + crate::datatypes::Float32::from_arrow2(arrow_data).map(bytemuck::cast_vec) } } diff --git a/crates/store/re_types/src/components/disconnected_space.rs b/crates/store/re_types/src/components/disconnected_space.rs index 76b174ba8653..f76bda3fe413 100644 --- a/crates/store/re_types/src/components/disconnected_space.rs +++ b/crates/store/re_types/src/components/disconnected_space.rs @@ -79,17 +79,17 @@ impl std::ops::DerefMut for DisconnectedSpace { impl ::re_types_core::Loggable for DisconnectedSpace { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::Bool::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::Bool::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::Bool::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::Bool::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -97,13 +97,13 @@ impl ::re_types_core::Loggable for DisconnectedSpace { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::Bool::from_arrow_opt(arrow_data) + crate::datatypes::Bool::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } diff --git a/crates/store/re_types/src/components/draw_order.rs b/crates/store/re_types/src/components/draw_order.rs index 8d7e61eecaad..76e305157320 100644 --- a/crates/store/re_types/src/components/draw_order.rs +++ b/crates/store/re_types/src/components/draw_order.rs @@ -73,17 +73,17 @@ impl std::ops::DerefMut for DrawOrder { impl ::re_types_core::Loggable for DrawOrder { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::Float32::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::Float32::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::Float32::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::Float32::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -91,22 +91,23 @@ impl ::re_types_core::Loggable for DrawOrder { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::Float32::from_arrow_opt(arrow_data) + crate::datatypes::Float32::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } #[inline] - fn from_arrow(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> + fn from_arrow2(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> where Self: Sized, { - crate::datatypes::Float32::from_arrow(arrow_data).map(|v| v.into_iter().map(Self).collect()) + crate::datatypes::Float32::from_arrow2(arrow_data) + .map(|v| v.into_iter().map(Self).collect()) } } diff --git a/crates/store/re_types/src/components/entity_path.rs b/crates/store/re_types/src/components/entity_path.rs index e1c357fba335..a3c21e0192fd 100644 --- a/crates/store/re_types/src/components/entity_path.rs +++ b/crates/store/re_types/src/components/entity_path.rs @@ -68,17 +68,17 @@ impl std::ops::DerefMut for EntityPath { impl ::re_types_core::Loggable for EntityPath { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::EntityPath::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::EntityPath::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::EntityPath::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::EntityPath::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -86,13 +86,13 @@ impl ::re_types_core::Loggable for EntityPath { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::EntityPath::from_arrow_opt(arrow_data) + crate::datatypes::EntityPath::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } diff --git a/crates/store/re_types/src/components/fill_mode.rs b/crates/store/re_types/src/components/fill_mode.rs index 42c23f52636f..f47d88d958c7 100644 --- a/crates/store/re_types/src/components/fill_mode.rs +++ b/crates/store/re_types/src/components/fill_mode.rs @@ -94,13 +94,13 @@ impl std::fmt::Display for FillMode { impl ::re_types_core::Loggable for FillMode { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::UInt8 } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -124,7 +124,7 @@ impl ::re_types_core::Loggable for FillMode { any_nones.then(|| somes.into()) }; PrimitiveArray::new( - Self::arrow_datatype(), + Self::arrow2_datatype(), data0.into_iter().map(|v| v.unwrap_or_default()).collect(), data0_bitmap, ) @@ -132,7 +132,7 @@ impl ::re_types_core::Loggable for FillMode { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -145,7 +145,7 @@ impl ::re_types_core::Loggable for FillMode { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -158,7 +158,7 @@ impl ::re_types_core::Loggable for FillMode { Some(3) => Ok(Some(Self::Solid)), None => Ok(None), Some(invalid) => Err(DeserializationError::missing_union_arm( - Self::arrow_datatype(), + Self::arrow2_datatype(), "", invalid as _, )), diff --git a/crates/store/re_types/src/components/fill_ratio.rs b/crates/store/re_types/src/components/fill_ratio.rs index 875eabeaaba1..17cd8e5288af 100644 --- a/crates/store/re_types/src/components/fill_ratio.rs +++ b/crates/store/re_types/src/components/fill_ratio.rs @@ -73,17 +73,17 @@ impl std::ops::DerefMut for FillRatio { impl ::re_types_core::Loggable for FillRatio { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::Float32::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::Float32::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::Float32::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::Float32::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -91,22 +91,22 @@ impl ::re_types_core::Loggable for FillRatio { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::Float32::from_arrow_opt(arrow_data) + crate::datatypes::Float32::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } #[inline] - fn from_arrow(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> + fn from_arrow2(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> where Self: Sized, { - crate::datatypes::Float32::from_arrow(arrow_data).map(bytemuck::cast_vec) + crate::datatypes::Float32::from_arrow2(arrow_data).map(bytemuck::cast_vec) } } diff --git a/crates/store/re_types/src/components/gamma_correction.rs b/crates/store/re_types/src/components/gamma_correction.rs index 1f0eb92f020f..fba16194be57 100644 --- a/crates/store/re_types/src/components/gamma_correction.rs +++ b/crates/store/re_types/src/components/gamma_correction.rs @@ -74,17 +74,17 @@ impl std::ops::DerefMut for GammaCorrection { impl ::re_types_core::Loggable for GammaCorrection { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::Float32::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::Float32::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::Float32::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::Float32::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -92,22 +92,22 @@ impl ::re_types_core::Loggable for GammaCorrection { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::Float32::from_arrow_opt(arrow_data) + crate::datatypes::Float32::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } #[inline] - fn from_arrow(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> + fn from_arrow2(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> where Self: Sized, { - crate::datatypes::Float32::from_arrow(arrow_data).map(bytemuck::cast_vec) + crate::datatypes::Float32::from_arrow2(arrow_data).map(bytemuck::cast_vec) } } 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 78b55f7f6434..099c56e676c0 100644 --- a/crates/store/re_types/src/components/geo_line_string.rs +++ b/crates/store/re_types/src/components/geo_line_string.rs @@ -45,17 +45,17 @@ impl, T: IntoIterator> From for G impl ::re_types_core::Loggable for GeoLineString { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::List(std::sync::Arc::new(Field::new( "item", - ::arrow_datatype(), + ::arrow2_datatype(), false, ))) } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -89,7 +89,7 @@ impl ::re_types_core::Loggable for GeoLineString { let data0_inner_data: Vec<_> = data0.into_iter().flatten().flatten().collect(); let data0_inner_bitmap: Option = None; ListArray::try_new( - Self::arrow_datatype(), + Self::arrow2_datatype(), offsets, { use arrow2::{buffer::Buffer, offset::OffsetsBuffer}; @@ -121,7 +121,7 @@ impl ::re_types_core::Loggable for GeoLineString { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -135,7 +135,7 @@ impl ::re_types_core::Loggable for GeoLineString { .as_any() .downcast_ref::>() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) diff --git a/crates/store/re_types/src/components/half_size2d.rs b/crates/store/re_types/src/components/half_size2d.rs index 4df2ee5a055f..5174b31f1d51 100644 --- a/crates/store/re_types/src/components/half_size2d.rs +++ b/crates/store/re_types/src/components/half_size2d.rs @@ -73,17 +73,17 @@ impl std::ops::DerefMut for HalfSize2D { impl ::re_types_core::Loggable for HalfSize2D { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::Vec2D::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::Vec2D::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::Vec2D::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::Vec2D::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -91,22 +91,22 @@ impl ::re_types_core::Loggable for HalfSize2D { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::Vec2D::from_arrow_opt(arrow_data) + crate::datatypes::Vec2D::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } #[inline] - fn from_arrow(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> + fn from_arrow2(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> where Self: Sized, { - crate::datatypes::Vec2D::from_arrow(arrow_data).map(bytemuck::cast_vec) + crate::datatypes::Vec2D::from_arrow2(arrow_data).map(bytemuck::cast_vec) } } diff --git a/crates/store/re_types/src/components/half_size3d.rs b/crates/store/re_types/src/components/half_size3d.rs index 13f12fb41c14..a79e25b2abec 100644 --- a/crates/store/re_types/src/components/half_size3d.rs +++ b/crates/store/re_types/src/components/half_size3d.rs @@ -73,17 +73,17 @@ impl std::ops::DerefMut for HalfSize3D { impl ::re_types_core::Loggable for HalfSize3D { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::Vec3D::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::Vec3D::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::Vec3D::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::Vec3D::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -91,22 +91,22 @@ impl ::re_types_core::Loggable for HalfSize3D { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::Vec3D::from_arrow_opt(arrow_data) + crate::datatypes::Vec3D::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } #[inline] - fn from_arrow(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> + fn from_arrow2(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> where Self: Sized, { - crate::datatypes::Vec3D::from_arrow(arrow_data).map(bytemuck::cast_vec) + crate::datatypes::Vec3D::from_arrow2(arrow_data).map(bytemuck::cast_vec) } } diff --git a/crates/store/re_types/src/components/image_buffer.rs b/crates/store/re_types/src/components/image_buffer.rs index 0d7b03a7bcc2..468349ebea37 100644 --- a/crates/store/re_types/src/components/image_buffer.rs +++ b/crates/store/re_types/src/components/image_buffer.rs @@ -70,17 +70,17 @@ impl std::ops::DerefMut for ImageBuffer { impl ::re_types_core::Loggable for ImageBuffer { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::Blob::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::Blob::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::Blob::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::Blob::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -88,13 +88,13 @@ impl ::re_types_core::Loggable for ImageBuffer { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::Blob::from_arrow_opt(arrow_data) + crate::datatypes::Blob::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } diff --git a/crates/store/re_types/src/components/image_format.rs b/crates/store/re_types/src/components/image_format.rs index cd5d9c9a6149..6912608adb46 100644 --- a/crates/store/re_types/src/components/image_format.rs +++ b/crates/store/re_types/src/components/image_format.rs @@ -68,17 +68,17 @@ impl std::ops::DerefMut for ImageFormat { impl ::re_types_core::Loggable for ImageFormat { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::ImageFormat::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::ImageFormat::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::ImageFormat::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::ImageFormat::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -86,13 +86,13 @@ impl ::re_types_core::Loggable for ImageFormat { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::ImageFormat::from_arrow_opt(arrow_data) + crate::datatypes::ImageFormat::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } 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 d17116c0398c..b300ff36163c 100644 --- a/crates/store/re_types/src/components/image_plane_distance.rs +++ b/crates/store/re_types/src/components/image_plane_distance.rs @@ -69,17 +69,17 @@ impl std::ops::DerefMut for ImagePlaneDistance { impl ::re_types_core::Loggable for ImagePlaneDistance { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::Float32::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::Float32::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::Float32::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::Float32::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -87,22 +87,23 @@ impl ::re_types_core::Loggable for ImagePlaneDistance { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::Float32::from_arrow_opt(arrow_data) + crate::datatypes::Float32::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } #[inline] - fn from_arrow(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> + fn from_arrow2(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> where Self: Sized, { - crate::datatypes::Float32::from_arrow(arrow_data).map(|v| v.into_iter().map(Self).collect()) + crate::datatypes::Float32::from_arrow2(arrow_data) + .map(|v| v.into_iter().map(Self).collect()) } } diff --git a/crates/store/re_types/src/components/keypoint_id.rs b/crates/store/re_types/src/components/keypoint_id.rs index 4ff4b070446a..17f68de0e5e3 100644 --- a/crates/store/re_types/src/components/keypoint_id.rs +++ b/crates/store/re_types/src/components/keypoint_id.rs @@ -85,17 +85,17 @@ impl std::ops::DerefMut for KeypointId { impl ::re_types_core::Loggable for KeypointId { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::KeypointId::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::KeypointId::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::KeypointId::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::KeypointId::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -103,22 +103,22 @@ impl ::re_types_core::Loggable for KeypointId { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::KeypointId::from_arrow_opt(arrow_data) + crate::datatypes::KeypointId::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } #[inline] - fn from_arrow(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> + fn from_arrow2(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> where Self: Sized, { - crate::datatypes::KeypointId::from_arrow(arrow_data).map(bytemuck::cast_vec) + crate::datatypes::KeypointId::from_arrow2(arrow_data).map(bytemuck::cast_vec) } } diff --git a/crates/store/re_types/src/components/lat_lon.rs b/crates/store/re_types/src/components/lat_lon.rs index 3ac0b624308e..d234e2596029 100644 --- a/crates/store/re_types/src/components/lat_lon.rs +++ b/crates/store/re_types/src/components/lat_lon.rs @@ -68,17 +68,17 @@ impl std::ops::DerefMut for LatLon { impl ::re_types_core::Loggable for LatLon { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::DVec2D::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::DVec2D::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::DVec2D::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::DVec2D::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -86,22 +86,22 @@ impl ::re_types_core::Loggable for LatLon { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::DVec2D::from_arrow_opt(arrow_data) + crate::datatypes::DVec2D::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } #[inline] - fn from_arrow(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> + fn from_arrow2(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> where Self: Sized, { - crate::datatypes::DVec2D::from_arrow(arrow_data).map(bytemuck::cast_vec) + crate::datatypes::DVec2D::from_arrow2(arrow_data).map(bytemuck::cast_vec) } } diff --git a/crates/store/re_types/src/components/length.rs b/crates/store/re_types/src/components/length.rs index 9f63882a748c..c9af57f4259d 100644 --- a/crates/store/re_types/src/components/length.rs +++ b/crates/store/re_types/src/components/length.rs @@ -71,17 +71,17 @@ impl std::ops::DerefMut for Length { impl ::re_types_core::Loggable for Length { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::Float32::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::Float32::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::Float32::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::Float32::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -89,22 +89,22 @@ impl ::re_types_core::Loggable for Length { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::Float32::from_arrow_opt(arrow_data) + crate::datatypes::Float32::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } #[inline] - fn from_arrow(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> + fn from_arrow2(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> where Self: Sized, { - crate::datatypes::Float32::from_arrow(arrow_data).map(bytemuck::cast_vec) + crate::datatypes::Float32::from_arrow2(arrow_data).map(bytemuck::cast_vec) } } diff --git a/crates/store/re_types/src/components/line_strip2d.rs b/crates/store/re_types/src/components/line_strip2d.rs index 92bcefa77a39..fca9aa19e202 100644 --- a/crates/store/re_types/src/components/line_strip2d.rs +++ b/crates/store/re_types/src/components/line_strip2d.rs @@ -55,17 +55,17 @@ impl, T: IntoIterator> From for Li impl ::re_types_core::Loggable for LineStrip2D { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::List(std::sync::Arc::new(Field::new( "item", - ::arrow_datatype(), + ::arrow2_datatype(), false, ))) } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -99,7 +99,7 @@ impl ::re_types_core::Loggable for LineStrip2D { let data0_inner_data: Vec<_> = data0.into_iter().flatten().flatten().collect(); let data0_inner_bitmap: Option = None; ListArray::try_new( - Self::arrow_datatype(), + Self::arrow2_datatype(), offsets, { use arrow2::{buffer::Buffer, offset::OffsetsBuffer}; @@ -131,7 +131,7 @@ impl ::re_types_core::Loggable for LineStrip2D { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -145,7 +145,7 @@ impl ::re_types_core::Loggable for LineStrip2D { .as_any() .downcast_ref::>() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) diff --git a/crates/store/re_types/src/components/line_strip3d.rs b/crates/store/re_types/src/components/line_strip3d.rs index 17eb04132b3f..6283a6309953 100644 --- a/crates/store/re_types/src/components/line_strip3d.rs +++ b/crates/store/re_types/src/components/line_strip3d.rs @@ -55,17 +55,17 @@ impl, T: IntoIterator> From for Li impl ::re_types_core::Loggable for LineStrip3D { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::List(std::sync::Arc::new(Field::new( "item", - ::arrow_datatype(), + ::arrow2_datatype(), false, ))) } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -99,7 +99,7 @@ impl ::re_types_core::Loggable for LineStrip3D { let data0_inner_data: Vec<_> = data0.into_iter().flatten().flatten().collect(); let data0_inner_bitmap: Option = None; ListArray::try_new( - Self::arrow_datatype(), + Self::arrow2_datatype(), offsets, { use arrow2::{buffer::Buffer, offset::OffsetsBuffer}; @@ -131,7 +131,7 @@ impl ::re_types_core::Loggable for LineStrip3D { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -145,7 +145,7 @@ impl ::re_types_core::Loggable for LineStrip3D { .as_any() .downcast_ref::>() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) diff --git a/crates/store/re_types/src/components/magnification_filter.rs b/crates/store/re_types/src/components/magnification_filter.rs index 57d83aeed587..a88bec0ed014 100644 --- a/crates/store/re_types/src/components/magnification_filter.rs +++ b/crates/store/re_types/src/components/magnification_filter.rs @@ -80,13 +80,13 @@ impl std::fmt::Display for MagnificationFilter { impl ::re_types_core::Loggable for MagnificationFilter { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::UInt8 } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -110,7 +110,7 @@ impl ::re_types_core::Loggable for MagnificationFilter { any_nones.then(|| somes.into()) }; PrimitiveArray::new( - Self::arrow_datatype(), + Self::arrow2_datatype(), data0.into_iter().map(|v| v.unwrap_or_default()).collect(), data0_bitmap, ) @@ -118,7 +118,7 @@ impl ::re_types_core::Loggable for MagnificationFilter { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -131,7 +131,7 @@ impl ::re_types_core::Loggable for MagnificationFilter { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -143,7 +143,7 @@ impl ::re_types_core::Loggable for MagnificationFilter { Some(2) => Ok(Some(Self::Linear)), None => Ok(None), Some(invalid) => Err(DeserializationError::missing_union_arm( - Self::arrow_datatype(), + Self::arrow2_datatype(), "", invalid as _, )), diff --git a/crates/store/re_types/src/components/marker_shape.rs b/crates/store/re_types/src/components/marker_shape.rs index caaf90f7ef74..36fd014c26f1 100644 --- a/crates/store/re_types/src/components/marker_shape.rs +++ b/crates/store/re_types/src/components/marker_shape.rs @@ -122,13 +122,13 @@ impl std::fmt::Display for MarkerShape { impl ::re_types_core::Loggable for MarkerShape { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::UInt8 } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -152,7 +152,7 @@ impl ::re_types_core::Loggable for MarkerShape { any_nones.then(|| somes.into()) }; PrimitiveArray::new( - Self::arrow_datatype(), + Self::arrow2_datatype(), data0.into_iter().map(|v| v.unwrap_or_default()).collect(), data0_bitmap, ) @@ -160,7 +160,7 @@ impl ::re_types_core::Loggable for MarkerShape { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -173,7 +173,7 @@ impl ::re_types_core::Loggable for MarkerShape { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -193,7 +193,7 @@ impl ::re_types_core::Loggable for MarkerShape { Some(10) => Ok(Some(Self::Asterisk)), None => Ok(None), Some(invalid) => Err(DeserializationError::missing_union_arm( - Self::arrow_datatype(), + Self::arrow2_datatype(), "", invalid as _, )), diff --git a/crates/store/re_types/src/components/marker_size.rs b/crates/store/re_types/src/components/marker_size.rs index a9051d1dfe5f..4f44ca66050d 100644 --- a/crates/store/re_types/src/components/marker_size.rs +++ b/crates/store/re_types/src/components/marker_size.rs @@ -68,17 +68,17 @@ impl std::ops::DerefMut for MarkerSize { impl ::re_types_core::Loggable for MarkerSize { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::Float32::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::Float32::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::Float32::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::Float32::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -86,22 +86,22 @@ impl ::re_types_core::Loggable for MarkerSize { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::Float32::from_arrow_opt(arrow_data) + crate::datatypes::Float32::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } #[inline] - fn from_arrow(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> + fn from_arrow2(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> where Self: Sized, { - crate::datatypes::Float32::from_arrow(arrow_data).map(bytemuck::cast_vec) + crate::datatypes::Float32::from_arrow2(arrow_data).map(bytemuck::cast_vec) } } diff --git a/crates/store/re_types/src/components/media_type.rs b/crates/store/re_types/src/components/media_type.rs index 938d0325bdf2..fe334105bb42 100644 --- a/crates/store/re_types/src/components/media_type.rs +++ b/crates/store/re_types/src/components/media_type.rs @@ -71,17 +71,17 @@ impl std::ops::DerefMut for MediaType { impl ::re_types_core::Loggable for MediaType { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::Utf8::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::Utf8::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::Utf8::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::Utf8::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -89,13 +89,13 @@ impl ::re_types_core::Loggable for MediaType { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::Utf8::from_arrow_opt(arrow_data) + crate::datatypes::Utf8::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } diff --git a/crates/store/re_types/src/components/name.rs b/crates/store/re_types/src/components/name.rs index ba403152e728..895caa97e92e 100644 --- a/crates/store/re_types/src/components/name.rs +++ b/crates/store/re_types/src/components/name.rs @@ -68,17 +68,17 @@ impl std::ops::DerefMut for Name { impl ::re_types_core::Loggable for Name { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::Utf8::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::Utf8::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::Utf8::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::Utf8::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -86,13 +86,13 @@ impl ::re_types_core::Loggable for Name { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::Utf8::from_arrow_opt(arrow_data) + crate::datatypes::Utf8::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } diff --git a/crates/store/re_types/src/components/opacity.rs b/crates/store/re_types/src/components/opacity.rs index 7b79c7204f1c..da095c126a63 100644 --- a/crates/store/re_types/src/components/opacity.rs +++ b/crates/store/re_types/src/components/opacity.rs @@ -71,17 +71,17 @@ impl std::ops::DerefMut for Opacity { impl ::re_types_core::Loggable for Opacity { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::Float32::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::Float32::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::Float32::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::Float32::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -89,22 +89,22 @@ impl ::re_types_core::Loggable for Opacity { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::Float32::from_arrow_opt(arrow_data) + crate::datatypes::Float32::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } #[inline] - fn from_arrow(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> + fn from_arrow2(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> where Self: Sized, { - crate::datatypes::Float32::from_arrow(arrow_data).map(bytemuck::cast_vec) + crate::datatypes::Float32::from_arrow2(arrow_data).map(bytemuck::cast_vec) } } diff --git a/crates/store/re_types/src/components/pinhole_projection.rs b/crates/store/re_types/src/components/pinhole_projection.rs index 66ce2e2f8cba..49fd3921eb6e 100644 --- a/crates/store/re_types/src/components/pinhole_projection.rs +++ b/crates/store/re_types/src/components/pinhole_projection.rs @@ -77,17 +77,17 @@ impl std::ops::DerefMut for PinholeProjection { impl ::re_types_core::Loggable for PinholeProjection { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::Mat3x3::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::Mat3x3::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::Mat3x3::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::Mat3x3::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -95,22 +95,22 @@ impl ::re_types_core::Loggable for PinholeProjection { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::Mat3x3::from_arrow_opt(arrow_data) + crate::datatypes::Mat3x3::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } #[inline] - fn from_arrow(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> + fn from_arrow2(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> where Self: Sized, { - crate::datatypes::Mat3x3::from_arrow(arrow_data).map(|v| v.into_iter().map(Self).collect()) + crate::datatypes::Mat3x3::from_arrow2(arrow_data).map(|v| v.into_iter().map(Self).collect()) } } 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 7036a92c1ffe..69f3c19db727 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 @@ -68,17 +68,17 @@ impl std::ops::DerefMut for PoseRotationAxisAngle { impl ::re_types_core::Loggable for PoseRotationAxisAngle { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::RotationAxisAngle::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::RotationAxisAngle::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::RotationAxisAngle::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::RotationAxisAngle::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -86,13 +86,13 @@ impl ::re_types_core::Loggable for PoseRotationAxisAngle { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::RotationAxisAngle::from_arrow_opt(arrow_data) + crate::datatypes::RotationAxisAngle::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } 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 335c1b5edcc6..73309d4222df 100644 --- a/crates/store/re_types/src/components/pose_rotation_quat.rs +++ b/crates/store/re_types/src/components/pose_rotation_quat.rs @@ -71,17 +71,17 @@ impl std::ops::DerefMut for PoseRotationQuat { impl ::re_types_core::Loggable for PoseRotationQuat { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::Quaternion::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::Quaternion::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::Quaternion::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::Quaternion::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -89,22 +89,22 @@ impl ::re_types_core::Loggable for PoseRotationQuat { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::Quaternion::from_arrow_opt(arrow_data) + crate::datatypes::Quaternion::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } #[inline] - fn from_arrow(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> + fn from_arrow2(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> where Self: Sized, { - crate::datatypes::Quaternion::from_arrow(arrow_data).map(bytemuck::cast_vec) + crate::datatypes::Quaternion::from_arrow2(arrow_data).map(bytemuck::cast_vec) } } diff --git a/crates/store/re_types/src/components/pose_scale3d.rs b/crates/store/re_types/src/components/pose_scale3d.rs index 6f8fdd65d638..dc8405122019 100644 --- a/crates/store/re_types/src/components/pose_scale3d.rs +++ b/crates/store/re_types/src/components/pose_scale3d.rs @@ -72,17 +72,17 @@ impl std::ops::DerefMut for PoseScale3D { impl ::re_types_core::Loggable for PoseScale3D { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::Vec3D::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::Vec3D::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::Vec3D::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::Vec3D::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -90,22 +90,22 @@ impl ::re_types_core::Loggable for PoseScale3D { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::Vec3D::from_arrow_opt(arrow_data) + crate::datatypes::Vec3D::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } #[inline] - fn from_arrow(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> + fn from_arrow2(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> where Self: Sized, { - crate::datatypes::Vec3D::from_arrow(arrow_data).map(bytemuck::cast_vec) + crate::datatypes::Vec3D::from_arrow2(arrow_data).map(bytemuck::cast_vec) } } 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 3c5b9256d639..3b13194ee2de 100644 --- a/crates/store/re_types/src/components/pose_transform_mat3x3.rs +++ b/crates/store/re_types/src/components/pose_transform_mat3x3.rs @@ -80,17 +80,17 @@ impl std::ops::DerefMut for PoseTransformMat3x3 { impl ::re_types_core::Loggable for PoseTransformMat3x3 { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::Mat3x3::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::Mat3x3::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::Mat3x3::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::Mat3x3::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -98,22 +98,22 @@ impl ::re_types_core::Loggable for PoseTransformMat3x3 { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::Mat3x3::from_arrow_opt(arrow_data) + crate::datatypes::Mat3x3::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } #[inline] - fn from_arrow(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> + fn from_arrow2(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> where Self: Sized, { - crate::datatypes::Mat3x3::from_arrow(arrow_data).map(bytemuck::cast_vec) + crate::datatypes::Mat3x3::from_arrow2(arrow_data).map(bytemuck::cast_vec) } } diff --git a/crates/store/re_types/src/components/pose_translation3d.rs b/crates/store/re_types/src/components/pose_translation3d.rs index 9d72cf4acf58..58f01f022402 100644 --- a/crates/store/re_types/src/components/pose_translation3d.rs +++ b/crates/store/re_types/src/components/pose_translation3d.rs @@ -68,17 +68,17 @@ impl std::ops::DerefMut for PoseTranslation3D { impl ::re_types_core::Loggable for PoseTranslation3D { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::Vec3D::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::Vec3D::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::Vec3D::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::Vec3D::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -86,22 +86,22 @@ impl ::re_types_core::Loggable for PoseTranslation3D { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::Vec3D::from_arrow_opt(arrow_data) + crate::datatypes::Vec3D::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } #[inline] - fn from_arrow(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> + fn from_arrow2(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> where Self: Sized, { - crate::datatypes::Vec3D::from_arrow(arrow_data).map(bytemuck::cast_vec) + crate::datatypes::Vec3D::from_arrow2(arrow_data).map(bytemuck::cast_vec) } } diff --git a/crates/store/re_types/src/components/position2d.rs b/crates/store/re_types/src/components/position2d.rs index 38b582ddb3f4..5247e7207ba6 100644 --- a/crates/store/re_types/src/components/position2d.rs +++ b/crates/store/re_types/src/components/position2d.rs @@ -68,17 +68,17 @@ impl std::ops::DerefMut for Position2D { impl ::re_types_core::Loggable for Position2D { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::Vec2D::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::Vec2D::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::Vec2D::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::Vec2D::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -86,22 +86,22 @@ impl ::re_types_core::Loggable for Position2D { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::Vec2D::from_arrow_opt(arrow_data) + crate::datatypes::Vec2D::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } #[inline] - fn from_arrow(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> + fn from_arrow2(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> where Self: Sized, { - crate::datatypes::Vec2D::from_arrow(arrow_data).map(bytemuck::cast_vec) + crate::datatypes::Vec2D::from_arrow2(arrow_data).map(bytemuck::cast_vec) } } diff --git a/crates/store/re_types/src/components/position3d.rs b/crates/store/re_types/src/components/position3d.rs index f60f59a5e372..5d464f2c5390 100644 --- a/crates/store/re_types/src/components/position3d.rs +++ b/crates/store/re_types/src/components/position3d.rs @@ -68,17 +68,17 @@ impl std::ops::DerefMut for Position3D { impl ::re_types_core::Loggable for Position3D { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::Vec3D::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::Vec3D::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::Vec3D::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::Vec3D::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -86,22 +86,22 @@ impl ::re_types_core::Loggable for Position3D { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::Vec3D::from_arrow_opt(arrow_data) + crate::datatypes::Vec3D::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } #[inline] - fn from_arrow(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> + fn from_arrow2(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> where Self: Sized, { - crate::datatypes::Vec3D::from_arrow(arrow_data).map(bytemuck::cast_vec) + crate::datatypes::Vec3D::from_arrow2(arrow_data).map(bytemuck::cast_vec) } } diff --git a/crates/store/re_types/src/components/radius.rs b/crates/store/re_types/src/components/radius.rs index 241e71257936..ef66a5d7a738 100644 --- a/crates/store/re_types/src/components/radius.rs +++ b/crates/store/re_types/src/components/radius.rs @@ -75,17 +75,17 @@ impl std::ops::DerefMut for Radius { impl ::re_types_core::Loggable for Radius { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::Float32::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::Float32::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::Float32::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::Float32::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -93,22 +93,22 @@ impl ::re_types_core::Loggable for Radius { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::Float32::from_arrow_opt(arrow_data) + crate::datatypes::Float32::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } #[inline] - fn from_arrow(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> + fn from_arrow2(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> where Self: Sized, { - crate::datatypes::Float32::from_arrow(arrow_data).map(bytemuck::cast_vec) + crate::datatypes::Float32::from_arrow2(arrow_data).map(bytemuck::cast_vec) } } diff --git a/crates/store/re_types/src/components/range1d.rs b/crates/store/re_types/src/components/range1d.rs index 50b82a1354b2..c432aca259d5 100644 --- a/crates/store/re_types/src/components/range1d.rs +++ b/crates/store/re_types/src/components/range1d.rs @@ -68,17 +68,17 @@ impl std::ops::DerefMut for Range1D { impl ::re_types_core::Loggable for Range1D { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::Range1D::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::Range1D::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::Range1D::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::Range1D::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -86,22 +86,22 @@ impl ::re_types_core::Loggable for Range1D { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::Range1D::from_arrow_opt(arrow_data) + crate::datatypes::Range1D::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } #[inline] - fn from_arrow(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> + fn from_arrow2(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> where Self: Sized, { - crate::datatypes::Range1D::from_arrow(arrow_data).map(bytemuck::cast_vec) + crate::datatypes::Range1D::from_arrow2(arrow_data).map(bytemuck::cast_vec) } } diff --git a/crates/store/re_types/src/components/resolution.rs b/crates/store/re_types/src/components/resolution.rs index bcadde0be16f..d15c3abb2870 100644 --- a/crates/store/re_types/src/components/resolution.rs +++ b/crates/store/re_types/src/components/resolution.rs @@ -69,17 +69,17 @@ impl std::ops::DerefMut for Resolution { impl ::re_types_core::Loggable for Resolution { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::Vec2D::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::Vec2D::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::Vec2D::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::Vec2D::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -87,22 +87,22 @@ impl ::re_types_core::Loggable for Resolution { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::Vec2D::from_arrow_opt(arrow_data) + crate::datatypes::Vec2D::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } #[inline] - fn from_arrow(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> + fn from_arrow2(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> where Self: Sized, { - crate::datatypes::Vec2D::from_arrow(arrow_data).map(|v| v.into_iter().map(Self).collect()) + crate::datatypes::Vec2D::from_arrow2(arrow_data).map(|v| v.into_iter().map(Self).collect()) } } 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 80330fe35bab..4ffdaf289296 100644 --- a/crates/store/re_types/src/components/rotation_axis_angle.rs +++ b/crates/store/re_types/src/components/rotation_axis_angle.rs @@ -68,17 +68,17 @@ impl std::ops::DerefMut for RotationAxisAngle { impl ::re_types_core::Loggable for RotationAxisAngle { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::RotationAxisAngle::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::RotationAxisAngle::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::RotationAxisAngle::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::RotationAxisAngle::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -86,13 +86,13 @@ impl ::re_types_core::Loggable for RotationAxisAngle { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::RotationAxisAngle::from_arrow_opt(arrow_data) + crate::datatypes::RotationAxisAngle::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } diff --git a/crates/store/re_types/src/components/rotation_quat.rs b/crates/store/re_types/src/components/rotation_quat.rs index 12905957ef5c..b9ab1eb45fb5 100644 --- a/crates/store/re_types/src/components/rotation_quat.rs +++ b/crates/store/re_types/src/components/rotation_quat.rs @@ -71,17 +71,17 @@ impl std::ops::DerefMut for RotationQuat { impl ::re_types_core::Loggable for RotationQuat { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::Quaternion::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::Quaternion::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::Quaternion::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::Quaternion::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -89,22 +89,22 @@ impl ::re_types_core::Loggable for RotationQuat { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::Quaternion::from_arrow_opt(arrow_data) + crate::datatypes::Quaternion::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } #[inline] - fn from_arrow(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> + fn from_arrow2(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> where Self: Sized, { - crate::datatypes::Quaternion::from_arrow(arrow_data).map(bytemuck::cast_vec) + crate::datatypes::Quaternion::from_arrow2(arrow_data).map(bytemuck::cast_vec) } } diff --git a/crates/store/re_types/src/components/scalar.rs b/crates/store/re_types/src/components/scalar.rs index aa0f455c50a9..724559d4ef71 100644 --- a/crates/store/re_types/src/components/scalar.rs +++ b/crates/store/re_types/src/components/scalar.rs @@ -70,17 +70,17 @@ impl std::ops::DerefMut for Scalar { impl ::re_types_core::Loggable for Scalar { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::Float64::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::Float64::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::Float64::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::Float64::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -88,22 +88,22 @@ impl ::re_types_core::Loggable for Scalar { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::Float64::from_arrow_opt(arrow_data) + crate::datatypes::Float64::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } #[inline] - fn from_arrow(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> + fn from_arrow2(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> where Self: Sized, { - crate::datatypes::Float64::from_arrow(arrow_data).map(bytemuck::cast_vec) + crate::datatypes::Float64::from_arrow2(arrow_data).map(bytemuck::cast_vec) } } diff --git a/crates/store/re_types/src/components/scale3d.rs b/crates/store/re_types/src/components/scale3d.rs index 78ab07a8e026..46c4b978b04a 100644 --- a/crates/store/re_types/src/components/scale3d.rs +++ b/crates/store/re_types/src/components/scale3d.rs @@ -72,17 +72,17 @@ impl std::ops::DerefMut for Scale3D { impl ::re_types_core::Loggable for Scale3D { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::Vec3D::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::Vec3D::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::Vec3D::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::Vec3D::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -90,22 +90,22 @@ impl ::re_types_core::Loggable for Scale3D { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::Vec3D::from_arrow_opt(arrow_data) + crate::datatypes::Vec3D::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } #[inline] - fn from_arrow(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> + fn from_arrow2(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> where Self: Sized, { - crate::datatypes::Vec3D::from_arrow(arrow_data).map(bytemuck::cast_vec) + crate::datatypes::Vec3D::from_arrow2(arrow_data).map(bytemuck::cast_vec) } } diff --git a/crates/store/re_types/src/components/show_labels.rs b/crates/store/re_types/src/components/show_labels.rs index d02798e8c38a..dd5dde88f2c8 100644 --- a/crates/store/re_types/src/components/show_labels.rs +++ b/crates/store/re_types/src/components/show_labels.rs @@ -74,17 +74,17 @@ impl std::ops::DerefMut for ShowLabels { impl ::re_types_core::Loggable for ShowLabels { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::Bool::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::Bool::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::Bool::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::Bool::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -92,13 +92,13 @@ impl ::re_types_core::Loggable for ShowLabels { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::Bool::from_arrow_opt(arrow_data) + crate::datatypes::Bool::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } diff --git a/crates/store/re_types/src/components/stroke_width.rs b/crates/store/re_types/src/components/stroke_width.rs index 7c4794498d29..d616f092ef56 100644 --- a/crates/store/re_types/src/components/stroke_width.rs +++ b/crates/store/re_types/src/components/stroke_width.rs @@ -68,17 +68,17 @@ impl std::ops::DerefMut for StrokeWidth { impl ::re_types_core::Loggable for StrokeWidth { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::Float32::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::Float32::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::Float32::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::Float32::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -86,22 +86,22 @@ impl ::re_types_core::Loggable for StrokeWidth { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::Float32::from_arrow_opt(arrow_data) + crate::datatypes::Float32::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } #[inline] - fn from_arrow(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> + fn from_arrow2(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> where Self: Sized, { - crate::datatypes::Float32::from_arrow(arrow_data).map(bytemuck::cast_vec) + crate::datatypes::Float32::from_arrow2(arrow_data).map(bytemuck::cast_vec) } } diff --git a/crates/store/re_types/src/components/tensor_data.rs b/crates/store/re_types/src/components/tensor_data.rs index a23f31c80924..0f9ab55b2abd 100644 --- a/crates/store/re_types/src/components/tensor_data.rs +++ b/crates/store/re_types/src/components/tensor_data.rs @@ -75,17 +75,17 @@ impl std::ops::DerefMut for TensorData { impl ::re_types_core::Loggable for TensorData { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::TensorData::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::TensorData::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::TensorData::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::TensorData::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -93,13 +93,13 @@ impl ::re_types_core::Loggable for TensorData { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::TensorData::from_arrow_opt(arrow_data) + crate::datatypes::TensorData::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } 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 359293dc5d1c..ee019e51cd2d 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 @@ -72,17 +72,17 @@ impl std::ops::DerefMut for TensorDimensionIndexSelection { impl ::re_types_core::Loggable for TensorDimensionIndexSelection { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::TensorDimensionIndexSelection::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::TensorDimensionIndexSelection::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::TensorDimensionIndexSelection::to_arrow_opt(data.into_iter().map( + crate::datatypes::TensorDimensionIndexSelection::to_arrow2_opt(data.into_iter().map( |datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), @@ -92,13 +92,13 @@ impl ::re_types_core::Loggable for TensorDimensionIndexSelection { )) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::TensorDimensionIndexSelection::from_arrow_opt(arrow_data) + crate::datatypes::TensorDimensionIndexSelection::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } 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 344098d2c4cd..d60c7a6717a9 100644 --- a/crates/store/re_types/src/components/tensor_height_dimension.rs +++ b/crates/store/re_types/src/components/tensor_height_dimension.rs @@ -68,17 +68,17 @@ impl std::ops::DerefMut for TensorHeightDimension { impl ::re_types_core::Loggable for TensorHeightDimension { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::TensorDimensionSelection::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::TensorDimensionSelection::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::TensorDimensionSelection::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::TensorDimensionSelection::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -86,13 +86,13 @@ impl ::re_types_core::Loggable for TensorHeightDimension { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::TensorDimensionSelection::from_arrow_opt(arrow_data) + crate::datatypes::TensorDimensionSelection::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } 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 3f0225fc2dc6..e54f7fefb461 100644 --- a/crates/store/re_types/src/components/tensor_width_dimension.rs +++ b/crates/store/re_types/src/components/tensor_width_dimension.rs @@ -68,17 +68,17 @@ impl std::ops::DerefMut for TensorWidthDimension { impl ::re_types_core::Loggable for TensorWidthDimension { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::TensorDimensionSelection::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::TensorDimensionSelection::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::TensorDimensionSelection::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::TensorDimensionSelection::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -86,13 +86,13 @@ impl ::re_types_core::Loggable for TensorWidthDimension { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::TensorDimensionSelection::from_arrow_opt(arrow_data) + crate::datatypes::TensorDimensionSelection::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } diff --git a/crates/store/re_types/src/components/texcoord2d.rs b/crates/store/re_types/src/components/texcoord2d.rs index 7600e6fa6dc4..0f38f062775e 100644 --- a/crates/store/re_types/src/components/texcoord2d.rs +++ b/crates/store/re_types/src/components/texcoord2d.rs @@ -83,17 +83,17 @@ impl std::ops::DerefMut for Texcoord2D { impl ::re_types_core::Loggable for Texcoord2D { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::Vec2D::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::Vec2D::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::Vec2D::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::Vec2D::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -101,22 +101,22 @@ impl ::re_types_core::Loggable for Texcoord2D { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::Vec2D::from_arrow_opt(arrow_data) + crate::datatypes::Vec2D::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } #[inline] - fn from_arrow(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> + fn from_arrow2(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> where Self: Sized, { - crate::datatypes::Vec2D::from_arrow(arrow_data).map(bytemuck::cast_vec) + crate::datatypes::Vec2D::from_arrow2(arrow_data).map(bytemuck::cast_vec) } } diff --git a/crates/store/re_types/src/components/text.rs b/crates/store/re_types/src/components/text.rs index 3bb4bb31401f..7fcf661cb70e 100644 --- a/crates/store/re_types/src/components/text.rs +++ b/crates/store/re_types/src/components/text.rs @@ -68,17 +68,17 @@ impl std::ops::DerefMut for Text { impl ::re_types_core::Loggable for Text { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::Utf8::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::Utf8::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::Utf8::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::Utf8::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -86,13 +86,13 @@ impl ::re_types_core::Loggable for Text { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::Utf8::from_arrow_opt(arrow_data) + crate::datatypes::Utf8::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } 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 0f7dd2fc5212..01613712b317 100644 --- a/crates/store/re_types/src/components/text_log_level.rs +++ b/crates/store/re_types/src/components/text_log_level.rs @@ -76,17 +76,17 @@ impl std::ops::DerefMut for TextLogLevel { impl ::re_types_core::Loggable for TextLogLevel { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::Utf8::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::Utf8::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::Utf8::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::Utf8::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -94,13 +94,13 @@ impl ::re_types_core::Loggable for TextLogLevel { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::Utf8::from_arrow_opt(arrow_data) + crate::datatypes::Utf8::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } diff --git a/crates/store/re_types/src/components/transform_mat3x3.rs b/crates/store/re_types/src/components/transform_mat3x3.rs index a81503f38655..fe4f2c19e69f 100644 --- a/crates/store/re_types/src/components/transform_mat3x3.rs +++ b/crates/store/re_types/src/components/transform_mat3x3.rs @@ -80,17 +80,17 @@ impl std::ops::DerefMut for TransformMat3x3 { impl ::re_types_core::Loggable for TransformMat3x3 { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::Mat3x3::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::Mat3x3::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::Mat3x3::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::Mat3x3::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -98,22 +98,22 @@ impl ::re_types_core::Loggable for TransformMat3x3 { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::Mat3x3::from_arrow_opt(arrow_data) + crate::datatypes::Mat3x3::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } #[inline] - fn from_arrow(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> + fn from_arrow2(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> where Self: Sized, { - crate::datatypes::Mat3x3::from_arrow(arrow_data).map(bytemuck::cast_vec) + crate::datatypes::Mat3x3::from_arrow2(arrow_data).map(bytemuck::cast_vec) } } diff --git a/crates/store/re_types/src/components/transform_relation.rs b/crates/store/re_types/src/components/transform_relation.rs index 57f31984b01c..99085cd29840 100644 --- a/crates/store/re_types/src/components/transform_relation.rs +++ b/crates/store/re_types/src/components/transform_relation.rs @@ -83,13 +83,13 @@ impl std::fmt::Display for TransformRelation { impl ::re_types_core::Loggable for TransformRelation { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::UInt8 } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -113,7 +113,7 @@ impl ::re_types_core::Loggable for TransformRelation { any_nones.then(|| somes.into()) }; PrimitiveArray::new( - Self::arrow_datatype(), + Self::arrow2_datatype(), data0.into_iter().map(|v| v.unwrap_or_default()).collect(), data0_bitmap, ) @@ -121,7 +121,7 @@ impl ::re_types_core::Loggable for TransformRelation { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -134,7 +134,7 @@ impl ::re_types_core::Loggable for TransformRelation { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -146,7 +146,7 @@ impl ::re_types_core::Loggable for TransformRelation { Some(2) => Ok(Some(Self::ChildFromParent)), None => Ok(None), Some(invalid) => Err(DeserializationError::missing_union_arm( - Self::arrow_datatype(), + Self::arrow2_datatype(), "", invalid as _, )), diff --git a/crates/store/re_types/src/components/translation3d.rs b/crates/store/re_types/src/components/translation3d.rs index d07c575983f0..42f7433fc57f 100644 --- a/crates/store/re_types/src/components/translation3d.rs +++ b/crates/store/re_types/src/components/translation3d.rs @@ -68,17 +68,17 @@ impl std::ops::DerefMut for Translation3D { impl ::re_types_core::Loggable for Translation3D { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::Vec3D::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::Vec3D::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::Vec3D::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::Vec3D::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -86,22 +86,22 @@ impl ::re_types_core::Loggable for Translation3D { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::Vec3D::from_arrow_opt(arrow_data) + crate::datatypes::Vec3D::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } #[inline] - fn from_arrow(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> + fn from_arrow2(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> where Self: Sized, { - crate::datatypes::Vec3D::from_arrow(arrow_data).map(bytemuck::cast_vec) + crate::datatypes::Vec3D::from_arrow2(arrow_data).map(bytemuck::cast_vec) } } diff --git a/crates/store/re_types/src/components/triangle_indices.rs b/crates/store/re_types/src/components/triangle_indices.rs index 9412a0a130fe..555f5a0dfa12 100644 --- a/crates/store/re_types/src/components/triangle_indices.rs +++ b/crates/store/re_types/src/components/triangle_indices.rs @@ -68,17 +68,17 @@ impl std::ops::DerefMut for TriangleIndices { impl ::re_types_core::Loggable for TriangleIndices { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::UVec3D::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::UVec3D::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::UVec3D::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::UVec3D::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -86,22 +86,22 @@ impl ::re_types_core::Loggable for TriangleIndices { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::UVec3D::from_arrow_opt(arrow_data) + crate::datatypes::UVec3D::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } #[inline] - fn from_arrow(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> + fn from_arrow2(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> where Self: Sized, { - crate::datatypes::UVec3D::from_arrow(arrow_data).map(bytemuck::cast_vec) + crate::datatypes::UVec3D::from_arrow2(arrow_data).map(bytemuck::cast_vec) } } diff --git a/crates/store/re_types/src/components/value_range.rs b/crates/store/re_types/src/components/value_range.rs index 7a7ed95828c1..af5633290b85 100644 --- a/crates/store/re_types/src/components/value_range.rs +++ b/crates/store/re_types/src/components/value_range.rs @@ -68,17 +68,17 @@ impl std::ops::DerefMut for ValueRange { impl ::re_types_core::Loggable for ValueRange { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::Range1D::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::Range1D::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::Range1D::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::Range1D::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -86,22 +86,22 @@ impl ::re_types_core::Loggable for ValueRange { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::Range1D::from_arrow_opt(arrow_data) + crate::datatypes::Range1D::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } #[inline] - fn from_arrow(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> + fn from_arrow2(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> where Self: Sized, { - crate::datatypes::Range1D::from_arrow(arrow_data).map(bytemuck::cast_vec) + crate::datatypes::Range1D::from_arrow2(arrow_data).map(bytemuck::cast_vec) } } diff --git a/crates/store/re_types/src/components/vector2d.rs b/crates/store/re_types/src/components/vector2d.rs index 33187fcdeb78..ab040b8a63cd 100644 --- a/crates/store/re_types/src/components/vector2d.rs +++ b/crates/store/re_types/src/components/vector2d.rs @@ -68,17 +68,17 @@ impl std::ops::DerefMut for Vector2D { impl ::re_types_core::Loggable for Vector2D { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::Vec2D::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::Vec2D::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::Vec2D::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::Vec2D::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -86,22 +86,22 @@ impl ::re_types_core::Loggable for Vector2D { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::Vec2D::from_arrow_opt(arrow_data) + crate::datatypes::Vec2D::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } #[inline] - fn from_arrow(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> + fn from_arrow2(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> where Self: Sized, { - crate::datatypes::Vec2D::from_arrow(arrow_data).map(bytemuck::cast_vec) + crate::datatypes::Vec2D::from_arrow2(arrow_data).map(bytemuck::cast_vec) } } diff --git a/crates/store/re_types/src/components/vector3d.rs b/crates/store/re_types/src/components/vector3d.rs index 26ac8e82edd0..a022b365d7af 100644 --- a/crates/store/re_types/src/components/vector3d.rs +++ b/crates/store/re_types/src/components/vector3d.rs @@ -68,17 +68,17 @@ impl std::ops::DerefMut for Vector3D { impl ::re_types_core::Loggable for Vector3D { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::Vec3D::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::Vec3D::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::Vec3D::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::Vec3D::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -86,22 +86,22 @@ impl ::re_types_core::Loggable for Vector3D { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::Vec3D::from_arrow_opt(arrow_data) + crate::datatypes::Vec3D::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } #[inline] - fn from_arrow(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> + fn from_arrow2(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> where Self: Sized, { - crate::datatypes::Vec3D::from_arrow(arrow_data).map(bytemuck::cast_vec) + crate::datatypes::Vec3D::from_arrow2(arrow_data).map(bytemuck::cast_vec) } } diff --git a/crates/store/re_types/src/components/video_timestamp.rs b/crates/store/re_types/src/components/video_timestamp.rs index 65d16d89293d..54a223baae48 100644 --- a/crates/store/re_types/src/components/video_timestamp.rs +++ b/crates/store/re_types/src/components/video_timestamp.rs @@ -68,17 +68,17 @@ impl std::ops::DerefMut for VideoTimestamp { impl ::re_types_core::Loggable for VideoTimestamp { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::VideoTimestamp::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::VideoTimestamp::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::VideoTimestamp::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::VideoTimestamp::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -86,22 +86,22 @@ impl ::re_types_core::Loggable for VideoTimestamp { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::VideoTimestamp::from_arrow_opt(arrow_data) + crate::datatypes::VideoTimestamp::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } #[inline] - fn from_arrow(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> + fn from_arrow2(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> where Self: Sized, { - crate::datatypes::VideoTimestamp::from_arrow(arrow_data) + crate::datatypes::VideoTimestamp::from_arrow2(arrow_data) .map(|v| v.into_iter().map(Self).collect()) } } diff --git a/crates/store/re_types/src/components/view_coordinates.rs b/crates/store/re_types/src/components/view_coordinates.rs index 422cda856412..42277e51927c 100644 --- a/crates/store/re_types/src/components/view_coordinates.rs +++ b/crates/store/re_types/src/components/view_coordinates.rs @@ -88,17 +88,17 @@ impl std::ops::DerefMut for ViewCoordinates { impl ::re_types_core::Loggable for ViewCoordinates { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::ViewCoordinates::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::ViewCoordinates::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::ViewCoordinates::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::ViewCoordinates::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -106,22 +106,22 @@ impl ::re_types_core::Loggable for ViewCoordinates { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::ViewCoordinates::from_arrow_opt(arrow_data) + crate::datatypes::ViewCoordinates::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } #[inline] - fn from_arrow(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> + fn from_arrow2(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> where Self: Sized, { - crate::datatypes::ViewCoordinates::from_arrow(arrow_data).map(bytemuck::cast_vec) + crate::datatypes::ViewCoordinates::from_arrow2(arrow_data).map(bytemuck::cast_vec) } } diff --git a/crates/store/re_types/src/datatypes/angle.rs b/crates/store/re_types/src/datatypes/angle.rs index 3a6a5d243089..5aaee33ee6a2 100644 --- a/crates/store/re_types/src/datatypes/angle.rs +++ b/crates/store/re_types/src/datatypes/angle.rs @@ -56,13 +56,13 @@ impl From for f32 { impl ::re_types_core::Loggable for Angle { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::Float32 } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -86,7 +86,7 @@ impl ::re_types_core::Loggable for Angle { any_nones.then(|| somes.into()) }; PrimitiveArray::new( - Self::arrow_datatype(), + Self::arrow2_datatype(), radians.into_iter().map(|v| v.unwrap_or_default()).collect(), radians_bitmap, ) @@ -94,7 +94,7 @@ impl ::re_types_core::Loggable for Angle { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -107,7 +107,7 @@ impl ::re_types_core::Loggable for Angle { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -122,7 +122,7 @@ impl ::re_types_core::Loggable for Angle { } #[inline] - fn from_arrow(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> + fn from_arrow2(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> where Self: Sized, { diff --git a/crates/store/re_types/src/datatypes/annotation_info.rs b/crates/store/re_types/src/datatypes/annotation_info.rs index 8a5c0936888b..c22fcd8e61cd 100644 --- a/crates/store/re_types/src/datatypes/annotation_info.rs +++ b/crates/store/re_types/src/datatypes/annotation_info.rs @@ -52,17 +52,17 @@ impl ::re_types_core::SizeBytes for AnnotationInfo { impl ::re_types_core::Loggable for AnnotationInfo { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::Struct(std::sync::Arc::new(vec![ Field::new("id", DataType::UInt16, false), - Field::new("label", ::arrow_datatype(), true), - Field::new("color", ::arrow_datatype(), true), + Field::new("label", ::arrow2_datatype(), true), + Field::new("color", ::arrow2_datatype(), true), ])) } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -85,7 +85,7 @@ impl ::re_types_core::Loggable for AnnotationInfo { any_nones.then(|| somes.into()) }; StructArray::new( - Self::arrow_datatype(), + Self::arrow2_datatype(), vec![ { let (somes, id): (Vec<_>, Vec<_>) = data @@ -174,7 +174,7 @@ impl ::re_types_core::Loggable for AnnotationInfo { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -188,7 +188,7 @@ impl ::re_types_core::Loggable for AnnotationInfo { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -206,7 +206,7 @@ impl ::re_types_core::Loggable for AnnotationInfo { let id = { if !arrays_by_name.contains_key("id") { return Err(DeserializationError::missing_struct_field( - Self::arrow_datatype(), + Self::arrow2_datatype(), "id", )) .with_context("rerun.datatypes.AnnotationInfo"); @@ -227,7 +227,7 @@ impl ::re_types_core::Loggable for AnnotationInfo { let label = { if !arrays_by_name.contains_key("label") { return Err(DeserializationError::missing_struct_field( - Self::arrow_datatype(), + Self::arrow2_datatype(), "label", )) .with_context("rerun.datatypes.AnnotationInfo"); @@ -282,7 +282,7 @@ impl ::re_types_core::Loggable for AnnotationInfo { let color = { if !arrays_by_name.contains_key("color") { return Err(DeserializationError::missing_struct_field( - Self::arrow_datatype(), + Self::arrow2_datatype(), "color", )) .with_context("rerun.datatypes.AnnotationInfo"); diff --git a/crates/store/re_types/src/datatypes/blob.rs b/crates/store/re_types/src/datatypes/blob.rs index dda608dd1e88..a096e9659f13 100644 --- a/crates/store/re_types/src/datatypes/blob.rs +++ b/crates/store/re_types/src/datatypes/blob.rs @@ -55,7 +55,7 @@ impl From for ::re_types_core::ArrowBuffer { impl ::re_types_core::Loggable for Blob { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::List(std::sync::Arc::new(Field::new( @@ -65,7 +65,7 @@ impl ::re_types_core::Loggable for Blob { ))) } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -105,7 +105,7 @@ impl ::re_types_core::Loggable for Blob { .into(); let data0_inner_bitmap: Option = None; ListArray::try_new( - Self::arrow_datatype(), + Self::arrow2_datatype(), offsets, PrimitiveArray::new(DataType::UInt8, data0_inner_data, data0_inner_bitmap) .boxed(), @@ -116,7 +116,7 @@ impl ::re_types_core::Loggable for Blob { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -130,7 +130,7 @@ impl ::re_types_core::Loggable for Blob { .as_any() .downcast_ref::>() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) diff --git a/crates/store/re_types/src/datatypes/channel_datatype.rs b/crates/store/re_types/src/datatypes/channel_datatype.rs index 4a4bff2a7c2a..1e954f350fb0 100644 --- a/crates/store/re_types/src/datatypes/channel_datatype.rs +++ b/crates/store/re_types/src/datatypes/channel_datatype.rs @@ -130,13 +130,13 @@ impl std::fmt::Display for ChannelDatatype { impl ::re_types_core::Loggable for ChannelDatatype { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::UInt8 } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -160,7 +160,7 @@ impl ::re_types_core::Loggable for ChannelDatatype { any_nones.then(|| somes.into()) }; PrimitiveArray::new( - Self::arrow_datatype(), + Self::arrow2_datatype(), data0.into_iter().map(|v| v.unwrap_or_default()).collect(), data0_bitmap, ) @@ -168,7 +168,7 @@ impl ::re_types_core::Loggable for ChannelDatatype { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -181,7 +181,7 @@ impl ::re_types_core::Loggable for ChannelDatatype { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -202,7 +202,7 @@ impl ::re_types_core::Loggable for ChannelDatatype { Some(35) => Ok(Some(Self::F64)), None => Ok(None), Some(invalid) => Err(DeserializationError::missing_union_arm( - Self::arrow_datatype(), + Self::arrow2_datatype(), "", invalid as _, )), diff --git a/crates/store/re_types/src/datatypes/class_description.rs b/crates/store/re_types/src/datatypes/class_description.rs index ab0c980cda64..cef0d66baec4 100644 --- a/crates/store/re_types/src/datatypes/class_description.rs +++ b/crates/store/re_types/src/datatypes/class_description.rs @@ -64,20 +64,20 @@ impl ::re_types_core::SizeBytes for ClassDescription { impl ::re_types_core::Loggable for ClassDescription { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::Struct(std::sync::Arc::new(vec![ Field::new( "info", - ::arrow_datatype(), + ::arrow2_datatype(), false, ), Field::new( "keypoint_annotations", DataType::List(std::sync::Arc::new(Field::new( "item", - ::arrow_datatype(), + ::arrow2_datatype(), false, ))), false, @@ -86,7 +86,7 @@ impl ::re_types_core::Loggable for ClassDescription { "keypoint_connections", DataType::List(std::sync::Arc::new(Field::new( "item", - ::arrow_datatype(), + ::arrow2_datatype(), false, ))), false, @@ -94,7 +94,7 @@ impl ::re_types_core::Loggable for ClassDescription { ])) } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -117,7 +117,7 @@ impl ::re_types_core::Loggable for ClassDescription { any_nones.then(|| somes.into()) }; StructArray::new( - Self::arrow_datatype(), + Self::arrow2_datatype(), vec![ { let (somes, info): (Vec<_>, Vec<_>) = data @@ -133,7 +133,7 @@ impl ::re_types_core::Loggable for ClassDescription { }; { _ = info_bitmap; - crate::datatypes::AnnotationInfo::to_arrow_opt(info)? + crate::datatypes::AnnotationInfo::to_arrow2_opt(info)? } }, { @@ -168,13 +168,13 @@ impl ::re_types_core::Loggable for ClassDescription { ListArray::try_new( DataType::List(std::sync::Arc::new(Field::new( "item", - ::arrow_datatype(), + ::arrow2_datatype(), false, ))), offsets, { _ = keypoint_annotations_inner_bitmap; - crate::datatypes::AnnotationInfo::to_arrow_opt( + crate::datatypes::AnnotationInfo::to_arrow2_opt( keypoint_annotations_inner_data.into_iter().map(Some), )? }, @@ -215,13 +215,13 @@ impl ::re_types_core::Loggable for ClassDescription { ListArray::try_new( DataType::List(std::sync::Arc::new(Field::new( "item", - ::arrow_datatype(), + ::arrow2_datatype(), false, ))), offsets, { _ = keypoint_connections_inner_bitmap; - crate::datatypes::KeypointPair::to_arrow_opt( + crate::datatypes::KeypointPair::to_arrow2_opt( keypoint_connections_inner_data.into_iter().map(Some), )? }, @@ -237,7 +237,7 @@ impl ::re_types_core::Loggable for ClassDescription { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -251,7 +251,7 @@ impl ::re_types_core::Loggable for ClassDescription { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -269,20 +269,20 @@ impl ::re_types_core::Loggable for ClassDescription { let info = { if !arrays_by_name.contains_key("info") { return Err(DeserializationError::missing_struct_field( - Self::arrow_datatype(), + Self::arrow2_datatype(), "info", )) .with_context("rerun.datatypes.ClassDescription"); } let arrow_data = &**arrays_by_name["info"]; - crate::datatypes::AnnotationInfo::from_arrow_opt(arrow_data) + crate::datatypes::AnnotationInfo::from_arrow2_opt(arrow_data) .with_context("rerun.datatypes.ClassDescription#info")? .into_iter() }; let keypoint_annotations = { if !arrays_by_name.contains_key("keypoint_annotations") { return Err(DeserializationError::missing_struct_field( - Self::arrow_datatype(), + Self::arrow2_datatype(), "keypoint_annotations", )) .with_context("rerun.datatypes.ClassDescription"); @@ -295,7 +295,7 @@ impl ::re_types_core::Loggable for ClassDescription { .ok_or_else(|| { let expected = DataType::List(std::sync::Arc::new(Field::new( "item", - ::arrow_datatype(), + ::arrow2_datatype(), false, ))); let actual = arrow_data.data_type().clone(); @@ -309,7 +309,7 @@ impl ::re_types_core::Loggable for ClassDescription { } else { let arrow_data_inner = { let arrow_data_inner = &**arrow_data.values(); - crate::datatypes::AnnotationInfo::from_arrow_opt(arrow_data_inner) + crate::datatypes::AnnotationInfo::from_arrow2_opt(arrow_data_inner) .with_context( "rerun.datatypes.ClassDescription#keypoint_annotations", )? @@ -352,7 +352,7 @@ impl ::re_types_core::Loggable for ClassDescription { let keypoint_connections = { if !arrays_by_name.contains_key("keypoint_connections") { return Err(DeserializationError::missing_struct_field( - Self::arrow_datatype(), + Self::arrow2_datatype(), "keypoint_connections", )) .with_context("rerun.datatypes.ClassDescription"); @@ -365,7 +365,7 @@ impl ::re_types_core::Loggable for ClassDescription { .ok_or_else(|| { let expected = DataType::List(std::sync::Arc::new(Field::new( "item", - ::arrow_datatype(), + ::arrow2_datatype(), false, ))); let actual = arrow_data.data_type().clone(); @@ -379,7 +379,7 @@ impl ::re_types_core::Loggable for ClassDescription { } else { let arrow_data_inner = { let arrow_data_inner = &**arrow_data.values(); - crate::datatypes::KeypointPair::from_arrow_opt(arrow_data_inner) + crate::datatypes::KeypointPair::from_arrow2_opt(arrow_data_inner) .with_context( "rerun.datatypes.ClassDescription#keypoint_connections", )? 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 bffd52d956d0..cbef4b8addb8 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 @@ -46,24 +46,24 @@ impl ::re_types_core::SizeBytes for ClassDescriptionMapElem { impl ::re_types_core::Loggable for ClassDescriptionMapElem { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::Struct(std::sync::Arc::new(vec![ Field::new( "class_id", - ::arrow_datatype(), + ::arrow2_datatype(), false, ), Field::new( "class_description", - ::arrow_datatype(), + ::arrow2_datatype(), false, ), ])) } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -86,7 +86,7 @@ impl ::re_types_core::Loggable for ClassDescriptionMapElem { any_nones.then(|| somes.into()) }; StructArray::new( - Self::arrow_datatype(), + Self::arrow2_datatype(), vec![ { let (somes, class_id): (Vec<_>, Vec<_>) = data @@ -125,7 +125,7 @@ impl ::re_types_core::Loggable for ClassDescriptionMapElem { }; { _ = class_description_bitmap; - crate::datatypes::ClassDescription::to_arrow_opt(class_description)? + crate::datatypes::ClassDescription::to_arrow2_opt(class_description)? } }, ], @@ -135,7 +135,7 @@ impl ::re_types_core::Loggable for ClassDescriptionMapElem { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -149,7 +149,7 @@ impl ::re_types_core::Loggable for ClassDescriptionMapElem { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -167,7 +167,7 @@ impl ::re_types_core::Loggable for ClassDescriptionMapElem { let class_id = { if !arrays_by_name.contains_key("class_id") { return Err(DeserializationError::missing_struct_field( - Self::arrow_datatype(), + Self::arrow2_datatype(), "class_id", )) .with_context("rerun.datatypes.ClassDescriptionMapElem"); @@ -189,13 +189,13 @@ impl ::re_types_core::Loggable for ClassDescriptionMapElem { let class_description = { if !arrays_by_name.contains_key("class_description") { return Err(DeserializationError::missing_struct_field( - Self::arrow_datatype(), + Self::arrow2_datatype(), "class_description", )) .with_context("rerun.datatypes.ClassDescriptionMapElem"); } let arrow_data = &**arrays_by_name["class_description"]; - crate::datatypes::ClassDescription::from_arrow_opt(arrow_data) + crate::datatypes::ClassDescription::from_arrow2_opt(arrow_data) .with_context("rerun.datatypes.ClassDescriptionMapElem#class_description")? .into_iter() }; diff --git a/crates/store/re_types/src/datatypes/class_id.rs b/crates/store/re_types/src/datatypes/class_id.rs index 62c6eba85e21..94439d6a92de 100644 --- a/crates/store/re_types/src/datatypes/class_id.rs +++ b/crates/store/re_types/src/datatypes/class_id.rs @@ -68,13 +68,13 @@ impl From for u16 { impl ::re_types_core::Loggable for ClassId { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::UInt16 } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -98,7 +98,7 @@ impl ::re_types_core::Loggable for ClassId { any_nones.then(|| somes.into()) }; PrimitiveArray::new( - Self::arrow_datatype(), + Self::arrow2_datatype(), data0.into_iter().map(|v| v.unwrap_or_default()).collect(), data0_bitmap, ) @@ -106,7 +106,7 @@ impl ::re_types_core::Loggable for ClassId { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -119,7 +119,7 @@ impl ::re_types_core::Loggable for ClassId { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -134,7 +134,7 @@ impl ::re_types_core::Loggable for ClassId { } #[inline] - fn from_arrow(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> + fn from_arrow2(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> where Self: Sized, { diff --git a/crates/store/re_types/src/datatypes/color_model.rs b/crates/store/re_types/src/datatypes/color_model.rs index a9dd2aaa1ff9..108d7b94c158 100644 --- a/crates/store/re_types/src/datatypes/color_model.rs +++ b/crates/store/re_types/src/datatypes/color_model.rs @@ -92,13 +92,13 @@ impl std::fmt::Display for ColorModel { impl ::re_types_core::Loggable for ColorModel { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::UInt8 } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -122,7 +122,7 @@ impl ::re_types_core::Loggable for ColorModel { any_nones.then(|| somes.into()) }; PrimitiveArray::new( - Self::arrow_datatype(), + Self::arrow2_datatype(), data0.into_iter().map(|v| v.unwrap_or_default()).collect(), data0_bitmap, ) @@ -130,7 +130,7 @@ impl ::re_types_core::Loggable for ColorModel { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -143,7 +143,7 @@ impl ::re_types_core::Loggable for ColorModel { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -158,7 +158,7 @@ impl ::re_types_core::Loggable for ColorModel { Some(5) => Ok(Some(Self::BGRA)), None => Ok(None), Some(invalid) => Err(DeserializationError::missing_union_arm( - Self::arrow_datatype(), + Self::arrow2_datatype(), "", invalid as _, )), diff --git a/crates/store/re_types/src/datatypes/dvec2d.rs b/crates/store/re_types/src/datatypes/dvec2d.rs index 88feeaa89eef..e71b04b8c598 100644 --- a/crates/store/re_types/src/datatypes/dvec2d.rs +++ b/crates/store/re_types/src/datatypes/dvec2d.rs @@ -53,7 +53,7 @@ impl From for [f64; 2usize] { impl ::re_types_core::Loggable for DVec2D { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::FixedSizeList( @@ -62,7 +62,7 @@ impl ::re_types_core::Loggable for DVec2D { ) } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -106,7 +106,7 @@ impl ::re_types_core::Loggable for DVec2D { .into() }); FixedSizeListArray::new( - Self::arrow_datatype(), + Self::arrow2_datatype(), PrimitiveArray::new( DataType::Float64, data0_inner_data.into_iter().collect(), @@ -120,7 +120,7 @@ impl ::re_types_core::Loggable for DVec2D { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -134,7 +134,7 @@ impl ::re_types_core::Loggable for DVec2D { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -196,7 +196,7 @@ impl ::re_types_core::Loggable for DVec2D { } #[inline] - fn from_arrow(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> + fn from_arrow2(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> where Self: Sized, { diff --git a/crates/store/re_types/src/datatypes/image_format.rs b/crates/store/re_types/src/datatypes/image_format.rs index fb7c7da0a036..c0e797e81234 100644 --- a/crates/store/re_types/src/datatypes/image_format.rs +++ b/crates/store/re_types/src/datatypes/image_format.rs @@ -67,7 +67,7 @@ impl ::re_types_core::SizeBytes for ImageFormat { impl ::re_types_core::Loggable for ImageFormat { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::Struct(std::sync::Arc::new(vec![ @@ -75,23 +75,23 @@ impl ::re_types_core::Loggable for ImageFormat { Field::new("height", DataType::UInt32, false), Field::new( "pixel_format", - ::arrow_datatype(), + ::arrow2_datatype(), true, ), Field::new( "color_model", - ::arrow_datatype(), + ::arrow2_datatype(), true, ), Field::new( "channel_datatype", - ::arrow_datatype(), + ::arrow2_datatype(), true, ), ])) } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -114,7 +114,7 @@ impl ::re_types_core::Loggable for ImageFormat { any_nones.then(|| somes.into()) }; StructArray::new( - Self::arrow_datatype(), + Self::arrow2_datatype(), vec![ { let (somes, width): (Vec<_>, Vec<_>) = data @@ -171,7 +171,7 @@ impl ::re_types_core::Loggable for ImageFormat { }; { _ = pixel_format_bitmap; - crate::datatypes::PixelFormat::to_arrow_opt(pixel_format)? + crate::datatypes::PixelFormat::to_arrow2_opt(pixel_format)? } }, { @@ -191,7 +191,7 @@ impl ::re_types_core::Loggable for ImageFormat { }; { _ = color_model_bitmap; - crate::datatypes::ColorModel::to_arrow_opt(color_model)? + crate::datatypes::ColorModel::to_arrow2_opt(color_model)? } }, { @@ -211,7 +211,7 @@ impl ::re_types_core::Loggable for ImageFormat { }; { _ = channel_datatype_bitmap; - crate::datatypes::ChannelDatatype::to_arrow_opt(channel_datatype)? + crate::datatypes::ChannelDatatype::to_arrow2_opt(channel_datatype)? } }, ], @@ -221,7 +221,7 @@ impl ::re_types_core::Loggable for ImageFormat { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -235,7 +235,7 @@ impl ::re_types_core::Loggable for ImageFormat { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -253,7 +253,7 @@ impl ::re_types_core::Loggable for ImageFormat { let width = { if !arrays_by_name.contains_key("width") { return Err(DeserializationError::missing_struct_field( - Self::arrow_datatype(), + Self::arrow2_datatype(), "width", )) .with_context("rerun.datatypes.ImageFormat"); @@ -274,7 +274,7 @@ impl ::re_types_core::Loggable for ImageFormat { let height = { if !arrays_by_name.contains_key("height") { return Err(DeserializationError::missing_struct_field( - Self::arrow_datatype(), + Self::arrow2_datatype(), "height", )) .with_context("rerun.datatypes.ImageFormat"); @@ -295,39 +295,39 @@ impl ::re_types_core::Loggable for ImageFormat { let pixel_format = { if !arrays_by_name.contains_key("pixel_format") { return Err(DeserializationError::missing_struct_field( - Self::arrow_datatype(), + Self::arrow2_datatype(), "pixel_format", )) .with_context("rerun.datatypes.ImageFormat"); } let arrow_data = &**arrays_by_name["pixel_format"]; - crate::datatypes::PixelFormat::from_arrow_opt(arrow_data) + crate::datatypes::PixelFormat::from_arrow2_opt(arrow_data) .with_context("rerun.datatypes.ImageFormat#pixel_format")? .into_iter() }; let color_model = { if !arrays_by_name.contains_key("color_model") { return Err(DeserializationError::missing_struct_field( - Self::arrow_datatype(), + Self::arrow2_datatype(), "color_model", )) .with_context("rerun.datatypes.ImageFormat"); } let arrow_data = &**arrays_by_name["color_model"]; - crate::datatypes::ColorModel::from_arrow_opt(arrow_data) + crate::datatypes::ColorModel::from_arrow2_opt(arrow_data) .with_context("rerun.datatypes.ImageFormat#color_model")? .into_iter() }; let channel_datatype = { if !arrays_by_name.contains_key("channel_datatype") { return Err(DeserializationError::missing_struct_field( - Self::arrow_datatype(), + Self::arrow2_datatype(), "channel_datatype", )) .with_context("rerun.datatypes.ImageFormat"); } let arrow_data = &**arrays_by_name["channel_datatype"]; - crate::datatypes::ChannelDatatype::from_arrow_opt(arrow_data) + crate::datatypes::ChannelDatatype::from_arrow2_opt(arrow_data) .with_context("rerun.datatypes.ImageFormat#channel_datatype")? .into_iter() }; diff --git a/crates/store/re_types/src/datatypes/keypoint_id.rs b/crates/store/re_types/src/datatypes/keypoint_id.rs index 021cddb15a3f..aad03ec46a9d 100644 --- a/crates/store/re_types/src/datatypes/keypoint_id.rs +++ b/crates/store/re_types/src/datatypes/keypoint_id.rs @@ -70,13 +70,13 @@ impl From for u16 { impl ::re_types_core::Loggable for KeypointId { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::UInt16 } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -100,7 +100,7 @@ impl ::re_types_core::Loggable for KeypointId { any_nones.then(|| somes.into()) }; PrimitiveArray::new( - Self::arrow_datatype(), + Self::arrow2_datatype(), data0.into_iter().map(|v| v.unwrap_or_default()).collect(), data0_bitmap, ) @@ -108,7 +108,7 @@ impl ::re_types_core::Loggable for KeypointId { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -121,7 +121,7 @@ impl ::re_types_core::Loggable for KeypointId { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -136,7 +136,7 @@ impl ::re_types_core::Loggable for KeypointId { } #[inline] - fn from_arrow(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> + fn from_arrow2(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> where Self: Sized, { diff --git a/crates/store/re_types/src/datatypes/keypoint_pair.rs b/crates/store/re_types/src/datatypes/keypoint_pair.rs index 53e36fefaf20..3804c96c2a8e 100644 --- a/crates/store/re_types/src/datatypes/keypoint_pair.rs +++ b/crates/store/re_types/src/datatypes/keypoint_pair.rs @@ -44,24 +44,24 @@ impl ::re_types_core::SizeBytes for KeypointPair { impl ::re_types_core::Loggable for KeypointPair { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::Struct(std::sync::Arc::new(vec![ Field::new( "keypoint0", - ::arrow_datatype(), + ::arrow2_datatype(), false, ), Field::new( "keypoint1", - ::arrow_datatype(), + ::arrow2_datatype(), false, ), ])) } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -84,7 +84,7 @@ impl ::re_types_core::Loggable for KeypointPair { any_nones.then(|| somes.into()) }; StructArray::new( - Self::arrow_datatype(), + Self::arrow2_datatype(), vec![ { let (somes, keypoint0): (Vec<_>, Vec<_>) = data @@ -137,7 +137,7 @@ impl ::re_types_core::Loggable for KeypointPair { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -151,7 +151,7 @@ impl ::re_types_core::Loggable for KeypointPair { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -169,7 +169,7 @@ impl ::re_types_core::Loggable for KeypointPair { let keypoint0 = { if !arrays_by_name.contains_key("keypoint0") { return Err(DeserializationError::missing_struct_field( - Self::arrow_datatype(), + Self::arrow2_datatype(), "keypoint0", )) .with_context("rerun.datatypes.KeypointPair"); @@ -191,7 +191,7 @@ impl ::re_types_core::Loggable for KeypointPair { let keypoint1 = { if !arrays_by_name.contains_key("keypoint1") { return Err(DeserializationError::missing_struct_field( - Self::arrow_datatype(), + Self::arrow2_datatype(), "keypoint1", )) .with_context("rerun.datatypes.KeypointPair"); diff --git a/crates/store/re_types/src/datatypes/mat3x3.rs b/crates/store/re_types/src/datatypes/mat3x3.rs index 0d1fba45f192..a3d1fb634979 100644 --- a/crates/store/re_types/src/datatypes/mat3x3.rs +++ b/crates/store/re_types/src/datatypes/mat3x3.rs @@ -65,7 +65,7 @@ impl From for [f32; 9usize] { impl ::re_types_core::Loggable for Mat3x3 { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::FixedSizeList( @@ -74,7 +74,7 @@ impl ::re_types_core::Loggable for Mat3x3 { ) } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -118,7 +118,7 @@ impl ::re_types_core::Loggable for Mat3x3 { .into() }); FixedSizeListArray::new( - Self::arrow_datatype(), + Self::arrow2_datatype(), PrimitiveArray::new( DataType::Float32, data0_inner_data.into_iter().collect(), @@ -132,7 +132,7 @@ impl ::re_types_core::Loggable for Mat3x3 { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -146,7 +146,7 @@ impl ::re_types_core::Loggable for Mat3x3 { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -208,7 +208,7 @@ impl ::re_types_core::Loggable for Mat3x3 { } #[inline] - fn from_arrow(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> + fn from_arrow2(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> where Self: Sized, { diff --git a/crates/store/re_types/src/datatypes/mat4x4.rs b/crates/store/re_types/src/datatypes/mat4x4.rs index 495a22530749..350ce32fe103 100644 --- a/crates/store/re_types/src/datatypes/mat4x4.rs +++ b/crates/store/re_types/src/datatypes/mat4x4.rs @@ -65,7 +65,7 @@ impl From for [f32; 16usize] { impl ::re_types_core::Loggable for Mat4x4 { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::FixedSizeList( @@ -74,7 +74,7 @@ impl ::re_types_core::Loggable for Mat4x4 { ) } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -118,7 +118,7 @@ impl ::re_types_core::Loggable for Mat4x4 { .into() }); FixedSizeListArray::new( - Self::arrow_datatype(), + Self::arrow2_datatype(), PrimitiveArray::new( DataType::Float32, data0_inner_data.into_iter().collect(), @@ -132,7 +132,7 @@ impl ::re_types_core::Loggable for Mat4x4 { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -146,7 +146,7 @@ impl ::re_types_core::Loggable for Mat4x4 { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -208,7 +208,7 @@ impl ::re_types_core::Loggable for Mat4x4 { } #[inline] - fn from_arrow(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> + fn from_arrow2(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> where Self: Sized, { diff --git a/crates/store/re_types/src/datatypes/pixel_format.rs b/crates/store/re_types/src/datatypes/pixel_format.rs index 7ae785bfd107..c79a03bd7bb1 100644 --- a/crates/store/re_types/src/datatypes/pixel_format.rs +++ b/crates/store/re_types/src/datatypes/pixel_format.rs @@ -212,13 +212,13 @@ impl std::fmt::Display for PixelFormat { impl ::re_types_core::Loggable for PixelFormat { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::UInt8 } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -242,7 +242,7 @@ impl ::re_types_core::Loggable for PixelFormat { any_nones.then(|| somes.into()) }; PrimitiveArray::new( - Self::arrow_datatype(), + Self::arrow2_datatype(), data0.into_iter().map(|v| v.unwrap_or_default()).collect(), data0_bitmap, ) @@ -250,7 +250,7 @@ impl ::re_types_core::Loggable for PixelFormat { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -263,7 +263,7 @@ impl ::re_types_core::Loggable for PixelFormat { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -283,7 +283,7 @@ impl ::re_types_core::Loggable for PixelFormat { Some(50) => Ok(Some(Self::Y_U_V16_FullRange)), None => Ok(None), Some(invalid) => Err(DeserializationError::missing_union_arm( - Self::arrow_datatype(), + Self::arrow2_datatype(), "", invalid as _, )), diff --git a/crates/store/re_types/src/datatypes/quaternion.rs b/crates/store/re_types/src/datatypes/quaternion.rs index f2dc9dfbd4da..11fee5d0a2f4 100644 --- a/crates/store/re_types/src/datatypes/quaternion.rs +++ b/crates/store/re_types/src/datatypes/quaternion.rs @@ -56,7 +56,7 @@ impl From for [f32; 4usize] { impl ::re_types_core::Loggable for Quaternion { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::FixedSizeList( @@ -65,7 +65,7 @@ impl ::re_types_core::Loggable for Quaternion { ) } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -109,7 +109,7 @@ impl ::re_types_core::Loggable for Quaternion { .into() }); FixedSizeListArray::new( - Self::arrow_datatype(), + Self::arrow2_datatype(), PrimitiveArray::new( DataType::Float32, data0_inner_data.into_iter().collect(), @@ -123,7 +123,7 @@ impl ::re_types_core::Loggable for Quaternion { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -137,7 +137,7 @@ impl ::re_types_core::Loggable for Quaternion { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -199,7 +199,7 @@ impl ::re_types_core::Loggable for Quaternion { } #[inline] - fn from_arrow(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> + fn from_arrow2(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> where Self: Sized, { diff --git a/crates/store/re_types/src/datatypes/range1d.rs b/crates/store/re_types/src/datatypes/range1d.rs index 7fe8284a96f3..8fbeaccbbea8 100644 --- a/crates/store/re_types/src/datatypes/range1d.rs +++ b/crates/store/re_types/src/datatypes/range1d.rs @@ -53,7 +53,7 @@ impl From for [f64; 2usize] { impl ::re_types_core::Loggable for Range1D { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::FixedSizeList( @@ -62,7 +62,7 @@ impl ::re_types_core::Loggable for Range1D { ) } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -106,7 +106,7 @@ impl ::re_types_core::Loggable for Range1D { .into() }); FixedSizeListArray::new( - Self::arrow_datatype(), + Self::arrow2_datatype(), PrimitiveArray::new( DataType::Float64, data0_inner_data.into_iter().collect(), @@ -120,7 +120,7 @@ impl ::re_types_core::Loggable for Range1D { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -134,7 +134,7 @@ impl ::re_types_core::Loggable for Range1D { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -196,7 +196,7 @@ impl ::re_types_core::Loggable for Range1D { } #[inline] - fn from_arrow(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> + fn from_arrow2(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> where Self: Sized, { diff --git a/crates/store/re_types/src/datatypes/range2d.rs b/crates/store/re_types/src/datatypes/range2d.rs index 6ff2b5c2a794..8be89ea107d0 100644 --- a/crates/store/re_types/src/datatypes/range2d.rs +++ b/crates/store/re_types/src/datatypes/range2d.rs @@ -45,24 +45,24 @@ impl ::re_types_core::SizeBytes for Range2D { impl ::re_types_core::Loggable for Range2D { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::Struct(std::sync::Arc::new(vec![ Field::new( "x_range", - ::arrow_datatype(), + ::arrow2_datatype(), false, ), Field::new( "y_range", - ::arrow_datatype(), + ::arrow2_datatype(), false, ), ])) } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -85,7 +85,7 @@ impl ::re_types_core::Loggable for Range2D { any_nones.then(|| somes.into()) }; StructArray::new( - Self::arrow_datatype(), + Self::arrow2_datatype(), vec![ { let (somes, x_range): (Vec<_>, Vec<_>) = data @@ -190,7 +190,7 @@ impl ::re_types_core::Loggable for Range2D { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -204,7 +204,7 @@ impl ::re_types_core::Loggable for Range2D { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -222,7 +222,7 @@ impl ::re_types_core::Loggable for Range2D { let x_range = { if !arrays_by_name.contains_key("x_range") { return Err(DeserializationError::missing_struct_field( - Self::arrow_datatype(), + Self::arrow2_datatype(), "x_range", )) .with_context("rerun.datatypes.Range2D"); @@ -303,7 +303,7 @@ impl ::re_types_core::Loggable for Range2D { let y_range = { if !arrays_by_name.contains_key("y_range") { return Err(DeserializationError::missing_struct_field( - Self::arrow_datatype(), + Self::arrow2_datatype(), "y_range", )) .with_context("rerun.datatypes.Range2D"); diff --git a/crates/store/re_types/src/datatypes/rgba32.rs b/crates/store/re_types/src/datatypes/rgba32.rs index 334794cd573c..52cd92e38f15 100644 --- a/crates/store/re_types/src/datatypes/rgba32.rs +++ b/crates/store/re_types/src/datatypes/rgba32.rs @@ -58,13 +58,13 @@ impl From for u32 { impl ::re_types_core::Loggable for Rgba32 { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::UInt32 } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -88,7 +88,7 @@ impl ::re_types_core::Loggable for Rgba32 { any_nones.then(|| somes.into()) }; PrimitiveArray::new( - Self::arrow_datatype(), + Self::arrow2_datatype(), data0.into_iter().map(|v| v.unwrap_or_default()).collect(), data0_bitmap, ) @@ -96,7 +96,7 @@ impl ::re_types_core::Loggable for Rgba32 { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -109,7 +109,7 @@ impl ::re_types_core::Loggable for Rgba32 { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -124,7 +124,7 @@ impl ::re_types_core::Loggable for Rgba32 { } #[inline] - fn from_arrow(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> + fn from_arrow2(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> where Self: Sized, { 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 9a0bf318414c..408bd47cec27 100644 --- a/crates/store/re_types/src/datatypes/rotation_axis_angle.rs +++ b/crates/store/re_types/src/datatypes/rotation_axis_angle.rs @@ -48,16 +48,16 @@ impl ::re_types_core::SizeBytes for RotationAxisAngle { impl ::re_types_core::Loggable for RotationAxisAngle { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::Struct(std::sync::Arc::new(vec![ - Field::new("axis", ::arrow_datatype(), false), - Field::new("angle", ::arrow_datatype(), false), + Field::new("axis", ::arrow2_datatype(), false), + Field::new("angle", ::arrow2_datatype(), false), ])) } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -80,7 +80,7 @@ impl ::re_types_core::Loggable for RotationAxisAngle { any_nones.then(|| somes.into()) }; StructArray::new( - Self::arrow_datatype(), + Self::arrow2_datatype(), vec![ { let (somes, axis): (Vec<_>, Vec<_>) = data @@ -159,7 +159,7 @@ impl ::re_types_core::Loggable for RotationAxisAngle { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -173,7 +173,7 @@ impl ::re_types_core::Loggable for RotationAxisAngle { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -191,7 +191,7 @@ impl ::re_types_core::Loggable for RotationAxisAngle { let axis = { if !arrays_by_name.contains_key("axis") { return Err(DeserializationError::missing_struct_field( - Self::arrow_datatype(), + Self::arrow2_datatype(), "axis", )) .with_context("rerun.datatypes.RotationAxisAngle"); @@ -271,7 +271,7 @@ impl ::re_types_core::Loggable for RotationAxisAngle { let angle = { if !arrays_by_name.contains_key("angle") { return Err(DeserializationError::missing_struct_field( - Self::arrow_datatype(), + Self::arrow2_datatype(), "angle", )) .with_context("rerun.datatypes.RotationAxisAngle"); diff --git a/crates/store/re_types/src/datatypes/tensor_buffer.rs b/crates/store/re_types/src/datatypes/tensor_buffer.rs index 217d0e0216a3..ac2a9ea6a8d2 100644 --- a/crates/store/re_types/src/datatypes/tensor_buffer.rs +++ b/crates/store/re_types/src/datatypes/tensor_buffer.rs @@ -96,7 +96,7 @@ impl ::re_types_core::SizeBytes for TensorBuffer { impl ::re_types_core::Loggable for TensorBuffer { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::Union( @@ -209,7 +209,7 @@ impl ::re_types_core::Loggable for TensorBuffer { ) } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -734,11 +734,11 @@ impl ::re_types_core::Loggable for TensorBuffer { }) .collect() }); - UnionArray::new(Self::arrow_datatype(), types, fields, offsets).boxed() + UnionArray::new(Self::arrow2_datatype(), types, fields, offsets).boxed() }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -752,7 +752,7 @@ impl ::re_types_core::Loggable for TensorBuffer { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -765,7 +765,7 @@ impl ::re_types_core::Loggable for TensorBuffer { let arrow_data_offsets = arrow_data .offsets() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -1701,7 +1701,7 @@ impl ::re_types_core::Loggable for TensorBuffer { }), _ => { return Err(DeserializationError::missing_union_arm( - Self::arrow_datatype(), + Self::arrow2_datatype(), "", *typ as _, )); diff --git a/crates/store/re_types/src/datatypes/tensor_data.rs b/crates/store/re_types/src/datatypes/tensor_data.rs index 54b901c239d8..d499b8d09cc3 100644 --- a/crates/store/re_types/src/datatypes/tensor_data.rs +++ b/crates/store/re_types/src/datatypes/tensor_data.rs @@ -52,7 +52,7 @@ impl ::re_types_core::SizeBytes for TensorData { impl ::re_types_core::Loggable for TensorData { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::Struct(std::sync::Arc::new(vec![ @@ -60,20 +60,20 @@ impl ::re_types_core::Loggable for TensorData { "shape", DataType::List(std::sync::Arc::new(Field::new( "item", - ::arrow_datatype(), + ::arrow2_datatype(), false, ))), false, ), Field::new( "buffer", - ::arrow_datatype(), + ::arrow2_datatype(), false, ), ])) } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -96,7 +96,7 @@ impl ::re_types_core::Loggable for TensorData { any_nones.then(|| somes.into()) }; StructArray::new( - Self::arrow_datatype(), + Self::arrow2_datatype(), vec![ { let (somes, shape): (Vec<_>, Vec<_>) = data @@ -124,13 +124,13 @@ impl ::re_types_core::Loggable for TensorData { ListArray::try_new( DataType::List(std::sync::Arc::new(Field::new( "item", - ::arrow_datatype(), + ::arrow2_datatype(), false, ))), offsets, { _ = shape_inner_bitmap; - crate::datatypes::TensorDimension::to_arrow_opt( + crate::datatypes::TensorDimension::to_arrow2_opt( shape_inner_data.into_iter().map(Some), )? }, @@ -153,7 +153,7 @@ impl ::re_types_core::Loggable for TensorData { }; { _ = buffer_bitmap; - crate::datatypes::TensorBuffer::to_arrow_opt(buffer)? + crate::datatypes::TensorBuffer::to_arrow2_opt(buffer)? } }, ], @@ -163,7 +163,7 @@ impl ::re_types_core::Loggable for TensorData { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -177,7 +177,7 @@ impl ::re_types_core::Loggable for TensorData { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -195,7 +195,7 @@ impl ::re_types_core::Loggable for TensorData { let shape = { if !arrays_by_name.contains_key("shape") { return Err(DeserializationError::missing_struct_field( - Self::arrow_datatype(), + Self::arrow2_datatype(), "shape", )) .with_context("rerun.datatypes.TensorData"); @@ -208,7 +208,7 @@ impl ::re_types_core::Loggable for TensorData { .ok_or_else(|| { let expected = DataType::List(std::sync::Arc::new(Field::new( "item", - ::arrow_datatype(), + ::arrow2_datatype(), false, ))); let actual = arrow_data.data_type().clone(); @@ -220,7 +220,7 @@ impl ::re_types_core::Loggable for TensorData { } else { let arrow_data_inner = { let arrow_data_inner = &**arrow_data.values(); - crate::datatypes::TensorDimension::from_arrow_opt(arrow_data_inner) + crate::datatypes::TensorDimension::from_arrow2_opt(arrow_data_inner) .with_context("rerun.datatypes.TensorData#shape")? .into_iter() .collect::>() @@ -261,13 +261,13 @@ impl ::re_types_core::Loggable for TensorData { let buffer = { if !arrays_by_name.contains_key("buffer") { return Err(DeserializationError::missing_struct_field( - Self::arrow_datatype(), + Self::arrow2_datatype(), "buffer", )) .with_context("rerun.datatypes.TensorData"); } let arrow_data = &**arrays_by_name["buffer"]; - crate::datatypes::TensorBuffer::from_arrow_opt(arrow_data) + crate::datatypes::TensorBuffer::from_arrow2_opt(arrow_data) .with_context("rerun.datatypes.TensorData#buffer")? .into_iter() }; diff --git a/crates/store/re_types/src/datatypes/tensor_dimension.rs b/crates/store/re_types/src/datatypes/tensor_dimension.rs index 392fac41b454..318c039f3ee5 100644 --- a/crates/store/re_types/src/datatypes/tensor_dimension.rs +++ b/crates/store/re_types/src/datatypes/tensor_dimension.rs @@ -44,7 +44,7 @@ impl ::re_types_core::SizeBytes for TensorDimension { impl ::re_types_core::Loggable for TensorDimension { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::Struct(std::sync::Arc::new(vec![ @@ -53,7 +53,7 @@ impl ::re_types_core::Loggable for TensorDimension { ])) } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -76,7 +76,7 @@ impl ::re_types_core::Loggable for TensorDimension { any_nones.then(|| somes.into()) }; StructArray::new( - Self::arrow_datatype(), + Self::arrow2_datatype(), vec![ { let (somes, size): (Vec<_>, Vec<_>) = data @@ -137,7 +137,7 @@ impl ::re_types_core::Loggable for TensorDimension { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -151,7 +151,7 @@ impl ::re_types_core::Loggable for TensorDimension { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -169,7 +169,7 @@ impl ::re_types_core::Loggable for TensorDimension { let size = { if !arrays_by_name.contains_key("size") { return Err(DeserializationError::missing_struct_field( - Self::arrow_datatype(), + Self::arrow2_datatype(), "size", )) .with_context("rerun.datatypes.TensorDimension"); @@ -190,7 +190,7 @@ impl ::re_types_core::Loggable for TensorDimension { let name = { if !arrays_by_name.contains_key("name") { return Err(DeserializationError::missing_struct_field( - Self::arrow_datatype(), + Self::arrow2_datatype(), "name", )) .with_context("rerun.datatypes.TensorDimension"); 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 722771a877b6..280ca3e7149b 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 @@ -46,7 +46,7 @@ impl ::re_types_core::SizeBytes for TensorDimensionIndexSelection { impl ::re_types_core::Loggable for TensorDimensionIndexSelection { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::Struct(std::sync::Arc::new(vec![ @@ -55,7 +55,7 @@ impl ::re_types_core::Loggable for TensorDimensionIndexSelection { ])) } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -78,7 +78,7 @@ impl ::re_types_core::Loggable for TensorDimensionIndexSelection { any_nones.then(|| somes.into()) }; StructArray::new( - Self::arrow_datatype(), + Self::arrow2_datatype(), vec![ { let (somes, dimension): (Vec<_>, Vec<_>) = data @@ -128,7 +128,7 @@ impl ::re_types_core::Loggable for TensorDimensionIndexSelection { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -142,7 +142,7 @@ impl ::re_types_core::Loggable for TensorDimensionIndexSelection { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -160,7 +160,7 @@ impl ::re_types_core::Loggable for TensorDimensionIndexSelection { let dimension = { if !arrays_by_name.contains_key("dimension") { return Err(DeserializationError::missing_struct_field( - Self::arrow_datatype(), + Self::arrow2_datatype(), "dimension", )) .with_context("rerun.datatypes.TensorDimensionIndexSelection"); @@ -181,7 +181,7 @@ impl ::re_types_core::Loggable for TensorDimensionIndexSelection { let index = { if !arrays_by_name.contains_key("index") { return Err(DeserializationError::missing_struct_field( - Self::arrow_datatype(), + Self::arrow2_datatype(), "index", )) .with_context("rerun.datatypes.TensorDimensionIndexSelection"); 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 389b7729daf9..bd1282936748 100644 --- a/crates/store/re_types/src/datatypes/tensor_dimension_selection.rs +++ b/crates/store/re_types/src/datatypes/tensor_dimension_selection.rs @@ -44,7 +44,7 @@ impl ::re_types_core::SizeBytes for TensorDimensionSelection { impl ::re_types_core::Loggable for TensorDimensionSelection { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::Struct(std::sync::Arc::new(vec![ @@ -53,7 +53,7 @@ impl ::re_types_core::Loggable for TensorDimensionSelection { ])) } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -76,7 +76,7 @@ impl ::re_types_core::Loggable for TensorDimensionSelection { any_nones.then(|| somes.into()) }; StructArray::new( - Self::arrow_datatype(), + Self::arrow2_datatype(), vec![ { let (somes, dimension): (Vec<_>, Vec<_>) = data @@ -126,7 +126,7 @@ impl ::re_types_core::Loggable for TensorDimensionSelection { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -140,7 +140,7 @@ impl ::re_types_core::Loggable for TensorDimensionSelection { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -158,7 +158,7 @@ impl ::re_types_core::Loggable for TensorDimensionSelection { let dimension = { if !arrays_by_name.contains_key("dimension") { return Err(DeserializationError::missing_struct_field( - Self::arrow_datatype(), + Self::arrow2_datatype(), "dimension", )) .with_context("rerun.datatypes.TensorDimensionSelection"); @@ -179,7 +179,7 @@ impl ::re_types_core::Loggable for TensorDimensionSelection { let invert = { if !arrays_by_name.contains_key("invert") { return Err(DeserializationError::missing_struct_field( - Self::arrow_datatype(), + Self::arrow2_datatype(), "invert", )) .with_context("rerun.datatypes.TensorDimensionSelection"); diff --git a/crates/store/re_types/src/datatypes/uuid.rs b/crates/store/re_types/src/datatypes/uuid.rs index 880430630bf4..f41e29c51595 100644 --- a/crates/store/re_types/src/datatypes/uuid.rs +++ b/crates/store/re_types/src/datatypes/uuid.rs @@ -56,7 +56,7 @@ impl From for [u8; 16usize] { impl ::re_types_core::Loggable for Uuid { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::FixedSizeList( @@ -65,7 +65,7 @@ impl ::re_types_core::Loggable for Uuid { ) } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -109,7 +109,7 @@ impl ::re_types_core::Loggable for Uuid { .into() }); FixedSizeListArray::new( - Self::arrow_datatype(), + Self::arrow2_datatype(), PrimitiveArray::new( DataType::UInt8, bytes_inner_data.into_iter().collect(), @@ -123,7 +123,7 @@ impl ::re_types_core::Loggable for Uuid { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -137,7 +137,7 @@ impl ::re_types_core::Loggable for Uuid { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -199,7 +199,7 @@ impl ::re_types_core::Loggable for Uuid { } #[inline] - fn from_arrow(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> + fn from_arrow2(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> where Self: Sized, { diff --git a/crates/store/re_types/src/datatypes/uvec2d.rs b/crates/store/re_types/src/datatypes/uvec2d.rs index 8947ce6e84d5..9f81c4d61dc1 100644 --- a/crates/store/re_types/src/datatypes/uvec2d.rs +++ b/crates/store/re_types/src/datatypes/uvec2d.rs @@ -53,7 +53,7 @@ impl From for [u32; 2usize] { impl ::re_types_core::Loggable for UVec2D { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::FixedSizeList( @@ -62,7 +62,7 @@ impl ::re_types_core::Loggable for UVec2D { ) } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -106,7 +106,7 @@ impl ::re_types_core::Loggable for UVec2D { .into() }); FixedSizeListArray::new( - Self::arrow_datatype(), + Self::arrow2_datatype(), PrimitiveArray::new( DataType::UInt32, data0_inner_data.into_iter().collect(), @@ -120,7 +120,7 @@ impl ::re_types_core::Loggable for UVec2D { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -134,7 +134,7 @@ impl ::re_types_core::Loggable for UVec2D { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -196,7 +196,7 @@ impl ::re_types_core::Loggable for UVec2D { } #[inline] - fn from_arrow(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> + fn from_arrow2(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> where Self: Sized, { diff --git a/crates/store/re_types/src/datatypes/uvec3d.rs b/crates/store/re_types/src/datatypes/uvec3d.rs index 9eaf0cf6de97..ab4fde287986 100644 --- a/crates/store/re_types/src/datatypes/uvec3d.rs +++ b/crates/store/re_types/src/datatypes/uvec3d.rs @@ -53,7 +53,7 @@ impl From for [u32; 3usize] { impl ::re_types_core::Loggable for UVec3D { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::FixedSizeList( @@ -62,7 +62,7 @@ impl ::re_types_core::Loggable for UVec3D { ) } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -106,7 +106,7 @@ impl ::re_types_core::Loggable for UVec3D { .into() }); FixedSizeListArray::new( - Self::arrow_datatype(), + Self::arrow2_datatype(), PrimitiveArray::new( DataType::UInt32, data0_inner_data.into_iter().collect(), @@ -120,7 +120,7 @@ impl ::re_types_core::Loggable for UVec3D { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -134,7 +134,7 @@ impl ::re_types_core::Loggable for UVec3D { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -196,7 +196,7 @@ impl ::re_types_core::Loggable for UVec3D { } #[inline] - fn from_arrow(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> + fn from_arrow2(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> where Self: Sized, { diff --git a/crates/store/re_types/src/datatypes/uvec4d.rs b/crates/store/re_types/src/datatypes/uvec4d.rs index 8bd1aaf9c07d..495401097a51 100644 --- a/crates/store/re_types/src/datatypes/uvec4d.rs +++ b/crates/store/re_types/src/datatypes/uvec4d.rs @@ -53,7 +53,7 @@ impl From for [u32; 4usize] { impl ::re_types_core::Loggable for UVec4D { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::FixedSizeList( @@ -62,7 +62,7 @@ impl ::re_types_core::Loggable for UVec4D { ) } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -106,7 +106,7 @@ impl ::re_types_core::Loggable for UVec4D { .into() }); FixedSizeListArray::new( - Self::arrow_datatype(), + Self::arrow2_datatype(), PrimitiveArray::new( DataType::UInt32, data0_inner_data.into_iter().collect(), @@ -120,7 +120,7 @@ impl ::re_types_core::Loggable for UVec4D { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -134,7 +134,7 @@ impl ::re_types_core::Loggable for UVec4D { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -196,7 +196,7 @@ impl ::re_types_core::Loggable for UVec4D { } #[inline] - fn from_arrow(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> + fn from_arrow2(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> where Self: Sized, { diff --git a/crates/store/re_types/src/datatypes/vec2d.rs b/crates/store/re_types/src/datatypes/vec2d.rs index 7e51b9111549..326cb38ce663 100644 --- a/crates/store/re_types/src/datatypes/vec2d.rs +++ b/crates/store/re_types/src/datatypes/vec2d.rs @@ -53,7 +53,7 @@ impl From for [f32; 2usize] { impl ::re_types_core::Loggable for Vec2D { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::FixedSizeList( @@ -62,7 +62,7 @@ impl ::re_types_core::Loggable for Vec2D { ) } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -106,7 +106,7 @@ impl ::re_types_core::Loggable for Vec2D { .into() }); FixedSizeListArray::new( - Self::arrow_datatype(), + Self::arrow2_datatype(), PrimitiveArray::new( DataType::Float32, data0_inner_data.into_iter().collect(), @@ -120,7 +120,7 @@ impl ::re_types_core::Loggable for Vec2D { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -134,7 +134,7 @@ impl ::re_types_core::Loggable for Vec2D { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -196,7 +196,7 @@ impl ::re_types_core::Loggable for Vec2D { } #[inline] - fn from_arrow(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> + fn from_arrow2(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> where Self: Sized, { diff --git a/crates/store/re_types/src/datatypes/vec3d.rs b/crates/store/re_types/src/datatypes/vec3d.rs index aa458ef63c1b..2c3136fbb92f 100644 --- a/crates/store/re_types/src/datatypes/vec3d.rs +++ b/crates/store/re_types/src/datatypes/vec3d.rs @@ -53,7 +53,7 @@ impl From for [f32; 3usize] { impl ::re_types_core::Loggable for Vec3D { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::FixedSizeList( @@ -62,7 +62,7 @@ impl ::re_types_core::Loggable for Vec3D { ) } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -106,7 +106,7 @@ impl ::re_types_core::Loggable for Vec3D { .into() }); FixedSizeListArray::new( - Self::arrow_datatype(), + Self::arrow2_datatype(), PrimitiveArray::new( DataType::Float32, data0_inner_data.into_iter().collect(), @@ -120,7 +120,7 @@ impl ::re_types_core::Loggable for Vec3D { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -134,7 +134,7 @@ impl ::re_types_core::Loggable for Vec3D { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -196,7 +196,7 @@ impl ::re_types_core::Loggable for Vec3D { } #[inline] - fn from_arrow(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> + fn from_arrow2(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> where Self: Sized, { diff --git a/crates/store/re_types/src/datatypes/vec4d.rs b/crates/store/re_types/src/datatypes/vec4d.rs index 3a0078ae8f5d..2b9769705843 100644 --- a/crates/store/re_types/src/datatypes/vec4d.rs +++ b/crates/store/re_types/src/datatypes/vec4d.rs @@ -53,7 +53,7 @@ impl From for [f32; 4usize] { impl ::re_types_core::Loggable for Vec4D { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::FixedSizeList( @@ -62,7 +62,7 @@ impl ::re_types_core::Loggable for Vec4D { ) } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -106,7 +106,7 @@ impl ::re_types_core::Loggable for Vec4D { .into() }); FixedSizeListArray::new( - Self::arrow_datatype(), + Self::arrow2_datatype(), PrimitiveArray::new( DataType::Float32, data0_inner_data.into_iter().collect(), @@ -120,7 +120,7 @@ impl ::re_types_core::Loggable for Vec4D { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -134,7 +134,7 @@ impl ::re_types_core::Loggable for Vec4D { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -196,7 +196,7 @@ impl ::re_types_core::Loggable for Vec4D { } #[inline] - fn from_arrow(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> + fn from_arrow2(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> where Self: Sized, { diff --git a/crates/store/re_types/src/datatypes/video_timestamp.rs b/crates/store/re_types/src/datatypes/video_timestamp.rs index fc8c8918fca4..daf22dc0fe8f 100644 --- a/crates/store/re_types/src/datatypes/video_timestamp.rs +++ b/crates/store/re_types/src/datatypes/video_timestamp.rs @@ -58,13 +58,13 @@ impl From for i64 { impl ::re_types_core::Loggable for VideoTimestamp { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::Int64 } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -88,7 +88,7 @@ impl ::re_types_core::Loggable for VideoTimestamp { any_nones.then(|| somes.into()) }; PrimitiveArray::new( - Self::arrow_datatype(), + Self::arrow2_datatype(), data0.into_iter().map(|v| v.unwrap_or_default()).collect(), data0_bitmap, ) @@ -96,7 +96,7 @@ impl ::re_types_core::Loggable for VideoTimestamp { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -109,7 +109,7 @@ impl ::re_types_core::Loggable for VideoTimestamp { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -124,7 +124,7 @@ impl ::re_types_core::Loggable for VideoTimestamp { } #[inline] - fn from_arrow(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> + fn from_arrow2(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> where Self: Sized, { diff --git a/crates/store/re_types/src/datatypes/view_coordinates.rs b/crates/store/re_types/src/datatypes/view_coordinates.rs index 18b7e4db7907..4345ebcfa835 100644 --- a/crates/store/re_types/src/datatypes/view_coordinates.rs +++ b/crates/store/re_types/src/datatypes/view_coordinates.rs @@ -73,7 +73,7 @@ impl From for [u8; 3usize] { impl ::re_types_core::Loggable for ViewCoordinates { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::FixedSizeList( @@ -82,7 +82,7 @@ impl ::re_types_core::Loggable for ViewCoordinates { ) } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -126,7 +126,7 @@ impl ::re_types_core::Loggable for ViewCoordinates { .into() }); FixedSizeListArray::new( - Self::arrow_datatype(), + Self::arrow2_datatype(), PrimitiveArray::new( DataType::UInt8, data0_inner_data.into_iter().collect(), @@ -140,7 +140,7 @@ impl ::re_types_core::Loggable for ViewCoordinates { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -154,7 +154,7 @@ impl ::re_types_core::Loggable for ViewCoordinates { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -216,7 +216,7 @@ impl ::re_types_core::Loggable for ViewCoordinates { } #[inline] - fn from_arrow(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> + fn from_arrow2(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> where Self: Sized, { diff --git a/crates/store/re_types/src/testing/archetypes/affix_fuzzer1.rs b/crates/store/re_types/src/testing/archetypes/affix_fuzzer1.rs index 326db0114f6e..9c6170f08304 100644 --- a/crates/store/re_types/src/testing/archetypes/affix_fuzzer1.rs +++ b/crates/store/re_types/src/testing/archetypes/affix_fuzzer1.rs @@ -209,7 +209,7 @@ impl ::re_types_core::Archetype for AffixFuzzer1 { } #[inline] - fn from_arrow_components( + fn from_arrow2_components( arrow_data: impl IntoIterator)>, ) -> DeserializationResult { re_tracing::profile_function!(); @@ -223,7 +223,7 @@ impl ::re_types_core::Archetype for AffixFuzzer1 { .get("rerun.testing.components.AffixFuzzer1") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.testing.archetypes.AffixFuzzer1#fuzz1001")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer1#fuzz1001")? .into_iter() .next() @@ -236,7 +236,7 @@ impl ::re_types_core::Archetype for AffixFuzzer1 { .get("rerun.testing.components.AffixFuzzer2") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.testing.archetypes.AffixFuzzer1#fuzz1002")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer1#fuzz1002")? .into_iter() .next() @@ -249,7 +249,7 @@ impl ::re_types_core::Archetype for AffixFuzzer1 { .get("rerun.testing.components.AffixFuzzer3") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.testing.archetypes.AffixFuzzer1#fuzz1003")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer1#fuzz1003")? .into_iter() .next() @@ -262,7 +262,7 @@ impl ::re_types_core::Archetype for AffixFuzzer1 { .get("rerun.testing.components.AffixFuzzer4") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.testing.archetypes.AffixFuzzer1#fuzz1004")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer1#fuzz1004")? .into_iter() .next() @@ -275,7 +275,7 @@ impl ::re_types_core::Archetype for AffixFuzzer1 { .get("rerun.testing.components.AffixFuzzer5") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.testing.archetypes.AffixFuzzer1#fuzz1005")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer1#fuzz1005")? .into_iter() .next() @@ -288,7 +288,7 @@ impl ::re_types_core::Archetype for AffixFuzzer1 { .get("rerun.testing.components.AffixFuzzer6") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.testing.archetypes.AffixFuzzer1#fuzz1006")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer1#fuzz1006")? .into_iter() .next() @@ -301,7 +301,7 @@ impl ::re_types_core::Archetype for AffixFuzzer1 { .get("rerun.testing.components.AffixFuzzer7") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.testing.archetypes.AffixFuzzer1#fuzz1007")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer1#fuzz1007")? .into_iter() .next() @@ -314,7 +314,7 @@ impl ::re_types_core::Archetype for AffixFuzzer1 { .get("rerun.testing.components.AffixFuzzer8") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.testing.archetypes.AffixFuzzer1#fuzz1008")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer1#fuzz1008")? .into_iter() .next() @@ -327,7 +327,7 @@ impl ::re_types_core::Archetype for AffixFuzzer1 { .get("rerun.testing.components.AffixFuzzer9") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.testing.archetypes.AffixFuzzer1#fuzz1009")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer1#fuzz1009")? .into_iter() .next() @@ -340,7 +340,7 @@ impl ::re_types_core::Archetype for AffixFuzzer1 { .get("rerun.testing.components.AffixFuzzer10") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.testing.archetypes.AffixFuzzer1#fuzz1010")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer1#fuzz1010")? .into_iter() .next() @@ -353,7 +353,7 @@ impl ::re_types_core::Archetype for AffixFuzzer1 { .get("rerun.testing.components.AffixFuzzer11") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.testing.archetypes.AffixFuzzer1#fuzz1011")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer1#fuzz1011")? .into_iter() .next() @@ -366,7 +366,7 @@ impl ::re_types_core::Archetype for AffixFuzzer1 { .get("rerun.testing.components.AffixFuzzer12") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.testing.archetypes.AffixFuzzer1#fuzz1012")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer1#fuzz1012")? .into_iter() .next() @@ -379,7 +379,7 @@ impl ::re_types_core::Archetype for AffixFuzzer1 { .get("rerun.testing.components.AffixFuzzer13") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.testing.archetypes.AffixFuzzer1#fuzz1013")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer1#fuzz1013")? .into_iter() .next() @@ -392,7 +392,7 @@ impl ::re_types_core::Archetype for AffixFuzzer1 { .get("rerun.testing.components.AffixFuzzer14") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.testing.archetypes.AffixFuzzer1#fuzz1014")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer1#fuzz1014")? .into_iter() .next() @@ -405,7 +405,7 @@ impl ::re_types_core::Archetype for AffixFuzzer1 { .get("rerun.testing.components.AffixFuzzer15") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.testing.archetypes.AffixFuzzer1#fuzz1015")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer1#fuzz1015")? .into_iter() .next() @@ -418,7 +418,7 @@ impl ::re_types_core::Archetype for AffixFuzzer1 { .get("rerun.testing.components.AffixFuzzer16") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.testing.archetypes.AffixFuzzer1#fuzz1016")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer1#fuzz1016")? .into_iter() .next() @@ -431,7 +431,7 @@ impl ::re_types_core::Archetype for AffixFuzzer1 { .get("rerun.testing.components.AffixFuzzer17") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.testing.archetypes.AffixFuzzer1#fuzz1017")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer1#fuzz1017")? .into_iter() .next() @@ -444,7 +444,7 @@ impl ::re_types_core::Archetype for AffixFuzzer1 { .get("rerun.testing.components.AffixFuzzer18") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.testing.archetypes.AffixFuzzer1#fuzz1018")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer1#fuzz1018")? .into_iter() .next() @@ -457,7 +457,7 @@ impl ::re_types_core::Archetype for AffixFuzzer1 { .get("rerun.testing.components.AffixFuzzer19") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.testing.archetypes.AffixFuzzer1#fuzz1019")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer1#fuzz1019")? .into_iter() .next() @@ -470,7 +470,7 @@ impl ::re_types_core::Archetype for AffixFuzzer1 { .get("rerun.testing.components.AffixFuzzer20") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.testing.archetypes.AffixFuzzer1#fuzz1020")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer1#fuzz1020")? .into_iter() .next() @@ -483,7 +483,7 @@ impl ::re_types_core::Archetype for AffixFuzzer1 { .get("rerun.testing.components.AffixFuzzer21") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.testing.archetypes.AffixFuzzer1#fuzz1021")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer1#fuzz1021")? .into_iter() .next() @@ -496,7 +496,7 @@ impl ::re_types_core::Archetype for AffixFuzzer1 { .get("rerun.testing.components.AffixFuzzer22") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.testing.archetypes.AffixFuzzer1#fuzz1022")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer1#fuzz1022")? .into_iter() .next() diff --git a/crates/store/re_types/src/testing/archetypes/affix_fuzzer2.rs b/crates/store/re_types/src/testing/archetypes/affix_fuzzer2.rs index 6c1059613b02..4132525fad07 100644 --- a/crates/store/re_types/src/testing/archetypes/affix_fuzzer2.rs +++ b/crates/store/re_types/src/testing/archetypes/affix_fuzzer2.rs @@ -194,7 +194,7 @@ impl ::re_types_core::Archetype for AffixFuzzer2 { } #[inline] - fn from_arrow_components( + fn from_arrow2_components( arrow_data: impl IntoIterator)>, ) -> DeserializationResult { re_tracing::profile_function!(); @@ -208,7 +208,7 @@ impl ::re_types_core::Archetype for AffixFuzzer2 { .get("rerun.testing.components.AffixFuzzer1") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.testing.archetypes.AffixFuzzer2#fuzz1101")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer2#fuzz1101")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -220,7 +220,7 @@ impl ::re_types_core::Archetype for AffixFuzzer2 { .get("rerun.testing.components.AffixFuzzer2") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.testing.archetypes.AffixFuzzer2#fuzz1102")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer2#fuzz1102")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -232,7 +232,7 @@ impl ::re_types_core::Archetype for AffixFuzzer2 { .get("rerun.testing.components.AffixFuzzer3") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.testing.archetypes.AffixFuzzer2#fuzz1103")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer2#fuzz1103")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -244,7 +244,7 @@ impl ::re_types_core::Archetype for AffixFuzzer2 { .get("rerun.testing.components.AffixFuzzer4") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.testing.archetypes.AffixFuzzer2#fuzz1104")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer2#fuzz1104")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -256,7 +256,7 @@ impl ::re_types_core::Archetype for AffixFuzzer2 { .get("rerun.testing.components.AffixFuzzer5") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.testing.archetypes.AffixFuzzer2#fuzz1105")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer2#fuzz1105")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -268,7 +268,7 @@ impl ::re_types_core::Archetype for AffixFuzzer2 { .get("rerun.testing.components.AffixFuzzer6") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.testing.archetypes.AffixFuzzer2#fuzz1106")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer2#fuzz1106")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -280,7 +280,7 @@ impl ::re_types_core::Archetype for AffixFuzzer2 { .get("rerun.testing.components.AffixFuzzer7") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.testing.archetypes.AffixFuzzer2#fuzz1107")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer2#fuzz1107")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -292,7 +292,7 @@ impl ::re_types_core::Archetype for AffixFuzzer2 { .get("rerun.testing.components.AffixFuzzer8") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.testing.archetypes.AffixFuzzer2#fuzz1108")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer2#fuzz1108")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -304,7 +304,7 @@ impl ::re_types_core::Archetype for AffixFuzzer2 { .get("rerun.testing.components.AffixFuzzer9") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.testing.archetypes.AffixFuzzer2#fuzz1109")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer2#fuzz1109")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -316,7 +316,7 @@ impl ::re_types_core::Archetype for AffixFuzzer2 { .get("rerun.testing.components.AffixFuzzer10") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.testing.archetypes.AffixFuzzer2#fuzz1110")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer2#fuzz1110")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -328,7 +328,7 @@ impl ::re_types_core::Archetype for AffixFuzzer2 { .get("rerun.testing.components.AffixFuzzer11") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.testing.archetypes.AffixFuzzer2#fuzz1111")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer2#fuzz1111")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -340,7 +340,7 @@ impl ::re_types_core::Archetype for AffixFuzzer2 { .get("rerun.testing.components.AffixFuzzer12") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.testing.archetypes.AffixFuzzer2#fuzz1112")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer2#fuzz1112")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -352,7 +352,7 @@ impl ::re_types_core::Archetype for AffixFuzzer2 { .get("rerun.testing.components.AffixFuzzer13") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.testing.archetypes.AffixFuzzer2#fuzz1113")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer2#fuzz1113")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -364,7 +364,7 @@ impl ::re_types_core::Archetype for AffixFuzzer2 { .get("rerun.testing.components.AffixFuzzer14") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.testing.archetypes.AffixFuzzer2#fuzz1114")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer2#fuzz1114")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -376,7 +376,7 @@ impl ::re_types_core::Archetype for AffixFuzzer2 { .get("rerun.testing.components.AffixFuzzer15") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.testing.archetypes.AffixFuzzer2#fuzz1115")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer2#fuzz1115")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -388,7 +388,7 @@ impl ::re_types_core::Archetype for AffixFuzzer2 { .get("rerun.testing.components.AffixFuzzer16") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.testing.archetypes.AffixFuzzer2#fuzz1116")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer2#fuzz1116")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -400,7 +400,7 @@ impl ::re_types_core::Archetype for AffixFuzzer2 { .get("rerun.testing.components.AffixFuzzer17") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.testing.archetypes.AffixFuzzer2#fuzz1117")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer2#fuzz1117")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -412,7 +412,7 @@ impl ::re_types_core::Archetype for AffixFuzzer2 { .get("rerun.testing.components.AffixFuzzer18") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.testing.archetypes.AffixFuzzer2#fuzz1118")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer2#fuzz1118")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -424,7 +424,7 @@ impl ::re_types_core::Archetype for AffixFuzzer2 { .get("rerun.testing.components.AffixFuzzer22") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.testing.archetypes.AffixFuzzer2#fuzz1122")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer2#fuzz1122")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) diff --git a/crates/store/re_types/src/testing/archetypes/affix_fuzzer3.rs b/crates/store/re_types/src/testing/archetypes/affix_fuzzer3.rs index 635465327faf..43efcb3de5a3 100644 --- a/crates/store/re_types/src/testing/archetypes/affix_fuzzer3.rs +++ b/crates/store/re_types/src/testing/archetypes/affix_fuzzer3.rs @@ -189,7 +189,7 @@ impl ::re_types_core::Archetype for AffixFuzzer3 { } #[inline] - fn from_arrow_components( + fn from_arrow2_components( arrow_data: impl IntoIterator)>, ) -> DeserializationResult { re_tracing::profile_function!(); @@ -200,7 +200,7 @@ impl ::re_types_core::Archetype for AffixFuzzer3 { .collect(); let fuzz2001 = if let Some(array) = arrays_by_name.get("rerun.testing.components.AffixFuzzer1") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer3#fuzz2001")? .into_iter() .next() @@ -210,7 +210,7 @@ impl ::re_types_core::Archetype for AffixFuzzer3 { }; let fuzz2002 = if let Some(array) = arrays_by_name.get("rerun.testing.components.AffixFuzzer2") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer3#fuzz2002")? .into_iter() .next() @@ -220,7 +220,7 @@ impl ::re_types_core::Archetype for AffixFuzzer3 { }; let fuzz2003 = if let Some(array) = arrays_by_name.get("rerun.testing.components.AffixFuzzer3") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer3#fuzz2003")? .into_iter() .next() @@ -230,7 +230,7 @@ impl ::re_types_core::Archetype for AffixFuzzer3 { }; let fuzz2004 = if let Some(array) = arrays_by_name.get("rerun.testing.components.AffixFuzzer4") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer3#fuzz2004")? .into_iter() .next() @@ -240,7 +240,7 @@ impl ::re_types_core::Archetype for AffixFuzzer3 { }; let fuzz2005 = if let Some(array) = arrays_by_name.get("rerun.testing.components.AffixFuzzer5") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer3#fuzz2005")? .into_iter() .next() @@ -250,7 +250,7 @@ impl ::re_types_core::Archetype for AffixFuzzer3 { }; let fuzz2006 = if let Some(array) = arrays_by_name.get("rerun.testing.components.AffixFuzzer6") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer3#fuzz2006")? .into_iter() .next() @@ -260,7 +260,7 @@ impl ::re_types_core::Archetype for AffixFuzzer3 { }; let fuzz2007 = if let Some(array) = arrays_by_name.get("rerun.testing.components.AffixFuzzer7") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer3#fuzz2007")? .into_iter() .next() @@ -270,7 +270,7 @@ impl ::re_types_core::Archetype for AffixFuzzer3 { }; let fuzz2008 = if let Some(array) = arrays_by_name.get("rerun.testing.components.AffixFuzzer8") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer3#fuzz2008")? .into_iter() .next() @@ -280,7 +280,7 @@ impl ::re_types_core::Archetype for AffixFuzzer3 { }; let fuzz2009 = if let Some(array) = arrays_by_name.get("rerun.testing.components.AffixFuzzer9") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer3#fuzz2009")? .into_iter() .next() @@ -290,7 +290,7 @@ impl ::re_types_core::Archetype for AffixFuzzer3 { }; let fuzz2010 = if let Some(array) = arrays_by_name.get("rerun.testing.components.AffixFuzzer10") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer3#fuzz2010")? .into_iter() .next() @@ -300,7 +300,7 @@ impl ::re_types_core::Archetype for AffixFuzzer3 { }; let fuzz2011 = if let Some(array) = arrays_by_name.get("rerun.testing.components.AffixFuzzer11") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer3#fuzz2011")? .into_iter() .next() @@ -310,7 +310,7 @@ impl ::re_types_core::Archetype for AffixFuzzer3 { }; let fuzz2012 = if let Some(array) = arrays_by_name.get("rerun.testing.components.AffixFuzzer12") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer3#fuzz2012")? .into_iter() .next() @@ -320,7 +320,7 @@ impl ::re_types_core::Archetype for AffixFuzzer3 { }; let fuzz2013 = if let Some(array) = arrays_by_name.get("rerun.testing.components.AffixFuzzer13") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer3#fuzz2013")? .into_iter() .next() @@ -330,7 +330,7 @@ impl ::re_types_core::Archetype for AffixFuzzer3 { }; let fuzz2014 = if let Some(array) = arrays_by_name.get("rerun.testing.components.AffixFuzzer14") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer3#fuzz2014")? .into_iter() .next() @@ -340,7 +340,7 @@ impl ::re_types_core::Archetype for AffixFuzzer3 { }; let fuzz2015 = if let Some(array) = arrays_by_name.get("rerun.testing.components.AffixFuzzer15") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer3#fuzz2015")? .into_iter() .next() @@ -350,7 +350,7 @@ impl ::re_types_core::Archetype for AffixFuzzer3 { }; let fuzz2016 = if let Some(array) = arrays_by_name.get("rerun.testing.components.AffixFuzzer16") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer3#fuzz2016")? .into_iter() .next() @@ -360,7 +360,7 @@ impl ::re_types_core::Archetype for AffixFuzzer3 { }; let fuzz2017 = if let Some(array) = arrays_by_name.get("rerun.testing.components.AffixFuzzer17") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer3#fuzz2017")? .into_iter() .next() @@ -370,7 +370,7 @@ impl ::re_types_core::Archetype for AffixFuzzer3 { }; let fuzz2018 = if let Some(array) = arrays_by_name.get("rerun.testing.components.AffixFuzzer18") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer3#fuzz2018")? .into_iter() .next() diff --git a/crates/store/re_types/src/testing/archetypes/affix_fuzzer4.rs b/crates/store/re_types/src/testing/archetypes/affix_fuzzer4.rs index 82e34f576253..9d5b71b91a8f 100644 --- a/crates/store/re_types/src/testing/archetypes/affix_fuzzer4.rs +++ b/crates/store/re_types/src/testing/archetypes/affix_fuzzer4.rs @@ -189,7 +189,7 @@ impl ::re_types_core::Archetype for AffixFuzzer4 { } #[inline] - fn from_arrow_components( + fn from_arrow2_components( arrow_data: impl IntoIterator)>, ) -> DeserializationResult { re_tracing::profile_function!(); @@ -201,7 +201,7 @@ impl ::re_types_core::Archetype for AffixFuzzer4 { let fuzz2101 = if let Some(array) = arrays_by_name.get("rerun.testing.components.AffixFuzzer1") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer4#fuzz2101")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -214,7 +214,7 @@ impl ::re_types_core::Archetype for AffixFuzzer4 { let fuzz2102 = if let Some(array) = arrays_by_name.get("rerun.testing.components.AffixFuzzer2") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer4#fuzz2102")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -227,7 +227,7 @@ impl ::re_types_core::Archetype for AffixFuzzer4 { let fuzz2103 = if let Some(array) = arrays_by_name.get("rerun.testing.components.AffixFuzzer3") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer4#fuzz2103")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -240,7 +240,7 @@ impl ::re_types_core::Archetype for AffixFuzzer4 { let fuzz2104 = if let Some(array) = arrays_by_name.get("rerun.testing.components.AffixFuzzer4") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer4#fuzz2104")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -253,7 +253,7 @@ impl ::re_types_core::Archetype for AffixFuzzer4 { let fuzz2105 = if let Some(array) = arrays_by_name.get("rerun.testing.components.AffixFuzzer5") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer4#fuzz2105")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -266,7 +266,7 @@ impl ::re_types_core::Archetype for AffixFuzzer4 { let fuzz2106 = if let Some(array) = arrays_by_name.get("rerun.testing.components.AffixFuzzer6") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer4#fuzz2106")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -279,7 +279,7 @@ impl ::re_types_core::Archetype for AffixFuzzer4 { let fuzz2107 = if let Some(array) = arrays_by_name.get("rerun.testing.components.AffixFuzzer7") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer4#fuzz2107")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -292,7 +292,7 @@ impl ::re_types_core::Archetype for AffixFuzzer4 { let fuzz2108 = if let Some(array) = arrays_by_name.get("rerun.testing.components.AffixFuzzer8") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer4#fuzz2108")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -305,7 +305,7 @@ impl ::re_types_core::Archetype for AffixFuzzer4 { let fuzz2109 = if let Some(array) = arrays_by_name.get("rerun.testing.components.AffixFuzzer9") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer4#fuzz2109")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -318,7 +318,7 @@ impl ::re_types_core::Archetype for AffixFuzzer4 { let fuzz2110 = if let Some(array) = arrays_by_name.get("rerun.testing.components.AffixFuzzer10") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer4#fuzz2110")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -331,7 +331,7 @@ impl ::re_types_core::Archetype for AffixFuzzer4 { let fuzz2111 = if let Some(array) = arrays_by_name.get("rerun.testing.components.AffixFuzzer11") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer4#fuzz2111")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -344,7 +344,7 @@ impl ::re_types_core::Archetype for AffixFuzzer4 { let fuzz2112 = if let Some(array) = arrays_by_name.get("rerun.testing.components.AffixFuzzer12") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer4#fuzz2112")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -357,7 +357,7 @@ impl ::re_types_core::Archetype for AffixFuzzer4 { let fuzz2113 = if let Some(array) = arrays_by_name.get("rerun.testing.components.AffixFuzzer13") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer4#fuzz2113")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -370,7 +370,7 @@ impl ::re_types_core::Archetype for AffixFuzzer4 { let fuzz2114 = if let Some(array) = arrays_by_name.get("rerun.testing.components.AffixFuzzer14") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer4#fuzz2114")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -383,7 +383,7 @@ impl ::re_types_core::Archetype for AffixFuzzer4 { let fuzz2115 = if let Some(array) = arrays_by_name.get("rerun.testing.components.AffixFuzzer15") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer4#fuzz2115")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -396,7 +396,7 @@ impl ::re_types_core::Archetype for AffixFuzzer4 { let fuzz2116 = if let Some(array) = arrays_by_name.get("rerun.testing.components.AffixFuzzer16") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer4#fuzz2116")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -409,7 +409,7 @@ impl ::re_types_core::Archetype for AffixFuzzer4 { let fuzz2117 = if let Some(array) = arrays_by_name.get("rerun.testing.components.AffixFuzzer17") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer4#fuzz2117")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -422,7 +422,7 @@ impl ::re_types_core::Archetype for AffixFuzzer4 { let fuzz2118 = if let Some(array) = arrays_by_name.get("rerun.testing.components.AffixFuzzer18") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.testing.archetypes.AffixFuzzer4#fuzz2118")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) 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 7b7eb6231af4..f2b41d2a1bf6 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer1.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer1.rs @@ -66,17 +66,17 @@ impl std::ops::DerefMut for AffixFuzzer1 { impl ::re_types_core::Loggable for AffixFuzzer1 { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::testing::datatypes::AffixFuzzer1::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::testing::datatypes::AffixFuzzer1::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::testing::datatypes::AffixFuzzer1::to_arrow_opt(data.into_iter().map(|datum| { + crate::testing::datatypes::AffixFuzzer1::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -84,13 +84,13 @@ impl ::re_types_core::Loggable for AffixFuzzer1 { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::testing::datatypes::AffixFuzzer1::from_arrow_opt(arrow_data) + crate::testing::datatypes::AffixFuzzer1::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } 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 089ea46944d6..1c37ed8e1dd0 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer10.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer10.rs @@ -67,13 +67,13 @@ impl std::ops::DerefMut for AffixFuzzer10 { impl ::re_types_core::Loggable for AffixFuzzer10 { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::Utf8 } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -109,7 +109,7 @@ impl ::re_types_core::Loggable for AffixFuzzer10 { #[allow(unsafe_code, clippy::undocumented_unsafe_blocks)] unsafe { Utf8Array::::new_unchecked( - Self::arrow_datatype(), + Self::arrow2_datatype(), offsets, inner_data, data0_bitmap, @@ -120,7 +120,7 @@ impl ::re_types_core::Loggable for AffixFuzzer10 { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -134,7 +134,7 @@ impl ::re_types_core::Loggable for AffixFuzzer10 { .as_any() .downcast_ref::>() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) 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 084a550a5053..53a59b8fb733 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer11.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer11.rs @@ -67,7 +67,7 @@ impl std::ops::DerefMut for AffixFuzzer11 { impl ::re_types_core::Loggable for AffixFuzzer11 { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::List(std::sync::Arc::new(Field::new( @@ -77,7 +77,7 @@ impl ::re_types_core::Loggable for AffixFuzzer11 { ))) } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -117,7 +117,7 @@ impl ::re_types_core::Loggable for AffixFuzzer11 { .into(); let data0_inner_bitmap: Option = None; ListArray::try_new( - Self::arrow_datatype(), + Self::arrow2_datatype(), offsets, PrimitiveArray::new(DataType::Float32, data0_inner_data, data0_inner_bitmap) .boxed(), @@ -128,7 +128,7 @@ impl ::re_types_core::Loggable for AffixFuzzer11 { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -142,7 +142,7 @@ impl ::re_types_core::Loggable for AffixFuzzer11 { .as_any() .downcast_ref::>() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) 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 261a65e6a551..fc728f88e2a3 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer12.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer12.rs @@ -67,7 +67,7 @@ impl std::ops::DerefMut for AffixFuzzer12 { impl ::re_types_core::Loggable for AffixFuzzer12 { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::List(std::sync::Arc::new(Field::new( @@ -77,7 +77,7 @@ impl ::re_types_core::Loggable for AffixFuzzer12 { ))) } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -111,7 +111,7 @@ impl ::re_types_core::Loggable for AffixFuzzer12 { let data0_inner_data: Vec<_> = data0.into_iter().flatten().flatten().collect(); let data0_inner_bitmap: Option = None; ListArray::try_new( - Self::arrow_datatype(), + Self::arrow2_datatype(), offsets, { let offsets = arrow2::offset::Offsets::::try_from_lengths( @@ -139,7 +139,7 @@ impl ::re_types_core::Loggable for AffixFuzzer12 { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -153,7 +153,7 @@ impl ::re_types_core::Loggable for AffixFuzzer12 { .as_any() .downcast_ref::>() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) 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 945dea2c3b5a..05e6dc12830d 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer13.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer13.rs @@ -67,7 +67,7 @@ impl std::ops::DerefMut for AffixFuzzer13 { impl ::re_types_core::Loggable for AffixFuzzer13 { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::List(std::sync::Arc::new(Field::new( @@ -77,7 +77,7 @@ impl ::re_types_core::Loggable for AffixFuzzer13 { ))) } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -111,7 +111,7 @@ impl ::re_types_core::Loggable for AffixFuzzer13 { let data0_inner_data: Vec<_> = data0.into_iter().flatten().flatten().collect(); let data0_inner_bitmap: Option = None; ListArray::try_new( - Self::arrow_datatype(), + Self::arrow2_datatype(), offsets, { let offsets = arrow2::offset::Offsets::::try_from_lengths( @@ -139,7 +139,7 @@ impl ::re_types_core::Loggable for AffixFuzzer13 { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -153,7 +153,7 @@ impl ::re_types_core::Loggable for AffixFuzzer13 { .as_any() .downcast_ref::>() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) 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 be03f5900bf2..4687a179c300 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer14.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer14.rs @@ -66,17 +66,17 @@ impl std::ops::DerefMut for AffixFuzzer14 { impl ::re_types_core::Loggable for AffixFuzzer14 { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::testing::datatypes::AffixFuzzer3::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::testing::datatypes::AffixFuzzer3::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::testing::datatypes::AffixFuzzer3::to_arrow_opt(data.into_iter().map(|datum| { + crate::testing::datatypes::AffixFuzzer3::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -84,13 +84,13 @@ impl ::re_types_core::Loggable for AffixFuzzer14 { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::testing::datatypes::AffixFuzzer3::from_arrow_opt(arrow_data) + crate::testing::datatypes::AffixFuzzer3::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } 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 f0cb039bfcb9..f4e7b612d576 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer15.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer15.rs @@ -66,7 +66,7 @@ impl std::ops::DerefMut for AffixFuzzer15 { impl ::re_types_core::Loggable for AffixFuzzer15 { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::Union( @@ -77,7 +77,7 @@ impl ::re_types_core::Loggable for AffixFuzzer15 { "craziness", DataType::List(std::sync::Arc::new(Field::new( "item", - ::arrow_datatype(), + ::arrow2_datatype(), false, ))), false, @@ -97,7 +97,7 @@ impl ::re_types_core::Loggable for AffixFuzzer15 { ) } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -122,12 +122,12 @@ impl ::re_types_core::Loggable for AffixFuzzer15 { }; { _ = data0_bitmap; - crate::testing::datatypes::AffixFuzzer3::to_arrow_opt(data0)? + crate::testing::datatypes::AffixFuzzer3::to_arrow2_opt(data0)? } }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -137,7 +137,7 @@ impl ::re_types_core::Loggable for AffixFuzzer15 { use ::re_types_core::{Loggable as _, ResultExt as _}; use arrow2::{array::*, buffer::*, datatypes::*}; Ok( - crate::testing::datatypes::AffixFuzzer3::from_arrow_opt(arrow_data) + crate::testing::datatypes::AffixFuzzer3::from_arrow2_opt(arrow_data) .with_context("rerun.testing.components.AffixFuzzer15#single_optional_union")? .into_iter() .map(Ok) 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 90becc8d5799..219d7765f3ce 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer16.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer16.rs @@ -45,17 +45,17 @@ impl, T: IntoIterator impl ::re_types_core::Loggable for AffixFuzzer16 { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::List(std::sync::Arc::new(Field::new( "item", - ::arrow_datatype(), + ::arrow2_datatype(), false, ))) } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -89,11 +89,11 @@ impl ::re_types_core::Loggable for AffixFuzzer16 { let data0_inner_data: Vec<_> = data0.into_iter().flatten().flatten().collect(); let data0_inner_bitmap: Option = None; ListArray::try_new( - Self::arrow_datatype(), + Self::arrow2_datatype(), offsets, { _ = data0_inner_bitmap; - crate::testing::datatypes::AffixFuzzer3::to_arrow_opt( + crate::testing::datatypes::AffixFuzzer3::to_arrow2_opt( data0_inner_data.into_iter().map(Some), )? }, @@ -104,7 +104,7 @@ impl ::re_types_core::Loggable for AffixFuzzer16 { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -118,7 +118,7 @@ impl ::re_types_core::Loggable for AffixFuzzer16 { .as_any() .downcast_ref::>() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -128,7 +128,7 @@ impl ::re_types_core::Loggable for AffixFuzzer16 { } else { let arrow_data_inner = { let arrow_data_inner = &**arrow_data.values(); - crate::testing::datatypes::AffixFuzzer3::from_arrow_opt(arrow_data_inner) + crate::testing::datatypes::AffixFuzzer3::from_arrow2_opt(arrow_data_inner) .with_context( "rerun.testing.components.AffixFuzzer16#many_required_unions", )? 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 c380dbdbe64a..534a28d3be0b 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer17.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer17.rs @@ -45,17 +45,17 @@ impl, T: IntoIterator impl ::re_types_core::Loggable for AffixFuzzer17 { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::List(std::sync::Arc::new(Field::new( "item", - ::arrow_datatype(), + ::arrow2_datatype(), false, ))) } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -89,11 +89,11 @@ impl ::re_types_core::Loggable for AffixFuzzer17 { let data0_inner_data: Vec<_> = data0.into_iter().flatten().flatten().collect(); let data0_inner_bitmap: Option = None; ListArray::try_new( - Self::arrow_datatype(), + Self::arrow2_datatype(), offsets, { _ = data0_inner_bitmap; - crate::testing::datatypes::AffixFuzzer3::to_arrow_opt( + crate::testing::datatypes::AffixFuzzer3::to_arrow2_opt( data0_inner_data.into_iter().map(Some), )? }, @@ -104,7 +104,7 @@ impl ::re_types_core::Loggable for AffixFuzzer17 { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -118,7 +118,7 @@ impl ::re_types_core::Loggable for AffixFuzzer17 { .as_any() .downcast_ref::>() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -128,7 +128,7 @@ impl ::re_types_core::Loggable for AffixFuzzer17 { } else { let arrow_data_inner = { let arrow_data_inner = &**arrow_data.values(); - crate::testing::datatypes::AffixFuzzer3::from_arrow_opt(arrow_data_inner) + crate::testing::datatypes::AffixFuzzer3::from_arrow2_opt(arrow_data_inner) .with_context( "rerun.testing.components.AffixFuzzer17#many_optional_unions", )? 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 714bc2441f88..bc25d2cb4863 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer18.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer18.rs @@ -45,17 +45,17 @@ impl, T: IntoIterator impl ::re_types_core::Loggable for AffixFuzzer18 { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::List(std::sync::Arc::new(Field::new( "item", - ::arrow_datatype(), + ::arrow2_datatype(), false, ))) } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -89,11 +89,11 @@ impl ::re_types_core::Loggable for AffixFuzzer18 { let data0_inner_data: Vec<_> = data0.into_iter().flatten().flatten().collect(); let data0_inner_bitmap: Option = None; ListArray::try_new( - Self::arrow_datatype(), + Self::arrow2_datatype(), offsets, { _ = data0_inner_bitmap; - crate::testing::datatypes::AffixFuzzer4::to_arrow_opt( + crate::testing::datatypes::AffixFuzzer4::to_arrow2_opt( data0_inner_data.into_iter().map(Some), )? }, @@ -104,7 +104,7 @@ impl ::re_types_core::Loggable for AffixFuzzer18 { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -118,7 +118,7 @@ impl ::re_types_core::Loggable for AffixFuzzer18 { .as_any() .downcast_ref::>() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -128,7 +128,7 @@ impl ::re_types_core::Loggable for AffixFuzzer18 { } else { let arrow_data_inner = { let arrow_data_inner = &**arrow_data.values(); - crate::testing::datatypes::AffixFuzzer4::from_arrow_opt(arrow_data_inner) + crate::testing::datatypes::AffixFuzzer4::from_arrow2_opt(arrow_data_inner) .with_context( "rerun.testing.components.AffixFuzzer18#many_optional_unions", )? 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 d2c032b907ef..3faf8cb8f426 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer19.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer19.rs @@ -66,17 +66,17 @@ impl std::ops::DerefMut for AffixFuzzer19 { impl ::re_types_core::Loggable for AffixFuzzer19 { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::testing::datatypes::AffixFuzzer5::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::testing::datatypes::AffixFuzzer5::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::testing::datatypes::AffixFuzzer5::to_arrow_opt(data.into_iter().map(|datum| { + crate::testing::datatypes::AffixFuzzer5::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -84,13 +84,13 @@ impl ::re_types_core::Loggable for AffixFuzzer19 { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::testing::datatypes::AffixFuzzer5::from_arrow_opt(arrow_data) + crate::testing::datatypes::AffixFuzzer5::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } 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 82fb7a5be685..6e08ac4ae15b 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer2.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer2.rs @@ -66,17 +66,17 @@ impl std::ops::DerefMut for AffixFuzzer2 { impl ::re_types_core::Loggable for AffixFuzzer2 { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::testing::datatypes::AffixFuzzer1::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::testing::datatypes::AffixFuzzer1::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::testing::datatypes::AffixFuzzer1::to_arrow_opt(data.into_iter().map(|datum| { + crate::testing::datatypes::AffixFuzzer1::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -84,13 +84,13 @@ impl ::re_types_core::Loggable for AffixFuzzer2 { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::testing::datatypes::AffixFuzzer1::from_arrow_opt(arrow_data) + crate::testing::datatypes::AffixFuzzer1::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } 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 9008a0b2821c..5b11f9882311 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer20.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer20.rs @@ -66,17 +66,17 @@ impl std::ops::DerefMut for AffixFuzzer20 { impl ::re_types_core::Loggable for AffixFuzzer20 { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::testing::datatypes::AffixFuzzer20::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::testing::datatypes::AffixFuzzer20::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::testing::datatypes::AffixFuzzer20::to_arrow_opt(data.into_iter().map(|datum| { + crate::testing::datatypes::AffixFuzzer20::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -84,13 +84,13 @@ impl ::re_types_core::Loggable for AffixFuzzer20 { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::testing::datatypes::AffixFuzzer20::from_arrow_opt(arrow_data) + crate::testing::datatypes::AffixFuzzer20::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } 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 3ee032822b9b..59a83ee8b033 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer21.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer21.rs @@ -66,17 +66,17 @@ impl std::ops::DerefMut for AffixFuzzer21 { impl ::re_types_core::Loggable for AffixFuzzer21 { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::testing::datatypes::AffixFuzzer21::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::testing::datatypes::AffixFuzzer21::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::testing::datatypes::AffixFuzzer21::to_arrow_opt(data.into_iter().map(|datum| { + crate::testing::datatypes::AffixFuzzer21::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -84,13 +84,13 @@ impl ::re_types_core::Loggable for AffixFuzzer21 { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::testing::datatypes::AffixFuzzer21::from_arrow_opt(arrow_data) + crate::testing::datatypes::AffixFuzzer21::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } 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 4e7e70e7434d..702a930cd779 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer22.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer22.rs @@ -66,7 +66,7 @@ impl std::ops::DerefMut for AffixFuzzer22 { impl ::re_types_core::Loggable for AffixFuzzer22 { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::Struct(std::sync::Arc::new(vec![Field::new( @@ -79,7 +79,7 @@ impl ::re_types_core::Loggable for AffixFuzzer22 { )])) } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -104,12 +104,12 @@ impl ::re_types_core::Loggable for AffixFuzzer22 { }; { _ = data0_bitmap; - crate::testing::datatypes::AffixFuzzer22::to_arrow_opt(data0)? + crate::testing::datatypes::AffixFuzzer22::to_arrow2_opt(data0)? } }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -119,7 +119,7 @@ impl ::re_types_core::Loggable for AffixFuzzer22 { use ::re_types_core::{Loggable as _, ResultExt as _}; use arrow2::{array::*, buffer::*, datatypes::*}; Ok( - crate::testing::datatypes::AffixFuzzer22::from_arrow_opt(arrow_data) + crate::testing::datatypes::AffixFuzzer22::from_arrow2_opt(arrow_data) .with_context("rerun.testing.components.AffixFuzzer22#nullable_nested_array")? .into_iter() .map(Ok) 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 08a9e59fe5c1..9ba6cfddf4b1 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer23.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer23.rs @@ -66,24 +66,24 @@ impl std::ops::DerefMut for AffixFuzzer23 { impl ::re_types_core::Loggable for AffixFuzzer23 { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::Struct(std::sync::Arc::new(vec![ Field::new( "value1", - ::arrow_datatype(), + ::arrow2_datatype(), false, ), Field::new( "value2", - ::arrow_datatype(), + ::arrow2_datatype(), true, ), ])) } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -108,12 +108,12 @@ impl ::re_types_core::Loggable for AffixFuzzer23 { }; { _ = data0_bitmap; - crate::testing::datatypes::MultiEnum::to_arrow_opt(data0)? + crate::testing::datatypes::MultiEnum::to_arrow2_opt(data0)? } }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -123,7 +123,7 @@ impl ::re_types_core::Loggable for AffixFuzzer23 { use ::re_types_core::{Loggable as _, ResultExt as _}; use arrow2::{array::*, buffer::*, datatypes::*}; Ok( - crate::testing::datatypes::MultiEnum::from_arrow_opt(arrow_data) + crate::testing::datatypes::MultiEnum::from_arrow2_opt(arrow_data) .with_context("rerun.testing.components.AffixFuzzer23#multi_enum")? .into_iter() .map(Ok) 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 9e66eb630274..af35a0419554 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer3.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer3.rs @@ -66,17 +66,17 @@ impl std::ops::DerefMut for AffixFuzzer3 { impl ::re_types_core::Loggable for AffixFuzzer3 { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::testing::datatypes::AffixFuzzer1::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::testing::datatypes::AffixFuzzer1::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::testing::datatypes::AffixFuzzer1::to_arrow_opt(data.into_iter().map(|datum| { + crate::testing::datatypes::AffixFuzzer1::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -84,13 +84,13 @@ impl ::re_types_core::Loggable for AffixFuzzer3 { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::testing::datatypes::AffixFuzzer1::from_arrow_opt(arrow_data) + crate::testing::datatypes::AffixFuzzer1::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } 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 b133db98b95a..4ca219066dcc 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer4.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer4.rs @@ -66,7 +66,7 @@ impl std::ops::DerefMut for AffixFuzzer4 { impl ::re_types_core::Loggable for AffixFuzzer4 { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::Struct(std::sync::Arc::new(vec![ @@ -103,14 +103,14 @@ impl ::re_types_core::Loggable for AffixFuzzer4 { Field::new("flattened_scalar", DataType::Float32, false), Field::new( "almost_flattened_scalar", - ::arrow_datatype(), + ::arrow2_datatype(), false, ), Field::new("from_parent", DataType::Boolean, true), ])) } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -135,12 +135,12 @@ impl ::re_types_core::Loggable for AffixFuzzer4 { }; { _ = data0_bitmap; - crate::testing::datatypes::AffixFuzzer1::to_arrow_opt(data0)? + crate::testing::datatypes::AffixFuzzer1::to_arrow2_opt(data0)? } }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -150,7 +150,7 @@ impl ::re_types_core::Loggable for AffixFuzzer4 { use ::re_types_core::{Loggable as _, ResultExt as _}; use arrow2::{array::*, buffer::*, datatypes::*}; Ok( - crate::testing::datatypes::AffixFuzzer1::from_arrow_opt(arrow_data) + crate::testing::datatypes::AffixFuzzer1::from_arrow2_opt(arrow_data) .with_context("rerun.testing.components.AffixFuzzer4#single_optional")? .into_iter() .map(Ok) 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 9d741271a565..c512bb1a6e18 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer5.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer5.rs @@ -66,7 +66,7 @@ impl std::ops::DerefMut for AffixFuzzer5 { impl ::re_types_core::Loggable for AffixFuzzer5 { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::Struct(std::sync::Arc::new(vec![ @@ -103,14 +103,14 @@ impl ::re_types_core::Loggable for AffixFuzzer5 { Field::new("flattened_scalar", DataType::Float32, false), Field::new( "almost_flattened_scalar", - ::arrow_datatype(), + ::arrow2_datatype(), false, ), Field::new("from_parent", DataType::Boolean, true), ])) } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -135,12 +135,12 @@ impl ::re_types_core::Loggable for AffixFuzzer5 { }; { _ = data0_bitmap; - crate::testing::datatypes::AffixFuzzer1::to_arrow_opt(data0)? + crate::testing::datatypes::AffixFuzzer1::to_arrow2_opt(data0)? } }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -150,7 +150,7 @@ impl ::re_types_core::Loggable for AffixFuzzer5 { use ::re_types_core::{Loggable as _, ResultExt as _}; use arrow2::{array::*, buffer::*, datatypes::*}; Ok( - crate::testing::datatypes::AffixFuzzer1::from_arrow_opt(arrow_data) + crate::testing::datatypes::AffixFuzzer1::from_arrow2_opt(arrow_data) .with_context("rerun.testing.components.AffixFuzzer5#single_optional")? .into_iter() .map(Ok) 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 bbd60a73034c..2262d272706f 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer6.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer6.rs @@ -66,7 +66,7 @@ impl std::ops::DerefMut for AffixFuzzer6 { impl ::re_types_core::Loggable for AffixFuzzer6 { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::Struct(std::sync::Arc::new(vec![ @@ -103,14 +103,14 @@ impl ::re_types_core::Loggable for AffixFuzzer6 { Field::new("flattened_scalar", DataType::Float32, false), Field::new( "almost_flattened_scalar", - ::arrow_datatype(), + ::arrow2_datatype(), false, ), Field::new("from_parent", DataType::Boolean, true), ])) } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -135,12 +135,12 @@ impl ::re_types_core::Loggable for AffixFuzzer6 { }; { _ = data0_bitmap; - crate::testing::datatypes::AffixFuzzer1::to_arrow_opt(data0)? + crate::testing::datatypes::AffixFuzzer1::to_arrow2_opt(data0)? } }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -150,7 +150,7 @@ impl ::re_types_core::Loggable for AffixFuzzer6 { use ::re_types_core::{Loggable as _, ResultExt as _}; use arrow2::{array::*, buffer::*, datatypes::*}; Ok( - crate::testing::datatypes::AffixFuzzer1::from_arrow_opt(arrow_data) + crate::testing::datatypes::AffixFuzzer1::from_arrow2_opt(arrow_data) .with_context("rerun.testing.components.AffixFuzzer6#single_optional")? .into_iter() .map(Ok) 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 a123532f5ca0..aa10689cd4a2 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer7.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer7.rs @@ -45,17 +45,17 @@ impl, T: IntoIterator impl ::re_types_core::Loggable for AffixFuzzer7 { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::List(std::sync::Arc::new(Field::new( "item", - ::arrow_datatype(), + ::arrow2_datatype(), false, ))) } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -89,11 +89,11 @@ impl ::re_types_core::Loggable for AffixFuzzer7 { let data0_inner_data: Vec<_> = data0.into_iter().flatten().flatten().collect(); let data0_inner_bitmap: Option = None; ListArray::try_new( - Self::arrow_datatype(), + Self::arrow2_datatype(), offsets, { _ = data0_inner_bitmap; - crate::testing::datatypes::AffixFuzzer1::to_arrow_opt( + crate::testing::datatypes::AffixFuzzer1::to_arrow2_opt( data0_inner_data.into_iter().map(Some), )? }, @@ -104,7 +104,7 @@ impl ::re_types_core::Loggable for AffixFuzzer7 { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -118,7 +118,7 @@ impl ::re_types_core::Loggable for AffixFuzzer7 { .as_any() .downcast_ref::>() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -128,7 +128,7 @@ impl ::re_types_core::Loggable for AffixFuzzer7 { } else { let arrow_data_inner = { let arrow_data_inner = &**arrow_data.values(); - crate::testing::datatypes::AffixFuzzer1::from_arrow_opt(arrow_data_inner) + crate::testing::datatypes::AffixFuzzer1::from_arrow2_opt(arrow_data_inner) .with_context("rerun.testing.components.AffixFuzzer7#many_optional")? .into_iter() .collect::>() 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 f0f5efc763e7..6ad9b5b2ccd9 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer8.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer8.rs @@ -67,13 +67,13 @@ impl std::ops::DerefMut for AffixFuzzer8 { impl ::re_types_core::Loggable for AffixFuzzer8 { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::Float32 } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -97,7 +97,7 @@ impl ::re_types_core::Loggable for AffixFuzzer8 { any_nones.then(|| somes.into()) }; PrimitiveArray::new( - Self::arrow_datatype(), + Self::arrow2_datatype(), data0.into_iter().map(|v| v.unwrap_or_default()).collect(), data0_bitmap, ) @@ -105,7 +105,7 @@ impl ::re_types_core::Loggable for AffixFuzzer8 { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -118,7 +118,7 @@ impl ::re_types_core::Loggable for AffixFuzzer8 { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) 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 f22b296b73ce..10b644a52364 100644 --- a/crates/store/re_types/src/testing/components/affix_fuzzer9.rs +++ b/crates/store/re_types/src/testing/components/affix_fuzzer9.rs @@ -67,13 +67,13 @@ impl std::ops::DerefMut for AffixFuzzer9 { impl ::re_types_core::Loggable for AffixFuzzer9 { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::Utf8 } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -109,7 +109,7 @@ impl ::re_types_core::Loggable for AffixFuzzer9 { #[allow(unsafe_code, clippy::undocumented_unsafe_blocks)] unsafe { Utf8Array::::new_unchecked( - Self::arrow_datatype(), + Self::arrow2_datatype(), offsets, inner_data, data0_bitmap, @@ -120,7 +120,7 @@ impl ::re_types_core::Loggable for AffixFuzzer9 { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -134,7 +134,7 @@ impl ::re_types_core::Loggable for AffixFuzzer9 { .as_any() .downcast_ref::>() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) 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 cb43031ebae8..d22efc615d8f 100644 --- a/crates/store/re_types/src/testing/datatypes/affix_fuzzer1.rs +++ b/crates/store/re_types/src/testing/datatypes/affix_fuzzer1.rs @@ -63,7 +63,7 @@ impl ::re_types_core::SizeBytes for AffixFuzzer1 { impl ::re_types_core::Loggable for AffixFuzzer1 { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::Struct(std::sync::Arc::new(vec![ @@ -100,14 +100,14 @@ impl ::re_types_core::Loggable for AffixFuzzer1 { Field::new("flattened_scalar", DataType::Float32, false), Field::new( "almost_flattened_scalar", - ::arrow_datatype(), + ::arrow2_datatype(), false, ), Field::new("from_parent", DataType::Boolean, true), ])) } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -130,7 +130,7 @@ impl ::re_types_core::Loggable for AffixFuzzer1 { any_nones.then(|| somes.into()) }; StructArray::new( - Self::arrow_datatype(), + Self::arrow2_datatype(), vec![ { let (somes, single_float_optional): (Vec<_>, Vec<_>) = data @@ -452,7 +452,7 @@ impl ::re_types_core::Loggable for AffixFuzzer1 { }; { _ = almost_flattened_scalar_bitmap; - crate::testing::datatypes::FlattenedScalar::to_arrow_opt( + crate::testing::datatypes::FlattenedScalar::to_arrow2_opt( almost_flattened_scalar, )? } @@ -489,7 +489,7 @@ impl ::re_types_core::Loggable for AffixFuzzer1 { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -503,7 +503,7 @@ impl ::re_types_core::Loggable for AffixFuzzer1 { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -521,7 +521,7 @@ impl ::re_types_core::Loggable for AffixFuzzer1 { let single_float_optional = { if !arrays_by_name.contains_key("single_float_optional") { return Err(DeserializationError::missing_struct_field( - Self::arrow_datatype(), + Self::arrow2_datatype(), "single_float_optional", )) .with_context("rerun.testing.datatypes.AffixFuzzer1"); @@ -542,7 +542,7 @@ impl ::re_types_core::Loggable for AffixFuzzer1 { let single_string_required = { if !arrays_by_name.contains_key("single_string_required") { return Err(DeserializationError::missing_struct_field( - Self::arrow_datatype(), + Self::arrow2_datatype(), "single_string_required", )) .with_context("rerun.testing.datatypes.AffixFuzzer1"); @@ -599,7 +599,7 @@ impl ::re_types_core::Loggable for AffixFuzzer1 { let single_string_optional = { if !arrays_by_name.contains_key("single_string_optional") { return Err(DeserializationError::missing_struct_field( - Self::arrow_datatype(), + Self::arrow2_datatype(), "single_string_optional", )) .with_context("rerun.testing.datatypes.AffixFuzzer1"); @@ -656,7 +656,7 @@ impl ::re_types_core::Loggable for AffixFuzzer1 { let many_floats_optional = { if !arrays_by_name.contains_key("many_floats_optional") { return Err(DeserializationError::missing_struct_field( - Self::arrow_datatype(), + Self::arrow2_datatype(), "many_floats_optional", )) .with_context("rerun.testing.datatypes.AffixFuzzer1"); @@ -731,7 +731,7 @@ impl ::re_types_core::Loggable for AffixFuzzer1 { let many_strings_required = { if !arrays_by_name.contains_key("many_strings_required") { return Err(DeserializationError::missing_struct_field( - Self::arrow_datatype(), + Self::arrow2_datatype(), "many_strings_required", )) .with_context("rerun.testing.datatypes.AffixFuzzer1"); @@ -852,7 +852,7 @@ impl ::re_types_core::Loggable for AffixFuzzer1 { let many_strings_optional = { if !arrays_by_name.contains_key("many_strings_optional") { return Err(DeserializationError::missing_struct_field( - Self::arrow_datatype(), + Self::arrow2_datatype(), "many_strings_optional", )) .with_context("rerun.testing.datatypes.AffixFuzzer1"); @@ -973,7 +973,7 @@ impl ::re_types_core::Loggable for AffixFuzzer1 { let flattened_scalar = { if !arrays_by_name.contains_key("flattened_scalar") { return Err(DeserializationError::missing_struct_field( - Self::arrow_datatype(), + Self::arrow2_datatype(), "flattened_scalar", )) .with_context("rerun.testing.datatypes.AffixFuzzer1"); @@ -994,13 +994,13 @@ impl ::re_types_core::Loggable for AffixFuzzer1 { let almost_flattened_scalar = { if !arrays_by_name.contains_key("almost_flattened_scalar") { return Err(DeserializationError::missing_struct_field( - Self::arrow_datatype(), + Self::arrow2_datatype(), "almost_flattened_scalar", )) .with_context("rerun.testing.datatypes.AffixFuzzer1"); } let arrow_data = &**arrays_by_name["almost_flattened_scalar"]; - crate::testing::datatypes::FlattenedScalar::from_arrow_opt(arrow_data) + crate::testing::datatypes::FlattenedScalar::from_arrow2_opt(arrow_data) .with_context( "rerun.testing.datatypes.AffixFuzzer1#almost_flattened_scalar", )? @@ -1009,7 +1009,7 @@ impl ::re_types_core::Loggable for AffixFuzzer1 { let from_parent = { if !arrays_by_name.contains_key("from_parent") { return Err(DeserializationError::missing_struct_field( - Self::arrow_datatype(), + Self::arrow2_datatype(), "from_parent", )) .with_context("rerun.testing.datatypes.AffixFuzzer1"); 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 179fa1ea0a6e..7c95e803d809 100644 --- a/crates/store/re_types/src/testing/datatypes/affix_fuzzer2.rs +++ b/crates/store/re_types/src/testing/datatypes/affix_fuzzer2.rs @@ -51,13 +51,13 @@ impl From for Option { impl ::re_types_core::Loggable for AffixFuzzer2 { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::Float32 } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -81,7 +81,7 @@ impl ::re_types_core::Loggable for AffixFuzzer2 { any_nones.then(|| somes.into()) }; PrimitiveArray::new( - Self::arrow_datatype(), + Self::arrow2_datatype(), data0.into_iter().map(|v| v.unwrap_or_default()).collect(), data0_bitmap, ) @@ -89,7 +89,7 @@ impl ::re_types_core::Loggable for AffixFuzzer2 { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -102,7 +102,7 @@ impl ::re_types_core::Loggable for AffixFuzzer2 { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) 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 ceb389037160..95e91b3ac20e 100644 --- a/crates/store/re_types/src/testing/datatypes/affix_fuzzer20.rs +++ b/crates/store/re_types/src/testing/datatypes/affix_fuzzer20.rs @@ -41,24 +41,24 @@ impl ::re_types_core::SizeBytes for AffixFuzzer20 { impl ::re_types_core::Loggable for AffixFuzzer20 { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::Struct(std::sync::Arc::new(vec![ Field::new( "p", - ::arrow_datatype(), + ::arrow2_datatype(), false, ), Field::new( "s", - ::arrow_datatype(), + ::arrow2_datatype(), false, ), ])) } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -81,7 +81,7 @@ impl ::re_types_core::Loggable for AffixFuzzer20 { any_nones.then(|| somes.into()) }; StructArray::new( - Self::arrow_datatype(), + Self::arrow2_datatype(), vec![ { let (somes, p): (Vec<_>, Vec<_>) = data @@ -148,7 +148,7 @@ impl ::re_types_core::Loggable for AffixFuzzer20 { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -162,7 +162,7 @@ impl ::re_types_core::Loggable for AffixFuzzer20 { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -180,7 +180,7 @@ impl ::re_types_core::Loggable for AffixFuzzer20 { let p = { if !arrays_by_name.contains_key("p") { return Err(DeserializationError::missing_struct_field( - Self::arrow_datatype(), + Self::arrow2_datatype(), "p", )) .with_context("rerun.testing.datatypes.AffixFuzzer20"); @@ -204,7 +204,7 @@ impl ::re_types_core::Loggable for AffixFuzzer20 { let s = { if !arrays_by_name.contains_key("s") { return Err(DeserializationError::missing_struct_field( - Self::arrow_datatype(), + Self::arrow2_datatype(), "s", )) .with_context("rerun.testing.datatypes.AffixFuzzer20"); 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 6c16fe95ebeb..acec414caa74 100644 --- a/crates/store/re_types/src/testing/datatypes/affix_fuzzer21.rs +++ b/crates/store/re_types/src/testing/datatypes/affix_fuzzer21.rs @@ -41,7 +41,7 @@ impl ::re_types_core::SizeBytes for AffixFuzzer21 { impl ::re_types_core::Loggable for AffixFuzzer21 { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::Struct(std::sync::Arc::new(vec![ @@ -58,7 +58,7 @@ impl ::re_types_core::Loggable for AffixFuzzer21 { ])) } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -81,7 +81,7 @@ impl ::re_types_core::Loggable for AffixFuzzer21 { any_nones.then(|| somes.into()) }; StructArray::new( - Self::arrow_datatype(), + Self::arrow2_datatype(), vec![ { let (somes, single_half): (Vec<_>, Vec<_>) = data @@ -158,7 +158,7 @@ impl ::re_types_core::Loggable for AffixFuzzer21 { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -172,7 +172,7 @@ impl ::re_types_core::Loggable for AffixFuzzer21 { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -190,7 +190,7 @@ impl ::re_types_core::Loggable for AffixFuzzer21 { let single_half = { if !arrays_by_name.contains_key("single_half") { return Err(DeserializationError::missing_struct_field( - Self::arrow_datatype(), + Self::arrow2_datatype(), "single_half", )) .with_context("rerun.testing.datatypes.AffixFuzzer21"); @@ -211,7 +211,7 @@ impl ::re_types_core::Loggable for AffixFuzzer21 { let many_halves = { if !arrays_by_name.contains_key("many_halves") { return Err(DeserializationError::missing_struct_field( - Self::arrow_datatype(), + Self::arrow2_datatype(), "many_halves", )) .with_context("rerun.testing.datatypes.AffixFuzzer21"); 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 a826fe086900..a0d493405db4 100644 --- a/crates/store/re_types/src/testing/datatypes/affix_fuzzer22.rs +++ b/crates/store/re_types/src/testing/datatypes/affix_fuzzer22.rs @@ -53,7 +53,7 @@ impl From for [u8; 4usize] { impl ::re_types_core::Loggable for AffixFuzzer22 { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::Struct(std::sync::Arc::new(vec![Field::new( @@ -66,7 +66,7 @@ impl ::re_types_core::Loggable for AffixFuzzer22 { )])) } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -89,7 +89,7 @@ impl ::re_types_core::Loggable for AffixFuzzer22 { any_nones.then(|| somes.into()) }; StructArray::new( - Self::arrow_datatype(), + Self::arrow2_datatype(), vec![{ let (somes, fixed_sized_native): (Vec<_>, Vec<_>) = data .iter() @@ -145,7 +145,7 @@ impl ::re_types_core::Loggable for AffixFuzzer22 { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -159,7 +159,7 @@ impl ::re_types_core::Loggable for AffixFuzzer22 { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -177,7 +177,7 @@ impl ::re_types_core::Loggable for AffixFuzzer22 { let fixed_sized_native = { if !arrays_by_name.contains_key("fixed_sized_native") { return Err(DeserializationError::missing_struct_field( - Self::arrow_datatype(), + Self::arrow2_datatype(), "fixed_sized_native", )) .with_context("rerun.testing.datatypes.AffixFuzzer22"); 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 9bf5051d454e..61c3daf2a70c 100644 --- a/crates/store/re_types/src/testing/datatypes/affix_fuzzer3.rs +++ b/crates/store/re_types/src/testing/datatypes/affix_fuzzer3.rs @@ -50,7 +50,7 @@ impl ::re_types_core::SizeBytes for AffixFuzzer3 { impl ::re_types_core::Loggable for AffixFuzzer3 { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::Union( @@ -61,7 +61,7 @@ impl ::re_types_core::Loggable for AffixFuzzer3 { "craziness", DataType::List(std::sync::Arc::new(Field::new( "item", - ::arrow_datatype(), + ::arrow2_datatype(), false, ))), false, @@ -81,7 +81,7 @@ impl ::re_types_core::Loggable for AffixFuzzer3 { ) } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -149,13 +149,13 @@ impl ::re_types_core::Loggable for AffixFuzzer3 { ListArray::try_new( DataType::List(std::sync::Arc::new(Field::new( "item", - ::arrow_datatype(), + ::arrow2_datatype(), false, ))), offsets, { _ = craziness_inner_bitmap; - crate::testing::datatypes::AffixFuzzer1::to_arrow_opt( + crate::testing::datatypes::AffixFuzzer1::to_arrow2_opt( craziness_inner_data.into_iter().map(Some), )? }, @@ -239,11 +239,11 @@ impl ::re_types_core::Loggable for AffixFuzzer3 { }) .collect() }); - UnionArray::new(Self::arrow_datatype(), types, fields, offsets).boxed() + UnionArray::new(Self::arrow2_datatype(), types, fields, offsets).boxed() }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -257,7 +257,7 @@ impl ::re_types_core::Loggable for AffixFuzzer3 { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -270,7 +270,7 @@ impl ::re_types_core::Loggable for AffixFuzzer3 { let arrow_data_offsets = arrow_data .offsets() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -312,7 +312,7 @@ impl ::re_types_core::Loggable for AffixFuzzer3 { .ok_or_else(|| { let expected = DataType::List(std::sync::Arc::new(Field::new( "item", - ::arrow_datatype(), + ::arrow2_datatype(), false, ))); let actual = arrow_data.data_type().clone(); @@ -324,7 +324,7 @@ impl ::re_types_core::Loggable for AffixFuzzer3 { } else { let arrow_data_inner = { let arrow_data_inner = &**arrow_data.values(); - crate::testing::datatypes::AffixFuzzer1::from_arrow_opt( + crate::testing::datatypes::AffixFuzzer1::from_arrow2_opt( arrow_data_inner, ) .with_context("rerun.testing.datatypes.AffixFuzzer3#craziness")? @@ -531,7 +531,7 @@ impl ::re_types_core::Loggable for AffixFuzzer3 { _ => { return Err( DeserializationError::missing_union_arm( - Self::arrow_datatype(), + Self::arrow2_datatype(), "", *typ as _, ), 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 3488a15d4987..d9dd23bdda6a 100644 --- a/crates/store/re_types/src/testing/datatypes/affix_fuzzer4.rs +++ b/crates/store/re_types/src/testing/datatypes/affix_fuzzer4.rs @@ -45,7 +45,7 @@ impl ::re_types_core::SizeBytes for AffixFuzzer4 { impl ::re_types_core::Loggable for AffixFuzzer4 { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::Union( @@ -53,14 +53,14 @@ impl ::re_types_core::Loggable for AffixFuzzer4 { Field::new("_null_markers", DataType::Null, true), Field::new( "single_required", - ::arrow_datatype(), + ::arrow2_datatype(), false, ), Field::new( "many_required", DataType::List(std::sync::Arc::new(Field::new( "item", - ::arrow_datatype(), + ::arrow2_datatype(), false, ))), false, @@ -71,7 +71,7 @@ impl ::re_types_core::Loggable for AffixFuzzer4 { ) } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -111,7 +111,7 @@ impl ::re_types_core::Loggable for AffixFuzzer4 { let single_required_bitmap: Option = None; { _ = single_required_bitmap; - crate::testing::datatypes::AffixFuzzer3::to_arrow_opt( + crate::testing::datatypes::AffixFuzzer3::to_arrow2_opt( single_required.into_iter().map(Some), )? } @@ -137,13 +137,13 @@ impl ::re_types_core::Loggable for AffixFuzzer4 { ListArray::try_new( DataType::List(std::sync::Arc::new(Field::new( "item", - ::arrow_datatype(), + ::arrow2_datatype(), false, ))), offsets, { _ = many_required_inner_bitmap; - crate::testing::datatypes::AffixFuzzer3::to_arrow_opt( + crate::testing::datatypes::AffixFuzzer3::to_arrow2_opt( many_required_inner_data.into_iter().map(Some), )? }, @@ -177,11 +177,11 @@ impl ::re_types_core::Loggable for AffixFuzzer4 { }) .collect() }); - UnionArray::new(Self::arrow_datatype(), types, fields, offsets).boxed() + UnionArray::new(Self::arrow2_datatype(), types, fields, offsets).boxed() }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -195,7 +195,7 @@ impl ::re_types_core::Loggable for AffixFuzzer4 { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -208,7 +208,7 @@ impl ::re_types_core::Loggable for AffixFuzzer4 { let arrow_data_offsets = arrow_data .offsets() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -225,7 +225,7 @@ impl ::re_types_core::Loggable for AffixFuzzer4 { return Ok(Vec::new()); } let arrow_data = &*arrow_data_arrays[1usize]; - crate::testing::datatypes::AffixFuzzer3::from_arrow_opt(arrow_data) + crate::testing::datatypes::AffixFuzzer3::from_arrow2_opt(arrow_data) .with_context("rerun.testing.datatypes.AffixFuzzer4#single_required")? .into_iter() .collect::>() @@ -242,7 +242,7 @@ impl ::re_types_core::Loggable for AffixFuzzer4 { .ok_or_else(|| { let expected = DataType::List(std::sync::Arc::new(Field::new( "item", - ::arrow_datatype(), + ::arrow2_datatype(), false, ))); let actual = arrow_data.data_type().clone(); @@ -254,7 +254,7 @@ impl ::re_types_core::Loggable for AffixFuzzer4 { } else { let arrow_data_inner = { let arrow_data_inner = &**arrow_data.values(); - crate::testing::datatypes::AffixFuzzer3::from_arrow_opt( + crate::testing::datatypes::AffixFuzzer3::from_arrow2_opt( arrow_data_inner, ) .with_context("rerun.testing.datatypes.AffixFuzzer4#many_required")? @@ -344,7 +344,7 @@ impl ::re_types_core::Loggable for AffixFuzzer4 { }), _ => { return Err(DeserializationError::missing_union_arm( - Self::arrow_datatype(), + Self::arrow2_datatype(), "", *typ as _, )); 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 853bdd8f1237..73539660664a 100644 --- a/crates/store/re_types/src/testing/datatypes/affix_fuzzer5.rs +++ b/crates/store/re_types/src/testing/datatypes/affix_fuzzer5.rs @@ -70,17 +70,17 @@ impl std::ops::DerefMut for AffixFuzzer5 { impl ::re_types_core::Loggable for AffixFuzzer5 { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::Struct(std::sync::Arc::new(vec![Field::new( "single_optional_union", - ::arrow_datatype(), + ::arrow2_datatype(), true, )])) } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -103,7 +103,7 @@ impl ::re_types_core::Loggable for AffixFuzzer5 { any_nones.then(|| somes.into()) }; StructArray::new( - Self::arrow_datatype(), + Self::arrow2_datatype(), vec![{ let (somes, single_optional_union): (Vec<_>, Vec<_>) = data .iter() @@ -121,7 +121,7 @@ impl ::re_types_core::Loggable for AffixFuzzer5 { }; { _ = single_optional_union_bitmap; - crate::testing::datatypes::AffixFuzzer4::to_arrow_opt( + crate::testing::datatypes::AffixFuzzer4::to_arrow2_opt( single_optional_union, )? } @@ -132,7 +132,7 @@ impl ::re_types_core::Loggable for AffixFuzzer5 { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -146,7 +146,7 @@ impl ::re_types_core::Loggable for AffixFuzzer5 { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -164,13 +164,13 @@ impl ::re_types_core::Loggable for AffixFuzzer5 { let single_optional_union = { if !arrays_by_name.contains_key("single_optional_union") { return Err(DeserializationError::missing_struct_field( - Self::arrow_datatype(), + Self::arrow2_datatype(), "single_optional_union", )) .with_context("rerun.testing.datatypes.AffixFuzzer5"); } let arrow_data = &**arrays_by_name["single_optional_union"]; - crate::testing::datatypes::AffixFuzzer4::from_arrow_opt(arrow_data) + crate::testing::datatypes::AffixFuzzer4::from_arrow2_opt(arrow_data) .with_context("rerun.testing.datatypes.AffixFuzzer5#single_optional_union")? .into_iter() }; 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 498aa76e6a12..a9dc54bd359c 100644 --- a/crates/store/re_types/src/testing/datatypes/enum_test.rs +++ b/crates/store/re_types/src/testing/datatypes/enum_test.rs @@ -98,13 +98,13 @@ impl std::fmt::Display for EnumTest { impl ::re_types_core::Loggable for EnumTest { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::UInt8 } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -128,7 +128,7 @@ impl ::re_types_core::Loggable for EnumTest { any_nones.then(|| somes.into()) }; PrimitiveArray::new( - Self::arrow_datatype(), + Self::arrow2_datatype(), data0.into_iter().map(|v| v.unwrap_or_default()).collect(), data0_bitmap, ) @@ -136,7 +136,7 @@ impl ::re_types_core::Loggable for EnumTest { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -149,7 +149,7 @@ impl ::re_types_core::Loggable for EnumTest { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -165,7 +165,7 @@ impl ::re_types_core::Loggable for EnumTest { Some(6) => Ok(Some(Self::Back)), None => Ok(None), Some(invalid) => Err(DeserializationError::missing_union_arm( - Self::arrow_datatype(), + Self::arrow2_datatype(), "", invalid as _, )), 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 6cfbd9bd4455..c2026cf16e19 100644 --- a/crates/store/re_types/src/testing/datatypes/flattened_scalar.rs +++ b/crates/store/re_types/src/testing/datatypes/flattened_scalar.rs @@ -53,7 +53,7 @@ impl From for f32 { impl ::re_types_core::Loggable for FlattenedScalar { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::Struct(std::sync::Arc::new(vec![Field::new( @@ -63,7 +63,7 @@ impl ::re_types_core::Loggable for FlattenedScalar { )])) } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -86,7 +86,7 @@ impl ::re_types_core::Loggable for FlattenedScalar { any_nones.then(|| somes.into()) }; StructArray::new( - Self::arrow_datatype(), + Self::arrow2_datatype(), vec![{ let (somes, value): (Vec<_>, Vec<_>) = data .iter() @@ -112,7 +112,7 @@ impl ::re_types_core::Loggable for FlattenedScalar { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -126,7 +126,7 @@ impl ::re_types_core::Loggable for FlattenedScalar { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -144,7 +144,7 @@ impl ::re_types_core::Loggable for FlattenedScalar { let value = { if !arrays_by_name.contains_key("value") { return Err(DeserializationError::missing_struct_field( - Self::arrow_datatype(), + Self::arrow2_datatype(), "value", )) .with_context("rerun.testing.datatypes.FlattenedScalar"); 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 a6a82f0ec089..dcd3d57bac70 100644 --- a/crates/store/re_types/src/testing/datatypes/multi_enum.rs +++ b/crates/store/re_types/src/testing/datatypes/multi_enum.rs @@ -44,24 +44,24 @@ impl ::re_types_core::SizeBytes for MultiEnum { impl ::re_types_core::Loggable for MultiEnum { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::Struct(std::sync::Arc::new(vec![ Field::new( "value1", - ::arrow_datatype(), + ::arrow2_datatype(), false, ), Field::new( "value2", - ::arrow_datatype(), + ::arrow2_datatype(), true, ), ])) } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -84,7 +84,7 @@ impl ::re_types_core::Loggable for MultiEnum { any_nones.then(|| somes.into()) }; StructArray::new( - Self::arrow_datatype(), + Self::arrow2_datatype(), vec![ { let (somes, value1): (Vec<_>, Vec<_>) = data @@ -100,7 +100,7 @@ impl ::re_types_core::Loggable for MultiEnum { }; { _ = value1_bitmap; - crate::testing::datatypes::EnumTest::to_arrow_opt(value1)? + crate::testing::datatypes::EnumTest::to_arrow2_opt(value1)? } }, { @@ -118,7 +118,7 @@ impl ::re_types_core::Loggable for MultiEnum { }; { _ = value2_bitmap; - crate::testing::datatypes::ValuedEnum::to_arrow_opt(value2)? + crate::testing::datatypes::ValuedEnum::to_arrow2_opt(value2)? } }, ], @@ -128,7 +128,7 @@ impl ::re_types_core::Loggable for MultiEnum { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -142,7 +142,7 @@ impl ::re_types_core::Loggable for MultiEnum { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -160,26 +160,26 @@ impl ::re_types_core::Loggable for MultiEnum { let value1 = { if !arrays_by_name.contains_key("value1") { return Err(DeserializationError::missing_struct_field( - Self::arrow_datatype(), + Self::arrow2_datatype(), "value1", )) .with_context("rerun.testing.datatypes.MultiEnum"); } let arrow_data = &**arrays_by_name["value1"]; - crate::testing::datatypes::EnumTest::from_arrow_opt(arrow_data) + crate::testing::datatypes::EnumTest::from_arrow2_opt(arrow_data) .with_context("rerun.testing.datatypes.MultiEnum#value1")? .into_iter() }; let value2 = { if !arrays_by_name.contains_key("value2") { return Err(DeserializationError::missing_struct_field( - Self::arrow_datatype(), + Self::arrow2_datatype(), "value2", )) .with_context("rerun.testing.datatypes.MultiEnum"); } let arrow_data = &**arrays_by_name["value2"]; - crate::testing::datatypes::ValuedEnum::from_arrow_opt(arrow_data) + crate::testing::datatypes::ValuedEnum::from_arrow2_opt(arrow_data) .with_context("rerun.testing.datatypes.MultiEnum#value2")? .into_iter() }; 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 f9c70c54b957..19909bf4eb34 100644 --- a/crates/store/re_types/src/testing/datatypes/primitive_component.rs +++ b/crates/store/re_types/src/testing/datatypes/primitive_component.rs @@ -52,13 +52,13 @@ impl From for u32 { impl ::re_types_core::Loggable for PrimitiveComponent { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::UInt32 } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -82,7 +82,7 @@ impl ::re_types_core::Loggable for PrimitiveComponent { any_nones.then(|| somes.into()) }; PrimitiveArray::new( - Self::arrow_datatype(), + Self::arrow2_datatype(), data0.into_iter().map(|v| v.unwrap_or_default()).collect(), data0_bitmap, ) @@ -90,7 +90,7 @@ impl ::re_types_core::Loggable for PrimitiveComponent { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -103,7 +103,7 @@ impl ::re_types_core::Loggable for PrimitiveComponent { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -118,7 +118,7 @@ impl ::re_types_core::Loggable for PrimitiveComponent { } #[inline] - fn from_arrow(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> + fn from_arrow2(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> where Self: Sized, { 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 8d3ceedddf6c..b3b776a761c4 100644 --- a/crates/store/re_types/src/testing/datatypes/string_component.rs +++ b/crates/store/re_types/src/testing/datatypes/string_component.rs @@ -52,13 +52,13 @@ impl From for ::re_types_core::ArrowString { impl ::re_types_core::Loggable for StringComponent { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::Utf8 } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -94,7 +94,7 @@ impl ::re_types_core::Loggable for StringComponent { #[allow(unsafe_code, clippy::undocumented_unsafe_blocks)] unsafe { Utf8Array::::new_unchecked( - Self::arrow_datatype(), + Self::arrow2_datatype(), offsets, inner_data, data0_bitmap, @@ -105,7 +105,7 @@ impl ::re_types_core::Loggable for StringComponent { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -119,7 +119,7 @@ impl ::re_types_core::Loggable for StringComponent { .as_any() .downcast_ref::>() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) 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 9c5716906b7d..fd4120ce6125 100644 --- a/crates/store/re_types/src/testing/datatypes/valued_enum.rs +++ b/crates/store/re_types/src/testing/datatypes/valued_enum.rs @@ -80,13 +80,13 @@ impl std::fmt::Display for ValuedEnum { impl ::re_types_core::Loggable for ValuedEnum { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::UInt8 } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -110,7 +110,7 @@ impl ::re_types_core::Loggable for ValuedEnum { any_nones.then(|| somes.into()) }; PrimitiveArray::new( - Self::arrow_datatype(), + Self::arrow2_datatype(), data0.into_iter().map(|v| v.unwrap_or_default()).collect(), data0_bitmap, ) @@ -118,7 +118,7 @@ impl ::re_types_core::Loggable for ValuedEnum { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -131,7 +131,7 @@ impl ::re_types_core::Loggable for ValuedEnum { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -145,7 +145,7 @@ impl ::re_types_core::Loggable for ValuedEnum { Some(42) => Ok(Some(Self::TheAnswer)), None => Ok(None), Some(invalid) => Err(DeserializationError::missing_union_arm( - Self::arrow_datatype(), + Self::arrow2_datatype(), "", invalid as _, )), diff --git a/crates/store/re_types/tests/types/annotation_context.rs b/crates/store/re_types/tests/types/annotation_context.rs index 522211a5bff2..662f4711666b 100644 --- a/crates/store/re_types/tests/types/annotation_context.rs +++ b/crates/store/re_types/tests/types/annotation_context.rs @@ -26,7 +26,7 @@ fn roundtrip() { [("context", vec!["rerun.components.AnnotationContext"])].into(); eprintln!("arch = {arch:#?}"); - let serialized = arch.to_arrow().unwrap(); + let serialized = arch.to_arrow2().unwrap(); for (field, array) in &serialized { // NOTE: Keep those around please, very useful when debugging. // eprintln!("field = {field:#?}"); @@ -43,6 +43,6 @@ fn roundtrip() { } } - let deserialized = AnnotationContext::from_arrow(serialized).unwrap(); + let deserialized = AnnotationContext::from_arrow2(serialized).unwrap(); similar_asserts::assert_eq!(arch, deserialized); } diff --git a/crates/store/re_types/tests/types/arrows3d.rs b/crates/store/re_types/tests/types/arrows3d.rs index 9f8aa9ee0838..b105c1f402b2 100644 --- a/crates/store/re_types/tests/types/arrows3d.rs +++ b/crates/store/re_types/tests/types/arrows3d.rs @@ -59,7 +59,7 @@ fn roundtrip() { .into(); eprintln!("arch = {arch:#?}"); - let serialized = arch.to_arrow().unwrap(); + let serialized = arch.to_arrow2().unwrap(); for (field, array) in &serialized { // NOTE: Keep those around please, very useful when debugging. // eprintln!("field = {field:#?}"); @@ -76,6 +76,6 @@ fn roundtrip() { } } - let deserialized = Arrows3D::from_arrow(serialized).unwrap(); + let deserialized = Arrows3D::from_arrow2(serialized).unwrap(); similar_asserts::assert_eq!(expected, deserialized); } diff --git a/crates/store/re_types/tests/types/asset3d.rs b/crates/store/re_types/tests/types/asset3d.rs index bfc4e64e8f38..b432276c3753 100644 --- a/crates/store/re_types/tests/types/asset3d.rs +++ b/crates/store/re_types/tests/types/asset3d.rs @@ -24,7 +24,7 @@ fn roundtrip() { // .into(); eprintln!("arch = {arch:#?}"); - let serialized = arch.to_arrow().unwrap(); + let serialized = arch.to_arrow2().unwrap(); for (field, array) in &serialized { // NOTE: Keep those around please, very useful when debugging. // eprintln!("field = {field:#?}"); @@ -39,6 +39,6 @@ fn roundtrip() { // ); } - let deserialized = Asset3D::from_arrow(serialized).unwrap(); + let deserialized = Asset3D::from_arrow2(serialized).unwrap(); similar_asserts::assert_eq!(expected, deserialized); } diff --git a/crates/store/re_types/tests/types/box2d.rs b/crates/store/re_types/tests/types/box2d.rs index 1e0b7eb0303e..66a46df25afe 100644 --- a/crates/store/re_types/tests/types/box2d.rs +++ b/crates/store/re_types/tests/types/box2d.rs @@ -58,7 +58,7 @@ fn roundtrip() { .into(); eprintln!("arch = {arch:#?}"); - let serialized = arch.to_arrow().unwrap(); + let serialized = arch.to_arrow2().unwrap(); for (field, array) in &serialized { // NOTE: Keep those around please, very useful when debugging. // eprintln!("field = {field:#?}"); @@ -75,7 +75,7 @@ fn roundtrip() { } } - let deserialized = Boxes2D::from_arrow(serialized).unwrap(); + let deserialized = Boxes2D::from_arrow2(serialized).unwrap(); similar_asserts::assert_eq!(expected, deserialized); } diff --git a/crates/store/re_types/tests/types/box3d.rs b/crates/store/re_types/tests/types/box3d.rs index 9968f14da5a0..8fd6a84ed5f0 100644 --- a/crates/store/re_types/tests/types/box3d.rs +++ b/crates/store/re_types/tests/types/box3d.rs @@ -72,7 +72,7 @@ fn roundtrip() { .into(); eprintln!("arch = {arch:#?}"); - let serialized = arch.to_arrow().unwrap(); + let serialized = arch.to_arrow2().unwrap(); for (field, array) in &serialized { // NOTE: Keep those around please, very useful when debugging. // eprintln!("field = {field:#?}"); @@ -89,7 +89,7 @@ fn roundtrip() { } } - let deserialized = Boxes3D::from_arrow(serialized).unwrap(); + let deserialized = Boxes3D::from_arrow2(serialized).unwrap(); similar_asserts::assert_eq!(expected, deserialized); } diff --git a/crates/store/re_types/tests/types/clear.rs b/crates/store/re_types/tests/types/clear.rs index 47037e3a0123..a4c3f6671479 100644 --- a/crates/store/re_types/tests/types/clear.rs +++ b/crates/store/re_types/tests/types/clear.rs @@ -29,7 +29,7 @@ fn roundtrip() { similar_asserts::assert_eq!(expected, arch); eprintln!("arch = {arch:#?}"); - let serialized = arch.to_arrow().unwrap(); + let serialized = arch.to_arrow2().unwrap(); for (field, array) in &serialized { // NOTE: Keep those around please, very useful when debugging. // eprintln!("field = {field:#?}"); @@ -46,7 +46,7 @@ fn roundtrip() { } } - let deserialized = Clear::from_arrow(serialized).unwrap(); + let deserialized = Clear::from_arrow2(serialized).unwrap(); similar_asserts::assert_eq!(expected, deserialized); } } diff --git a/crates/store/re_types/tests/types/depth_image.rs b/crates/store/re_types/tests/types/depth_image.rs index f43b836472b2..ab3105026795 100644 --- a/crates/store/re_types/tests/types/depth_image.rs +++ b/crates/store/re_types/tests/types/depth_image.rs @@ -33,7 +33,7 @@ fn depth_image_roundtrip() { DepthImage::try_from(ndarray::array![[1u8, 2, 3], [4, 5, 6]]) .unwrap() .with_meter(1000.0) - .to_arrow() + .to_arrow2() .unwrap(), ]; @@ -56,7 +56,7 @@ fn depth_image_roundtrip() { } } - let deserialized = DepthImage::from_arrow(serialized).unwrap(); + let deserialized = DepthImage::from_arrow2(serialized).unwrap(); similar_asserts::assert_eq!(expected, deserialized); } } diff --git a/crates/store/re_types/tests/types/disconnected_space.rs b/crates/store/re_types/tests/types/disconnected_space.rs index 3a53dae4559d..df3b2156f904 100644 --- a/crates/store/re_types/tests/types/disconnected_space.rs +++ b/crates/store/re_types/tests/types/disconnected_space.rs @@ -36,7 +36,7 @@ fn roundtrip() { similar_asserts::assert_eq!(expected, arch); eprintln!("arch = {arch:#?}"); - let serialized = arch.to_arrow().unwrap(); + let serialized = arch.to_arrow2().unwrap(); for (field, array) in &serialized { // NOTE: Keep those around please, very useful when debugging. // eprintln!("field = {field:#?}"); @@ -53,7 +53,7 @@ fn roundtrip() { } } - let deserialized = DisconnectedSpace::from_arrow(serialized).unwrap(); + let deserialized = DisconnectedSpace::from_arrow2(serialized).unwrap(); similar_asserts::assert_eq!(expected, deserialized); } } diff --git a/crates/store/re_types/tests/types/fuzzy.rs b/crates/store/re_types/tests/types/fuzzy.rs index 169640bc3ead..4ea2cba3c072 100644 --- a/crates/store/re_types/tests/types/fuzzy.rs +++ b/crates/store/re_types/tests/types/fuzzy.rs @@ -247,7 +247,7 @@ fn roundtrip() { .into(); eprintln!("arch = {arch:#?}"); - let serialized = arch.to_arrow().unwrap(); + let serialized = arch.to_arrow2().unwrap(); for (field, array) in &serialized { // NOTE: Keep those around please, very useful when debugging. // eprintln!("field = {field:#?}"); @@ -270,7 +270,7 @@ fn roundtrip() { } } - let deserialized = AffixFuzzer1::from_arrow(serialized).unwrap(); + let deserialized = AffixFuzzer1::from_arrow2(serialized).unwrap(); similar_asserts::assert_eq!(arch, deserialized); } @@ -309,7 +309,7 @@ fn roundtrip() { .into(); eprintln!("arch = {arch:#?}"); - let serialized = arch.to_arrow().unwrap(); + let serialized = arch.to_arrow2().unwrap(); for (field, array) in &serialized { // NOTE: Keep those around please, very useful when debugging. // eprintln!("field = {field:#?}"); @@ -332,7 +332,7 @@ fn roundtrip() { } } - let deserialized = AffixFuzzer2::from_arrow(serialized).unwrap(); + let deserialized = AffixFuzzer2::from_arrow2(serialized).unwrap(); similar_asserts::assert_eq!(arch, deserialized); } @@ -362,7 +362,7 @@ fn roundtrip() { .into(); eprintln!("arch = {arch:#?}"); - let serialized = arch.to_arrow().unwrap(); + let serialized = arch.to_arrow2().unwrap(); for (field, array) in &serialized { // NOTE: Keep those around please, very useful when debugging. // eprintln!("field = {field:#?}"); @@ -385,7 +385,7 @@ fn roundtrip() { } } - let deserialized = AffixFuzzer3::from_arrow(serialized).unwrap(); + let deserialized = AffixFuzzer3::from_arrow2(serialized).unwrap(); similar_asserts::assert_eq!(arch, deserialized); } @@ -415,7 +415,7 @@ fn roundtrip() { .into(); eprintln!("arch = {arch:#?}"); - let serialized = arch.to_arrow().unwrap(); + let serialized = arch.to_arrow2().unwrap(); for (field, array) in &serialized { // NOTE: Keep those around please, very useful when debugging. // eprintln!("field = {field:#?}"); @@ -438,7 +438,7 @@ fn roundtrip() { } } - let deserialized = AffixFuzzer4::from_arrow(serialized).unwrap(); + let deserialized = AffixFuzzer4::from_arrow2(serialized).unwrap(); similar_asserts::assert_eq!(arch, deserialized); } } diff --git a/crates/store/re_types/tests/types/image.rs b/crates/store/re_types/tests/types/image.rs index 4ef22f24bf4d..5fd7a1a8d94f 100644 --- a/crates/store/re_types/tests/types/image.rs +++ b/crates/store/re_types/tests/types/image.rs @@ -35,7 +35,7 @@ fn image_roundtrip() { } } - let deserialized = Image::from_arrow(serialized).unwrap(); + let deserialized = Image::from_arrow2(serialized).unwrap(); similar_asserts::assert_eq!(expected, deserialized); } } @@ -82,7 +82,7 @@ fn dynamic_image_roundtrip() { } } - let deserialized = Image::from_arrow(serialized).unwrap(); + let deserialized = Image::from_arrow2(serialized).unwrap(); similar_asserts::assert_eq!(expected, deserialized); } } diff --git a/crates/store/re_types/tests/types/line_strips2d.rs b/crates/store/re_types/tests/types/line_strips2d.rs index fbc37acf5aac..62e1c010a038 100644 --- a/crates/store/re_types/tests/types/line_strips2d.rs +++ b/crates/store/re_types/tests/types/line_strips2d.rs @@ -63,7 +63,7 @@ fn roundtrip() { .into(); eprintln!("arch = {arch:#?}"); - let serialized = arch.to_arrow().unwrap(); + let serialized = arch.to_arrow2().unwrap(); for (field, array) in &serialized { // NOTE: Keep those around please, very useful when debugging. // eprintln!("field = {field:#?}"); @@ -80,6 +80,6 @@ fn roundtrip() { } } - let deserialized = LineStrips2D::from_arrow(serialized).unwrap(); + let deserialized = LineStrips2D::from_arrow2(serialized).unwrap(); similar_asserts::assert_eq!(expected, deserialized); } diff --git a/crates/store/re_types/tests/types/line_strips3d.rs b/crates/store/re_types/tests/types/line_strips3d.rs index e191398e1fe7..02b34fadc8bc 100644 --- a/crates/store/re_types/tests/types/line_strips3d.rs +++ b/crates/store/re_types/tests/types/line_strips3d.rs @@ -61,7 +61,7 @@ fn roundtrip() { .into(); eprintln!("arch = {arch:#?}"); - let serialized = arch.to_arrow().unwrap(); + let serialized = arch.to_arrow2().unwrap(); for (field, array) in &serialized { // NOTE: Keep those around please, very useful when debugging. // eprintln!("field = {field:#?}"); @@ -78,6 +78,6 @@ fn roundtrip() { } } - let deserialized = LineStrips3D::from_arrow(serialized).unwrap(); + let deserialized = LineStrips3D::from_arrow2(serialized).unwrap(); similar_asserts::assert_eq!(expected, deserialized); } diff --git a/crates/store/re_types/tests/types/mesh3d.rs b/crates/store/re_types/tests/types/mesh3d.rs index 7cf151cbb238..17fb35e0e9f8 100644 --- a/crates/store/re_types/tests/types/mesh3d.rs +++ b/crates/store/re_types/tests/types/mesh3d.rs @@ -60,7 +60,7 @@ fn roundtrip() { .into(); eprintln!("arch = {arch:#?}"); - let serialized = arch.to_arrow().unwrap(); + let serialized = arch.to_arrow2().unwrap(); for (field, array) in &serialized { // NOTE: Keep those around please, very useful when debugging. // eprintln!("field = {field:#?}"); @@ -77,6 +77,6 @@ fn roundtrip() { } } - let deserialized = Mesh3D::from_arrow(serialized).unwrap(); + let deserialized = Mesh3D::from_arrow2(serialized).unwrap(); similar_asserts::assert_eq!(expected, deserialized); } diff --git a/crates/store/re_types/tests/types/pinhole.rs b/crates/store/re_types/tests/types/pinhole.rs index 4c20a992efc1..0044e7d2e858 100644 --- a/crates/store/re_types/tests/types/pinhole.rs +++ b/crates/store/re_types/tests/types/pinhole.rs @@ -27,7 +27,7 @@ fn roundtrip() { .into(); eprintln!("arch = {arch:#?}"); - let serialized = arch.to_arrow().unwrap(); + let serialized = arch.to_arrow2().unwrap(); for (field, array) in &serialized { // NOTE: Keep those around please, very useful when debugging. // eprintln!("field = {field:#?}"); @@ -44,7 +44,7 @@ fn roundtrip() { } } - let deserialized = Pinhole::from_arrow(serialized).unwrap(); + let deserialized = Pinhole::from_arrow2(serialized).unwrap(); similar_asserts::assert_eq!(expected, deserialized); } diff --git a/crates/store/re_types/tests/types/points2d.rs b/crates/store/re_types/tests/types/points2d.rs index 1cad99ea890d..944dc45c0844 100644 --- a/crates/store/re_types/tests/types/points2d.rs +++ b/crates/store/re_types/tests/types/points2d.rs @@ -58,7 +58,7 @@ fn roundtrip() { .into(); eprintln!("arch = {arch:#?}"); - let serialized = arch.to_arrow().unwrap(); + let serialized = arch.to_arrow2().unwrap(); for (field, array) in &serialized { // NOTE: Keep those around please, very useful when debugging. // eprintln!("field = {field:#?}"); @@ -75,6 +75,6 @@ fn roundtrip() { } } - let deserialized = Points2D::from_arrow(serialized).unwrap(); + let deserialized = Points2D::from_arrow2(serialized).unwrap(); similar_asserts::assert_eq!(expected, deserialized); } diff --git a/crates/store/re_types/tests/types/points3d.rs b/crates/store/re_types/tests/types/points3d.rs index d0774eaa5933..c0a4e57d4374 100644 --- a/crates/store/re_types/tests/types/points3d.rs +++ b/crates/store/re_types/tests/types/points3d.rs @@ -55,7 +55,7 @@ fn roundtrip() { .into(); eprintln!("arch = {arch:#?}"); - let serialized = arch.to_arrow().unwrap(); + let serialized = arch.to_arrow2().unwrap(); for (field, array) in &serialized { // NOTE: Keep those around please, very useful when debugging. // eprintln!("field = {field:#?}"); @@ -72,6 +72,6 @@ fn roundtrip() { } } - let deserialized = Points3D::from_arrow(serialized).unwrap(); + let deserialized = Points3D::from_arrow2(serialized).unwrap(); similar_asserts::assert_eq!(expected, deserialized); } diff --git a/crates/store/re_types/tests/types/segmentation_image.rs b/crates/store/re_types/tests/types/segmentation_image.rs index 200df2399647..1c081ccd0e4d 100644 --- a/crates/store/re_types/tests/types/segmentation_image.rs +++ b/crates/store/re_types/tests/types/segmentation_image.rs @@ -30,7 +30,7 @@ fn segmentation_image_roundtrip() { [4, 5, 6] ]) .unwrap() - .to_arrow() + .to_arrow2() .unwrap()]; let expected_extensions: HashMap<_, _> = [("data", vec!["rerun.components.Blob"])].into(); @@ -52,7 +52,7 @@ fn segmentation_image_roundtrip() { } } - let deserialized = SegmentationImage::from_arrow(serialized).unwrap(); + let deserialized = SegmentationImage::from_arrow2(serialized).unwrap(); similar_asserts::assert_eq!(expected, deserialized); } } diff --git a/crates/store/re_types/tests/types/tensor.rs b/crates/store/re_types/tests/types/tensor.rs index d440b7fd3b85..3474ae7b1d35 100644 --- a/crates/store/re_types/tests/types/tensor.rs +++ b/crates/store/re_types/tests/types/tensor.rs @@ -31,7 +31,7 @@ fn tensor_roundtrip() { let all_arch_serialized = [Tensor::try_from(ndarray::array![[1u8, 2, 3], [4, 5, 6]]) .unwrap() - .to_arrow() + .to_arrow2() .unwrap()]; let expected_extensions: HashMap<_, _> = [("data", vec!["rerun.components.TensorData"])].into(); @@ -53,7 +53,7 @@ fn tensor_roundtrip() { } } - let deserialized = Tensor::from_arrow(serialized).unwrap(); + let deserialized = Tensor::from_arrow2(serialized).unwrap(); similar_asserts::assert_eq!(expected, deserialized); } } diff --git a/crates/store/re_types/tests/types/text_document.rs b/crates/store/re_types/tests/types/text_document.rs index ec0444caada4..3335cba8a33d 100644 --- a/crates/store/re_types/tests/types/text_document.rs +++ b/crates/store/re_types/tests/types/text_document.rs @@ -24,7 +24,7 @@ fn roundtrip() { .into(); eprintln!("arch = {arch:#?}"); - let serialized = arch.to_arrow().unwrap(); + let serialized = arch.to_arrow2().unwrap(); for (field, array) in &serialized { // NOTE: Keep those around please, very useful when debugging. // eprintln!("field = {field:#?}"); @@ -41,6 +41,6 @@ fn roundtrip() { } } - let deserialized = TextDocument::from_arrow(serialized).unwrap(); + let deserialized = TextDocument::from_arrow2(serialized).unwrap(); similar_asserts::assert_eq!(expected, deserialized); } diff --git a/crates/store/re_types/tests/types/transform3d.rs b/crates/store/re_types/tests/types/transform3d.rs index 7f4490127612..4a8fd424a7b2 100644 --- a/crates/store/re_types/tests/types/transform3d.rs +++ b/crates/store/re_types/tests/types/transform3d.rs @@ -84,7 +84,7 @@ fn roundtrip() { similar_asserts::assert_eq!(expected, arch); eprintln!("arch = {arch:#?}"); - let serialized = arch.to_arrow().unwrap(); + let serialized = arch.to_arrow2().unwrap(); for (field, array) in &serialized { // NOTE: Keep those around please, very useful when debugging. // eprintln!("field = {field:#?}"); @@ -101,7 +101,7 @@ fn roundtrip() { } } - let deserialized = Transform3D::from_arrow(serialized).unwrap(); + let deserialized = Transform3D::from_arrow2(serialized).unwrap(); similar_asserts::assert_eq!(expected, deserialized); } } diff --git a/crates/store/re_types/tests/types/validity.rs b/crates/store/re_types/tests/types/validity.rs index 776d4c29ee72..dab289a75f92 100644 --- a/crates/store/re_types/tests/types/validity.rs +++ b/crates/store/re_types/tests/types/validity.rs @@ -10,8 +10,8 @@ fn validity_checks() { components::Position2D::new(3.0, 4.0), // ]; - let serialized = Position2D::to_arrow(good_non_nullable).unwrap(); - let deserialized = Position2D::from_arrow(serialized.as_ref()); + let serialized = Position2D::to_arrow2(good_non_nullable).unwrap(); + let deserialized = Position2D::from_arrow2(serialized.as_ref()); assert!(deserialized.is_ok()); let good_nullable = vec![ @@ -19,8 +19,8 @@ fn validity_checks() { Some(components::Position2D::new(3.0, 4.0)), // ]; - let serialized = Position2D::to_arrow_opt(good_nullable).unwrap(); - let deserialized = Position2D::from_arrow(serialized.as_ref()); + let serialized = Position2D::to_arrow2_opt(good_nullable).unwrap(); + let deserialized = Position2D::from_arrow2(serialized.as_ref()); assert!(deserialized.is_ok()); let bad = vec![ @@ -28,8 +28,8 @@ fn validity_checks() { None, ]; - let serialized = Position2D::to_arrow_opt(bad).unwrap(); - let deserialized = Position2D::from_arrow(serialized.as_ref()); + let serialized = Position2D::to_arrow2_opt(bad).unwrap(); + let deserialized = Position2D::from_arrow2(serialized.as_ref()); assert!(deserialized.is_err()); assert!(matches!( deserialized.err().unwrap(), diff --git a/crates/store/re_types/tests/types/view_coordinates.rs b/crates/store/re_types/tests/types/view_coordinates.rs index ffaa060252dd..1f2b89caba4b 100644 --- a/crates/store/re_types/tests/types/view_coordinates.rs +++ b/crates/store/re_types/tests/types/view_coordinates.rs @@ -21,7 +21,7 @@ fn roundtrip() { [("coordinates", vec!["rerun.components.ViewCoordinates"])].into(); eprintln!("arch = {arch:#?}"); - let serialized = arch.to_arrow().unwrap(); + let serialized = arch.to_arrow2().unwrap(); for (field, array) in &serialized { // NOTE: Keep those around please, very useful when debugging. // eprintln!("field = {field:#?}"); @@ -38,7 +38,7 @@ fn roundtrip() { } } - let deserialized = ViewCoordinates::from_arrow(serialized).unwrap(); + let deserialized = ViewCoordinates::from_arrow2(serialized).unwrap(); similar_asserts::assert_eq!(expected, deserialized); } diff --git a/crates/store/re_types_blueprint/src/blueprint/archetypes/container_blueprint.rs b/crates/store/re_types_blueprint/src/blueprint/archetypes/container_blueprint.rs index aaf6777f480b..e7aec84d119a 100644 --- a/crates/store/re_types_blueprint/src/blueprint/archetypes/container_blueprint.rs +++ b/crates/store/re_types_blueprint/src/blueprint/archetypes/container_blueprint.rs @@ -173,7 +173,7 @@ impl ::re_types_core::Archetype for ContainerBlueprint { } #[inline] - fn from_arrow_components( + fn from_arrow2_components( arrow_data: impl IntoIterator)>, ) -> DeserializationResult { re_tracing::profile_function!(); @@ -187,7 +187,7 @@ impl ::re_types_core::Archetype for ContainerBlueprint { .get("rerun.blueprint.components.ContainerKind") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.blueprint.archetypes.ContainerBlueprint#container_kind")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.blueprint.archetypes.ContainerBlueprint#container_kind")? .into_iter() .next() @@ -196,7 +196,7 @@ impl ::re_types_core::Archetype for ContainerBlueprint { .with_context("rerun.blueprint.archetypes.ContainerBlueprint#container_kind")? }; let display_name = if let Some(array) = arrays_by_name.get("rerun.components.Name") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.blueprint.archetypes.ContainerBlueprint#display_name")? .into_iter() .next() @@ -207,7 +207,7 @@ impl ::re_types_core::Archetype for ContainerBlueprint { let contents = if let Some(array) = arrays_by_name.get("rerun.blueprint.components.IncludedContent") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.blueprint.archetypes.ContainerBlueprint#contents")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -220,7 +220,7 @@ impl ::re_types_core::Archetype for ContainerBlueprint { let col_shares = if let Some(array) = arrays_by_name.get("rerun.blueprint.components.ColumnShare") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.blueprint.archetypes.ContainerBlueprint#col_shares")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -233,7 +233,7 @@ impl ::re_types_core::Archetype for ContainerBlueprint { let row_shares = if let Some(array) = arrays_by_name.get("rerun.blueprint.components.RowShare") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.blueprint.archetypes.ContainerBlueprint#row_shares")? .into_iter() .map(|v| v.ok_or_else(DeserializationError::missing_data)) @@ -245,7 +245,7 @@ impl ::re_types_core::Archetype for ContainerBlueprint { }; let active_tab = if let Some(array) = arrays_by_name.get("rerun.blueprint.components.ActiveTab") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.blueprint.archetypes.ContainerBlueprint#active_tab")? .into_iter() .next() @@ -255,7 +255,7 @@ impl ::re_types_core::Archetype for ContainerBlueprint { }; let visible = if let Some(array) = arrays_by_name.get("rerun.blueprint.components.Visible") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.blueprint.archetypes.ContainerBlueprint#visible")? .into_iter() .next() @@ -265,7 +265,7 @@ impl ::re_types_core::Archetype for ContainerBlueprint { }; let grid_columns = if let Some(array) = arrays_by_name.get("rerun.blueprint.components.GridColumns") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.blueprint.archetypes.ContainerBlueprint#grid_columns")? .into_iter() .next() diff --git a/crates/store/re_types_blueprint/src/blueprint/archetypes/panel_blueprint.rs b/crates/store/re_types_blueprint/src/blueprint/archetypes/panel_blueprint.rs index 3984afa94aa1..10cefb067298 100644 --- a/crates/store/re_types_blueprint/src/blueprint/archetypes/panel_blueprint.rs +++ b/crates/store/re_types_blueprint/src/blueprint/archetypes/panel_blueprint.rs @@ -101,7 +101,7 @@ impl ::re_types_core::Archetype for PanelBlueprint { } #[inline] - fn from_arrow_components( + fn from_arrow2_components( arrow_data: impl IntoIterator)>, ) -> DeserializationResult { re_tracing::profile_function!(); @@ -112,7 +112,7 @@ impl ::re_types_core::Archetype for PanelBlueprint { .collect(); let state = if let Some(array) = arrays_by_name.get("rerun.blueprint.components.PanelState") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.blueprint.archetypes.PanelBlueprint#state")? .into_iter() .next() diff --git a/crates/store/re_types_blueprint/src/blueprint/archetypes/viewport_blueprint.rs b/crates/store/re_types_blueprint/src/blueprint/archetypes/viewport_blueprint.rs index 2e16b2183925..04a55c4771da 100644 --- a/crates/store/re_types_blueprint/src/blueprint/archetypes/viewport_blueprint.rs +++ b/crates/store/re_types_blueprint/src/blueprint/archetypes/viewport_blueprint.rs @@ -147,7 +147,7 @@ impl ::re_types_core::Archetype for ViewportBlueprint { } #[inline] - fn from_arrow_components( + fn from_arrow2_components( arrow_data: impl IntoIterator)>, ) -> DeserializationResult { re_tracing::profile_function!(); @@ -158,7 +158,7 @@ impl ::re_types_core::Archetype for ViewportBlueprint { .collect(); let root_container = if let Some(array) = arrays_by_name.get("rerun.blueprint.components.RootContainer") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.blueprint.archetypes.ViewportBlueprint#root_container")? .into_iter() .next() @@ -169,7 +169,7 @@ impl ::re_types_core::Archetype for ViewportBlueprint { let maximized = if let Some(array) = arrays_by_name.get("rerun.blueprint.components.SpaceViewMaximized") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.blueprint.archetypes.ViewportBlueprint#maximized")? .into_iter() .next() @@ -179,7 +179,7 @@ impl ::re_types_core::Archetype for ViewportBlueprint { }; let auto_layout = if let Some(array) = arrays_by_name.get("rerun.blueprint.components.AutoLayout") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.blueprint.archetypes.ViewportBlueprint#auto_layout")? .into_iter() .next() @@ -189,7 +189,7 @@ impl ::re_types_core::Archetype for ViewportBlueprint { }; let auto_space_views = if let Some(array) = arrays_by_name.get("rerun.blueprint.components.AutoSpaceViews") { - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.blueprint.archetypes.ViewportBlueprint#auto_space_views")? .into_iter() .next() @@ -201,7 +201,7 @@ impl ::re_types_core::Archetype for ViewportBlueprint { arrays_by_name.get("rerun.blueprint.components.ViewerRecommendationHash") { Some({ - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context( "rerun.blueprint.archetypes.ViewportBlueprint#past_viewer_recommendations", )? 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 d9db5c88b910..360a2a010205 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 @@ -68,17 +68,17 @@ impl std::ops::DerefMut for AutoLayout { impl ::re_types_core::Loggable for AutoLayout { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::Bool::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::Bool::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::Bool::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::Bool::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -86,13 +86,13 @@ impl ::re_types_core::Loggable for AutoLayout { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::Bool::from_arrow_opt(arrow_data) + crate::datatypes::Bool::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } 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 c15b548c580e..6d6dcbb85433 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 @@ -68,17 +68,17 @@ impl std::ops::DerefMut for AutoSpaceViews { impl ::re_types_core::Loggable for AutoSpaceViews { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::Bool::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::Bool::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::Bool::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::Bool::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -86,13 +86,13 @@ impl ::re_types_core::Loggable for AutoSpaceViews { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::Bool::from_arrow_opt(arrow_data) + crate::datatypes::Bool::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } 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 bed17da7ed23..5ebb190b29aa 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 @@ -81,13 +81,13 @@ impl std::fmt::Display for ContainerKind { impl ::re_types_core::Loggable for ContainerKind { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::UInt8 } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -111,7 +111,7 @@ impl ::re_types_core::Loggable for ContainerKind { any_nones.then(|| somes.into()) }; PrimitiveArray::new( - Self::arrow_datatype(), + Self::arrow2_datatype(), data0.into_iter().map(|v| v.unwrap_or_default()).collect(), data0_bitmap, ) @@ -119,7 +119,7 @@ impl ::re_types_core::Loggable for ContainerKind { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -132,7 +132,7 @@ impl ::re_types_core::Loggable for ContainerKind { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -146,7 +146,7 @@ impl ::re_types_core::Loggable for ContainerKind { Some(4) => Ok(Some(Self::Grid)), None => Ok(None), Some(invalid) => Err(DeserializationError::missing_union_arm( - Self::arrow_datatype(), + Self::arrow2_datatype(), "", invalid as _, )), 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 37d364c8ede9..ba34790b1828 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 @@ -70,17 +70,17 @@ impl std::ops::DerefMut for GridColumns { impl ::re_types_core::Loggable for GridColumns { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::UInt32::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::UInt32::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::UInt32::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::UInt32::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -88,22 +88,22 @@ impl ::re_types_core::Loggable for GridColumns { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::UInt32::from_arrow_opt(arrow_data) + crate::datatypes::UInt32::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } #[inline] - fn from_arrow(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> + fn from_arrow2(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> where Self: Sized, { - crate::datatypes::UInt32::from_arrow(arrow_data).map(|v| v.into_iter().map(Self).collect()) + crate::datatypes::UInt32::from_arrow2(arrow_data).map(|v| v.into_iter().map(Self).collect()) } } 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 c04918db3752..35c9ab3a2602 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 @@ -68,17 +68,17 @@ impl std::ops::DerefMut for IncludedSpaceView { impl ::re_types_core::Loggable for IncludedSpaceView { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::Uuid::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::Uuid::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::Uuid::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::Uuid::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -86,22 +86,22 @@ impl ::re_types_core::Loggable for IncludedSpaceView { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::Uuid::from_arrow_opt(arrow_data) + crate::datatypes::Uuid::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } #[inline] - fn from_arrow(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> + fn from_arrow2(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> where Self: Sized, { - crate::datatypes::Uuid::from_arrow(arrow_data).map(|v| v.into_iter().map(Self).collect()) + crate::datatypes::Uuid::from_arrow2(arrow_data).map(|v| v.into_iter().map(Self).collect()) } } 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 4c3888fc11fa..689504890fb6 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 @@ -71,17 +71,17 @@ impl std::ops::DerefMut for RootContainer { impl ::re_types_core::Loggable for RootContainer { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::Uuid::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::Uuid::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::Uuid::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::Uuid::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -89,22 +89,22 @@ impl ::re_types_core::Loggable for RootContainer { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::Uuid::from_arrow_opt(arrow_data) + crate::datatypes::Uuid::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } #[inline] - fn from_arrow(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> + fn from_arrow2(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> where Self: Sized, { - crate::datatypes::Uuid::from_arrow(arrow_data).map(|v| v.into_iter().map(Self).collect()) + crate::datatypes::Uuid::from_arrow2(arrow_data).map(|v| v.into_iter().map(Self).collect()) } } 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 2af3e05428ac..fafdbb6a51cf 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 @@ -68,17 +68,17 @@ impl std::ops::DerefMut for SpaceViewMaximized { impl ::re_types_core::Loggable for SpaceViewMaximized { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::Uuid::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::Uuid::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::Uuid::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::Uuid::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -86,22 +86,22 @@ impl ::re_types_core::Loggable for SpaceViewMaximized { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::Uuid::from_arrow_opt(arrow_data) + crate::datatypes::Uuid::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } #[inline] - fn from_arrow(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> + fn from_arrow2(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> where Self: Sized, { - crate::datatypes::Uuid::from_arrow(arrow_data).map(|v| v.into_iter().map(Self).collect()) + crate::datatypes::Uuid::from_arrow2(arrow_data).map(|v| v.into_iter().map(Self).collect()) } } 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 ade47bf4371e..ece137edb0db 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 @@ -103,17 +103,17 @@ impl std::ops::DerefMut for VisualizerOverrides { impl ::re_types_core::Loggable for VisualizerOverrides { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::blueprint::datatypes::Utf8List::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::blueprint::datatypes::Utf8List::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::blueprint::datatypes::Utf8List::to_arrow_opt(data.into_iter().map(|datum| { + crate::blueprint::datatypes::Utf8List::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -121,13 +121,13 @@ impl ::re_types_core::Loggable for VisualizerOverrides { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::blueprint::datatypes::Utf8List::from_arrow_opt(arrow_data) + crate::blueprint::datatypes::Utf8List::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } 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 c06c964f4539..2dfbf0df0ecf 100644 --- a/crates/store/re_types_blueprint/src/blueprint/datatypes/utf8list.rs +++ b/crates/store/re_types_blueprint/src/blueprint/datatypes/utf8list.rs @@ -53,7 +53,7 @@ impl From for Vec<::re_types_core::ArrowString> { impl ::re_types_core::Loggable for Utf8List { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::List(std::sync::Arc::new(Field::new( @@ -63,7 +63,7 @@ impl ::re_types_core::Loggable for Utf8List { ))) } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -97,7 +97,7 @@ impl ::re_types_core::Loggable for Utf8List { let data0_inner_data: Vec<_> = data0.into_iter().flatten().flatten().collect(); let data0_inner_bitmap: Option = None; ListArray::try_new( - Self::arrow_datatype(), + Self::arrow2_datatype(), offsets, { let offsets = arrow2::offset::Offsets::::try_from_lengths( @@ -125,7 +125,7 @@ impl ::re_types_core::Loggable for Utf8List { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -139,7 +139,7 @@ impl ::re_types_core::Loggable for Utf8List { .as_any() .downcast_ref::>() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) diff --git a/crates/store/re_types_core/benches/bench_tuid.rs b/crates/store/re_types_core/benches/bench_tuid.rs index 13985268abe5..b82ab4716751 100644 --- a/crates/store/re_types_core/benches/bench_tuid.rs +++ b/crates/store/re_types_core/benches/bench_tuid.rs @@ -16,7 +16,7 @@ fn bench_arrow(c: &mut Criterion) { group.bench_function("arrow2", |b| { b.iter(|| { - let data: Box = re_tuid::Tuid::to_arrow(tuids.clone()).unwrap(); + let data: Box = re_tuid::Tuid::to_arrow2(tuids.clone()).unwrap(); criterion::black_box(data) }); }); @@ -27,11 +27,11 @@ fn bench_arrow(c: &mut Criterion) { group.throughput(criterion::Throughput::Elements(elem_count)); let data: Box = - re_tuid::Tuid::to_arrow(vec![re_tuid::Tuid::new(); elem_count as usize]).unwrap(); + re_tuid::Tuid::to_arrow2(vec![re_tuid::Tuid::new(); elem_count as usize]).unwrap(); group.bench_function("arrow2", |b| { b.iter(|| { - let tuids = re_tuid::Tuid::from_arrow(data.as_ref()).unwrap(); + let tuids = re_tuid::Tuid::from_arrow2(data.as_ref()).unwrap(); criterion::black_box(tuids) }); }); diff --git a/crates/store/re_types_core/src/archetype.rs b/crates/store/re_types_core/src/archetype.rs index 3a54852c030c..9a14d221ff36 100644 --- a/crates/store/re_types_core/src/archetype.rs +++ b/crates/store/re_types_core/src/archetype.rs @@ -102,13 +102,13 @@ pub trait Archetype { /// Arrow arrays that are unknown to this [`Archetype`] will simply be ignored and a warning /// logged to stderr. #[inline] - fn from_arrow( + fn from_arrow2( data: impl IntoIterator)>, ) -> DeserializationResult where Self: Sized, { - Self::from_arrow_components( + Self::from_arrow2_components( data.into_iter() .map(|(field, array)| (field.name.into(), array)), ) @@ -120,7 +120,7 @@ pub trait Archetype { /// Arrow arrays that are unknown to this [`Archetype`] will simply be ignored and a warning /// logged to stderr. #[inline] - fn from_arrow_components( + fn from_arrow2_components( data: impl IntoIterator)>, ) -> DeserializationResult where @@ -216,7 +216,7 @@ impl Default for GenericIndicatorComponent { impl crate::LoggableBatch for GenericIndicatorComponent { #[inline] - fn to_arrow(&self) -> SerializationResult> { + fn to_arrow2(&self) -> SerializationResult> { let datatype = arrow2::datatypes::DataType::Null; Ok(arrow2::array::NullArray::new(datatype, 1).boxed()) } @@ -247,7 +247,7 @@ pub struct GenericIndicatorComponentArray { impl crate::LoggableBatch for GenericIndicatorComponentArray { #[inline] - fn to_arrow(&self) -> SerializationResult> { + fn to_arrow2(&self) -> SerializationResult> { let datatype = arrow2::datatypes::DataType::Null; Ok(arrow2::array::NullArray::new(datatype, self.len).boxed()) } @@ -282,7 +282,7 @@ impl NamedIndicatorComponent { impl crate::LoggableBatch for NamedIndicatorComponent { #[inline] - fn to_arrow(&self) -> SerializationResult> { + fn to_arrow2(&self) -> SerializationResult> { let datatype = arrow2::datatypes::DataType::Null; Ok(arrow2::array::NullArray::new(datatype, 1).boxed()) } diff --git a/crates/store/re_types_core/src/archetypes/clear.rs b/crates/store/re_types_core/src/archetypes/clear.rs index 67dc724218f8..0fcbbb03603c 100644 --- a/crates/store/re_types_core/src/archetypes/clear.rs +++ b/crates/store/re_types_core/src/archetypes/clear.rs @@ -155,7 +155,7 @@ impl crate::Archetype for Clear { } #[inline] - fn from_arrow_components( + fn from_arrow2_components( arrow_data: impl IntoIterator)>, ) -> DeserializationResult { re_tracing::profile_function!(); @@ -169,7 +169,7 @@ impl crate::Archetype for Clear { .get("rerun.components.ClearIsRecursive") .ok_or_else(DeserializationError::missing_data) .with_context("rerun.archetypes.Clear#is_recursive")?; - ::from_arrow_opt(&**array) + ::from_arrow2_opt(&**array) .with_context("rerun.archetypes.Clear#is_recursive")? .into_iter() .next() 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 351c56738587..a9c92574dcd8 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 @@ -70,17 +70,17 @@ crate::macros::impl_into_cow!(ClearIsRecursive); impl crate::Loggable for ClearIsRecursive { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - crate::datatypes::Bool::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + crate::datatypes::Bool::arrow2_datatype() } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where Self: Clone + 'a, { - crate::datatypes::Bool::to_arrow_opt(data.into_iter().map(|datum| { + crate::datatypes::Bool::to_arrow2_opt(data.into_iter().map(|datum| { datum.map(|datum| match datum.into() { ::std::borrow::Cow::Borrowed(datum) => ::std::borrow::Cow::Borrowed(&datum.0), ::std::borrow::Cow::Owned(datum) => ::std::borrow::Cow::Owned(datum.0), @@ -88,13 +88,13 @@ impl crate::Loggable for ClearIsRecursive { })) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where Self: Sized, { - crate::datatypes::Bool::from_arrow_opt(arrow_data) + crate::datatypes::Bool::from_arrow2_opt(arrow_data) .map(|v| v.into_iter().map(|v| v.map(Self)).collect()) } } diff --git a/crates/store/re_types_core/src/datatypes/bool.rs b/crates/store/re_types_core/src/datatypes/bool.rs index d833f7fc4c83..b66bdfd0a3c6 100644 --- a/crates/store/re_types_core/src/datatypes/bool.rs +++ b/crates/store/re_types_core/src/datatypes/bool.rs @@ -53,13 +53,13 @@ crate::macros::impl_into_cow!(Bool); impl crate::Loggable for Bool { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::Boolean } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -83,7 +83,7 @@ impl crate::Loggable for Bool { any_nones.then(|| somes.into()) }; BooleanArray::new( - Self::arrow_datatype(), + Self::arrow2_datatype(), data0.into_iter().map(|v| v.unwrap_or_default()).collect(), data0_bitmap, ) @@ -91,7 +91,7 @@ impl crate::Loggable for Bool { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -104,7 +104,7 @@ impl crate::Loggable for Bool { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) 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 ee68542b15f6..99bb1f1aa615 100644 --- a/crates/store/re_types_core/src/datatypes/entity_path.rs +++ b/crates/store/re_types_core/src/datatypes/entity_path.rs @@ -53,13 +53,13 @@ crate::macros::impl_into_cow!(EntityPath); impl crate::Loggable for EntityPath { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::Utf8 } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -95,7 +95,7 @@ impl crate::Loggable for EntityPath { #[allow(unsafe_code, clippy::undocumented_unsafe_blocks)] unsafe { Utf8Array::::new_unchecked( - Self::arrow_datatype(), + Self::arrow2_datatype(), offsets, inner_data, data0_bitmap, @@ -106,7 +106,7 @@ impl crate::Loggable for EntityPath { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -120,7 +120,7 @@ impl crate::Loggable for EntityPath { .as_any() .downcast_ref::>() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) diff --git a/crates/store/re_types_core/src/datatypes/float32.rs b/crates/store/re_types_core/src/datatypes/float32.rs index 0917fa5c4f3e..c026a78e7b86 100644 --- a/crates/store/re_types_core/src/datatypes/float32.rs +++ b/crates/store/re_types_core/src/datatypes/float32.rs @@ -53,13 +53,13 @@ crate::macros::impl_into_cow!(Float32); impl crate::Loggable for Float32 { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::Float32 } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -83,7 +83,7 @@ impl crate::Loggable for Float32 { any_nones.then(|| somes.into()) }; PrimitiveArray::new( - Self::arrow_datatype(), + Self::arrow2_datatype(), data0.into_iter().map(|v| v.unwrap_or_default()).collect(), data0_bitmap, ) @@ -91,7 +91,7 @@ impl crate::Loggable for Float32 { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -104,7 +104,7 @@ impl crate::Loggable for Float32 { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -119,7 +119,7 @@ impl crate::Loggable for Float32 { } #[inline] - fn from_arrow(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> + fn from_arrow2(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> where Self: Sized, { diff --git a/crates/store/re_types_core/src/datatypes/float64.rs b/crates/store/re_types_core/src/datatypes/float64.rs index 4ac1e0a0ac36..e1971f0c6f44 100644 --- a/crates/store/re_types_core/src/datatypes/float64.rs +++ b/crates/store/re_types_core/src/datatypes/float64.rs @@ -53,13 +53,13 @@ crate::macros::impl_into_cow!(Float64); impl crate::Loggable for Float64 { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::Float64 } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -83,7 +83,7 @@ impl crate::Loggable for Float64 { any_nones.then(|| somes.into()) }; PrimitiveArray::new( - Self::arrow_datatype(), + Self::arrow2_datatype(), data0.into_iter().map(|v| v.unwrap_or_default()).collect(), data0_bitmap, ) @@ -91,7 +91,7 @@ impl crate::Loggable for Float64 { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -104,7 +104,7 @@ impl crate::Loggable for Float64 { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -119,7 +119,7 @@ impl crate::Loggable for Float64 { } #[inline] - fn from_arrow(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> + fn from_arrow2(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> where Self: Sized, { 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 64e0138f5b56..8f85561d5cec 100644 --- a/crates/store/re_types_core/src/datatypes/time_int.rs +++ b/crates/store/re_types_core/src/datatypes/time_int.rs @@ -52,13 +52,13 @@ crate::macros::impl_into_cow!(TimeInt); impl crate::Loggable for TimeInt { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::Int64 } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -82,7 +82,7 @@ impl crate::Loggable for TimeInt { any_nones.then(|| somes.into()) }; PrimitiveArray::new( - Self::arrow_datatype(), + Self::arrow2_datatype(), data0.into_iter().map(|v| v.unwrap_or_default()).collect(), data0_bitmap, ) @@ -90,7 +90,7 @@ impl crate::Loggable for TimeInt { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -103,7 +103,7 @@ impl crate::Loggable for TimeInt { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -118,7 +118,7 @@ impl crate::Loggable for TimeInt { } #[inline] - fn from_arrow(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> + fn from_arrow2(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> where Self: Sized, { 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 17618f772479..f039d35ef13d 100644 --- a/crates/store/re_types_core/src/datatypes/time_range.rs +++ b/crates/store/re_types_core/src/datatypes/time_range.rs @@ -45,24 +45,24 @@ crate::macros::impl_into_cow!(TimeRange); impl crate::Loggable for TimeRange { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::Struct(std::sync::Arc::new(vec![ Field::new( "start", - ::arrow_datatype(), + ::arrow2_datatype(), false, ), Field::new( "end", - ::arrow_datatype(), + ::arrow2_datatype(), false, ), ])) } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -85,7 +85,7 @@ impl crate::Loggable for TimeRange { any_nones.then(|| somes.into()) }; StructArray::new( - Self::arrow_datatype(), + Self::arrow2_datatype(), vec![ { let (somes, start): (Vec<_>, Vec<_>) = data @@ -101,7 +101,7 @@ impl crate::Loggable for TimeRange { }; { _ = start_bitmap; - crate::datatypes::TimeRangeBoundary::to_arrow_opt(start)? + crate::datatypes::TimeRangeBoundary::to_arrow2_opt(start)? } }, { @@ -118,7 +118,7 @@ impl crate::Loggable for TimeRange { }; { _ = end_bitmap; - crate::datatypes::TimeRangeBoundary::to_arrow_opt(end)? + crate::datatypes::TimeRangeBoundary::to_arrow2_opt(end)? } }, ], @@ -128,7 +128,7 @@ impl crate::Loggable for TimeRange { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -142,7 +142,7 @@ impl crate::Loggable for TimeRange { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -160,26 +160,26 @@ impl crate::Loggable for TimeRange { let start = { if !arrays_by_name.contains_key("start") { return Err(DeserializationError::missing_struct_field( - Self::arrow_datatype(), + Self::arrow2_datatype(), "start", )) .with_context("rerun.datatypes.TimeRange"); } let arrow_data = &**arrays_by_name["start"]; - crate::datatypes::TimeRangeBoundary::from_arrow_opt(arrow_data) + crate::datatypes::TimeRangeBoundary::from_arrow2_opt(arrow_data) .with_context("rerun.datatypes.TimeRange#start")? .into_iter() }; let end = { if !arrays_by_name.contains_key("end") { return Err(DeserializationError::missing_struct_field( - Self::arrow_datatype(), + Self::arrow2_datatype(), "end", )) .with_context("rerun.datatypes.TimeRange"); } let arrow_data = &**arrays_by_name["end"]; - crate::datatypes::TimeRangeBoundary::from_arrow_opt(arrow_data) + crate::datatypes::TimeRangeBoundary::from_arrow2_opt(arrow_data) .with_context("rerun.datatypes.TimeRange#end")? .into_iter() }; 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 c8d110cfc4d6..80c7defd2f79 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 @@ -52,7 +52,7 @@ crate::macros::impl_into_cow!(TimeRangeBoundary); impl crate::Loggable for TimeRangeBoundary { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::Union( @@ -60,12 +60,12 @@ impl crate::Loggable for TimeRangeBoundary { Field::new("_null_markers", DataType::Null, true), Field::new( "CursorRelative", - ::arrow_datatype(), + ::arrow2_datatype(), false, ), Field::new( "Absolute", - ::arrow_datatype(), + ::arrow2_datatype(), false, ), Field::new("Infinite", DataType::Null, true), @@ -75,7 +75,7 @@ impl crate::Loggable for TimeRangeBoundary { ) } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -175,11 +175,11 @@ impl crate::Loggable for TimeRangeBoundary { }) .collect() }); - UnionArray::new(Self::arrow_datatype(), types, fields, offsets).boxed() + UnionArray::new(Self::arrow2_datatype(), types, fields, offsets).boxed() }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -193,7 +193,7 @@ impl crate::Loggable for TimeRangeBoundary { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -206,7 +206,7 @@ impl crate::Loggable for TimeRangeBoundary { let arrow_data_offsets = arrow_data .offsets() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -306,7 +306,7 @@ impl crate::Loggable for TimeRangeBoundary { 3i8 => Self::Infinite, _ => { return Err(DeserializationError::missing_union_arm( - Self::arrow_datatype(), + Self::arrow2_datatype(), "", *typ as _, )); diff --git a/crates/store/re_types_core/src/datatypes/uint16.rs b/crates/store/re_types_core/src/datatypes/uint16.rs index a89ce8ec4717..e02e98637243 100644 --- a/crates/store/re_types_core/src/datatypes/uint16.rs +++ b/crates/store/re_types_core/src/datatypes/uint16.rs @@ -52,13 +52,13 @@ crate::macros::impl_into_cow!(UInt16); impl crate::Loggable for UInt16 { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::UInt16 } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -82,7 +82,7 @@ impl crate::Loggable for UInt16 { any_nones.then(|| somes.into()) }; PrimitiveArray::new( - Self::arrow_datatype(), + Self::arrow2_datatype(), data0.into_iter().map(|v| v.unwrap_or_default()).collect(), data0_bitmap, ) @@ -90,7 +90,7 @@ impl crate::Loggable for UInt16 { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -103,7 +103,7 @@ impl crate::Loggable for UInt16 { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -118,7 +118,7 @@ impl crate::Loggable for UInt16 { } #[inline] - fn from_arrow(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> + fn from_arrow2(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> where Self: Sized, { diff --git a/crates/store/re_types_core/src/datatypes/uint32.rs b/crates/store/re_types_core/src/datatypes/uint32.rs index 5273ce4dd9a8..61a1e11832fc 100644 --- a/crates/store/re_types_core/src/datatypes/uint32.rs +++ b/crates/store/re_types_core/src/datatypes/uint32.rs @@ -52,13 +52,13 @@ crate::macros::impl_into_cow!(UInt32); impl crate::Loggable for UInt32 { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::UInt32 } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -82,7 +82,7 @@ impl crate::Loggable for UInt32 { any_nones.then(|| somes.into()) }; PrimitiveArray::new( - Self::arrow_datatype(), + Self::arrow2_datatype(), data0.into_iter().map(|v| v.unwrap_or_default()).collect(), data0_bitmap, ) @@ -90,7 +90,7 @@ impl crate::Loggable for UInt32 { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -103,7 +103,7 @@ impl crate::Loggable for UInt32 { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -118,7 +118,7 @@ impl crate::Loggable for UInt32 { } #[inline] - fn from_arrow(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> + fn from_arrow2(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> where Self: Sized, { diff --git a/crates/store/re_types_core/src/datatypes/uint64.rs b/crates/store/re_types_core/src/datatypes/uint64.rs index 89d3f2e926fe..83698dfcca6f 100644 --- a/crates/store/re_types_core/src/datatypes/uint64.rs +++ b/crates/store/re_types_core/src/datatypes/uint64.rs @@ -52,13 +52,13 @@ crate::macros::impl_into_cow!(UInt64); impl crate::Loggable for UInt64 { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::UInt64 } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -82,7 +82,7 @@ impl crate::Loggable for UInt64 { any_nones.then(|| somes.into()) }; PrimitiveArray::new( - Self::arrow_datatype(), + Self::arrow2_datatype(), data0.into_iter().map(|v| v.unwrap_or_default()).collect(), data0_bitmap, ) @@ -90,7 +90,7 @@ impl crate::Loggable for UInt64 { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -103,7 +103,7 @@ impl crate::Loggable for UInt64 { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -118,7 +118,7 @@ impl crate::Loggable for UInt64 { } #[inline] - fn from_arrow(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> + fn from_arrow2(arrow_data: &dyn arrow2::array::Array) -> DeserializationResult> where Self: Sized, { diff --git a/crates/store/re_types_core/src/datatypes/utf8.rs b/crates/store/re_types_core/src/datatypes/utf8.rs index b11a47bde2ed..963eeaf2ef16 100644 --- a/crates/store/re_types_core/src/datatypes/utf8.rs +++ b/crates/store/re_types_core/src/datatypes/utf8.rs @@ -53,13 +53,13 @@ crate::macros::impl_into_cow!(Utf8); impl crate::Loggable for Utf8 { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::Utf8 } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -95,7 +95,7 @@ impl crate::Loggable for Utf8 { #[allow(unsafe_code, clippy::undocumented_unsafe_blocks)] unsafe { Utf8Array::::new_unchecked( - Self::arrow_datatype(), + Self::arrow2_datatype(), offsets, inner_data, data0_bitmap, @@ -106,7 +106,7 @@ impl crate::Loggable for Utf8 { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -120,7 +120,7 @@ impl crate::Loggable for Utf8 { .as_any() .downcast_ref::>() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) 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 ba2522a264a3..0789ac03f64b 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 @@ -44,24 +44,24 @@ crate::macros::impl_into_cow!(VisibleTimeRange); impl crate::Loggable for VisibleTimeRange { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { #![allow(clippy::wildcard_imports)] use arrow2::datatypes::*; DataType::Struct(std::sync::Arc::new(vec![ Field::new( "timeline", - ::arrow_datatype(), + ::arrow2_datatype(), false, ), Field::new( "range", - ::arrow_datatype(), + ::arrow2_datatype(), false, ), ])) } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -84,7 +84,7 @@ impl crate::Loggable for VisibleTimeRange { any_nones.then(|| somes.into()) }; StructArray::new( - Self::arrow_datatype(), + Self::arrow2_datatype(), vec![ { let (somes, timeline): (Vec<_>, Vec<_>) = data @@ -137,7 +137,7 @@ impl crate::Loggable for VisibleTimeRange { }; { _ = range_bitmap; - crate::datatypes::TimeRange::to_arrow_opt(range)? + crate::datatypes::TimeRange::to_arrow2_opt(range)? } }, ], @@ -147,7 +147,7 @@ impl crate::Loggable for VisibleTimeRange { }) } - fn from_arrow_opt( + fn from_arrow2_opt( arrow_data: &dyn arrow2::array::Array, ) -> DeserializationResult>> where @@ -161,7 +161,7 @@ impl crate::Loggable for VisibleTimeRange { .as_any() .downcast_ref::() .ok_or_else(|| { - let expected = Self::arrow_datatype(); + let expected = Self::arrow2_datatype(); let actual = arrow_data.data_type().clone(); DeserializationError::datatype_mismatch(expected, actual) }) @@ -179,7 +179,7 @@ impl crate::Loggable for VisibleTimeRange { let timeline = { if !arrays_by_name.contains_key("timeline") { return Err(DeserializationError::missing_struct_field( - Self::arrow_datatype(), + Self::arrow2_datatype(), "timeline", )) .with_context("rerun.datatypes.VisibleTimeRange"); @@ -232,13 +232,13 @@ impl crate::Loggable for VisibleTimeRange { let range = { if !arrays_by_name.contains_key("range") { return Err(DeserializationError::missing_struct_field( - Self::arrow_datatype(), + Self::arrow2_datatype(), "range", )) .with_context("rerun.datatypes.VisibleTimeRange"); } let arrow_data = &**arrays_by_name["range"]; - crate::datatypes::TimeRange::from_arrow_opt(arrow_data) + crate::datatypes::TimeRange::from_arrow2_opt(arrow_data) .with_context("rerun.datatypes.VisibleTimeRange#range")? .into_iter() }; diff --git a/crates/store/re_types_core/src/lib.rs b/crates/store/re_types_core/src/lib.rs index 0e61de9ba8a3..68943f6b7517 100644 --- a/crates/store/re_types_core/src/lib.rs +++ b/crates/store/re_types_core/src/lib.rs @@ -58,7 +58,7 @@ pub trait AsComponents { /// The default implementation will simply serialize the result of [`Self::as_component_batches`] /// as-is, which is what you want in 99.9% of cases. #[inline] - fn to_arrow( + fn to_arrow2( &self, ) -> SerializationResult)>> { @@ -67,7 +67,7 @@ pub trait AsComponents { .map(|comp_batch| { comp_batch .as_ref() - .to_arrow() + .to_arrow2() .map(|array| { let field = arrow2::datatypes::Field::new( comp_batch.name().to_string(), diff --git a/crates/store/re_types_core/src/loggable.rs b/crates/store/re_types_core/src/loggable.rs index d18c09ed3c72..0c42840936d5 100644 --- a/crates/store/re_types_core/src/loggable.rs +++ b/crates/store/re_types_core/src/loggable.rs @@ -17,7 +17,7 @@ use crate::{Archetype, ComponentBatch, LoggableBatch}; /// which makes it possible to work with lists' worth of data in a generic fashion. pub trait Loggable: 'static + Send + Sync + Clone + Sized + SizeBytes { /// The underlying [`arrow2::datatypes::DataType`], excluding datatype extensions. - fn arrow_datatype() -> arrow2::datatypes::DataType; + fn arrow2_datatype() -> arrow2::datatypes::DataType; /// Given an iterator of options of owned or reference values to the current /// [`Loggable`], serializes them into an Arrow array. @@ -25,7 +25,7 @@ pub trait Loggable: 'static + Send + Sync + Clone + Sized + SizeBytes { /// When using Rerun's builtin components & datatypes, this can only fail if the data /// exceeds the maximum number of entries in an Arrow array (2^31 for standard arrays, /// 2^63 for large arrays). - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> SerializationResult> where @@ -40,23 +40,23 @@ pub trait Loggable: 'static + Send + Sync + Clone + Sized + SizeBytes { /// exceeds the maximum number of entries in an Arrow array (2^31 for standard arrays, /// 2^63 for large arrays). #[inline] - fn to_arrow<'a>( + fn to_arrow2<'a>( data: impl IntoIterator>>, ) -> SerializationResult> where Self: 'a, { re_tracing::profile_function!(); - Self::to_arrow_opt(data.into_iter().map(Some)) + Self::to_arrow2_opt(data.into_iter().map(Some)) } // --- Optional deserialization methods --- /// Given an Arrow array, deserializes it into a collection of [`Loggable`]s. #[inline] - fn from_arrow(data: &dyn ::arrow2::array::Array) -> DeserializationResult> { + fn from_arrow2(data: &dyn ::arrow2::array::Array) -> DeserializationResult> { re_tracing::profile_function!(); - Self::from_arrow_opt(data)? + Self::from_arrow2_opt(data)? .into_iter() .map(|opt| { opt.ok_or_else(|| crate::DeserializationError::MissingData { @@ -67,7 +67,7 @@ pub trait Loggable: 'static + Send + Sync + Clone + Sized + SizeBytes { } /// Given an Arrow array, deserializes it into a collection of optional [`Loggable`]s. - fn from_arrow_opt( + fn from_arrow2_opt( data: &dyn ::arrow2::array::Array, ) -> DeserializationResult>> { _ = data; // NOTE: do this here to avoid breaking users' autocomplete snippets diff --git a/crates/store/re_types_core/src/loggable_batch.rs b/crates/store/re_types_core/src/loggable_batch.rs index b51f45807d23..864ab4f2c06b 100644 --- a/crates/store/re_types_core/src/loggable_batch.rs +++ b/crates/store/re_types_core/src/loggable_batch.rs @@ -22,7 +22,7 @@ pub trait LoggableBatch { // type Loggable: Loggable; /// Serializes the batch into an Arrow array. - fn to_arrow(&self) -> SerializationResult>; + fn to_arrow2(&self) -> SerializationResult>; } /// A [`ComponentBatch`] represents an array's worth of [`Component`] instances. @@ -32,7 +32,7 @@ pub trait ComponentBatch: LoggableBatch { /// 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()?; + let array = self.to_arrow2()?; let offsets = arrow2::offset::Offsets::try_from_lengths(std::iter::repeat(1).take(array.len()))?; let data_type = ArrowListArray::::default_datatype(array.data_type().clone()); @@ -88,8 +88,8 @@ impl<'a> std::ops::Deref for MaybeOwnedComponentBatch<'a> { impl<'a> LoggableBatch for MaybeOwnedComponentBatch<'a> { #[inline] - fn to_arrow(&self) -> SerializationResult> { - self.as_ref().to_arrow() + fn to_arrow2(&self) -> SerializationResult> { + self.as_ref().to_arrow2() } } @@ -104,8 +104,8 @@ impl<'a> ComponentBatch for MaybeOwnedComponentBatch<'a> { impl LoggableBatch for L { #[inline] - fn to_arrow(&self) -> SerializationResult> { - L::to_arrow([std::borrow::Cow::Borrowed(self)]) + fn to_arrow2(&self) -> SerializationResult> { + L::to_arrow2([std::borrow::Cow::Borrowed(self)]) } } @@ -119,8 +119,8 @@ impl ComponentBatch for C { impl LoggableBatch for Option { #[inline] - fn to_arrow(&self) -> SerializationResult> { - L::to_arrow(self.iter().map(|v| std::borrow::Cow::Borrowed(v))) + fn to_arrow2(&self) -> SerializationResult> { + L::to_arrow2(self.iter().map(|v| std::borrow::Cow::Borrowed(v))) } } @@ -135,8 +135,8 @@ impl ComponentBatch for Option { impl LoggableBatch for Vec { #[inline] - fn to_arrow(&self) -> SerializationResult> { - L::to_arrow(self.iter().map(|v| std::borrow::Cow::Borrowed(v))) + fn to_arrow2(&self) -> SerializationResult> { + L::to_arrow2(self.iter().map(|v| std::borrow::Cow::Borrowed(v))) } } @@ -151,8 +151,8 @@ impl ComponentBatch for Vec { impl LoggableBatch for Vec> { #[inline] - fn to_arrow(&self) -> SerializationResult> { - L::to_arrow_opt( + fn to_arrow2(&self) -> SerializationResult> { + L::to_arrow2_opt( self.iter() .map(|opt| opt.as_ref().map(|v| std::borrow::Cow::Borrowed(v))), ) @@ -170,8 +170,8 @@ impl ComponentBatch for Vec> { impl LoggableBatch for [L; N] { #[inline] - fn to_arrow(&self) -> SerializationResult> { - L::to_arrow(self.iter().map(|v| std::borrow::Cow::Borrowed(v))) + fn to_arrow2(&self) -> SerializationResult> { + L::to_arrow2(self.iter().map(|v| std::borrow::Cow::Borrowed(v))) } } @@ -186,8 +186,8 @@ impl ComponentBatch for [C; N] { impl LoggableBatch for [Option; N] { #[inline] - fn to_arrow(&self) -> SerializationResult> { - L::to_arrow_opt( + fn to_arrow2(&self) -> SerializationResult> { + L::to_arrow2_opt( self.iter() .map(|opt| opt.as_ref().map(|v| std::borrow::Cow::Borrowed(v))), ) @@ -205,8 +205,8 @@ impl ComponentBatch for [Option; N] { impl<'a, L: Loggable> LoggableBatch for &'a [L] { #[inline] - fn to_arrow(&self) -> SerializationResult> { - L::to_arrow(self.iter().map(|v| std::borrow::Cow::Borrowed(v))) + fn to_arrow2(&self) -> SerializationResult> { + L::to_arrow2(self.iter().map(|v| std::borrow::Cow::Borrowed(v))) } } @@ -221,8 +221,8 @@ impl<'a, C: Component> ComponentBatch for &'a [C] { impl<'a, L: Loggable> LoggableBatch for &'a [Option] { #[inline] - fn to_arrow(&self) -> SerializationResult> { - L::to_arrow_opt( + fn to_arrow2(&self) -> SerializationResult> { + L::to_arrow2_opt( self.iter() .map(|opt| opt.as_ref().map(|v| std::borrow::Cow::Borrowed(v))), ) @@ -240,8 +240,8 @@ impl<'a, C: Component> ComponentBatch for &'a [Option] { impl<'a, L: Loggable, const N: usize> LoggableBatch for &'a [L; N] { #[inline] - fn to_arrow(&self) -> SerializationResult> { - L::to_arrow(self.iter().map(|v| std::borrow::Cow::Borrowed(v))) + fn to_arrow2(&self) -> SerializationResult> { + L::to_arrow2(self.iter().map(|v| std::borrow::Cow::Borrowed(v))) } } @@ -256,8 +256,8 @@ impl<'a, C: Component, const N: usize> ComponentBatch for &'a [C; N] { impl<'a, L: Loggable, const N: usize> LoggableBatch for &'a [Option; N] { #[inline] - fn to_arrow(&self) -> SerializationResult> { - L::to_arrow_opt( + fn to_arrow2(&self) -> SerializationResult> { + L::to_arrow2_opt( self.iter() .map(|opt| opt.as_ref().map(|v| std::borrow::Cow::Borrowed(v))), ) diff --git a/crates/store/re_types_core/src/tuid.rs b/crates/store/re_types_core/src/tuid.rs index 4fa47c682ea7..71e4e1d62bac 100644 --- a/crates/store/re_types_core/src/tuid.rs +++ b/crates/store/re_types_core/src/tuid.rs @@ -19,14 +19,14 @@ impl SizeBytes for Tuid { impl Loggable for Tuid { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { + fn arrow2_datatype() -> arrow2::datatypes::DataType { DataType::Struct(Arc::new(vec![ Field::new("time_ns", DataType::UInt64, false), Field::new("inc", DataType::UInt64, false), ])) } - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( _data: impl IntoIterator>>>, ) -> crate::SerializationResult> where @@ -34,12 +34,12 @@ impl Loggable for Tuid { { Err(crate::SerializationError::not_implemented( Self::NAME, - "TUIDs are never nullable, use `to_arrow()` instead", + "TUIDs are never nullable, use `to_arrow2()` instead", )) } #[inline] - fn to_arrow<'a>( + fn to_arrow2<'a>( data: impl IntoIterator>>, ) -> crate::SerializationResult> where @@ -59,7 +59,7 @@ impl Loggable for Tuid { let datatype = arrow2::datatypes::DataType::Extension( Self::NAME.to_owned(), - Arc::new(Self::arrow_datatype()), + Arc::new(Self::arrow2_datatype()), None, ); @@ -67,8 +67,8 @@ impl Loggable for Tuid { Ok(StructArray::new(datatype, values, validity).boxed()) } - fn from_arrow(array: &dyn ::arrow2::array::Array) -> crate::DeserializationResult> { - let expected_datatype = Self::arrow_datatype(); + fn from_arrow2(array: &dyn ::arrow2::array::Array) -> crate::DeserializationResult> { + let expected_datatype = Self::arrow2_datatype(); let actual_datatype = array.data_type().to_logical_type(); if actual_datatype != &expected_datatype { return Err(DeserializationError::datatype_mismatch( @@ -141,12 +141,12 @@ macro_rules! delegate_arrow_tuid { impl $crate::Loggable for $typ { #[inline] - fn arrow_datatype() -> ::arrow2::datatypes::DataType { - $crate::external::re_tuid::Tuid::arrow_datatype() + fn arrow2_datatype() -> ::arrow2::datatypes::DataType { + $crate::external::re_tuid::Tuid::arrow2_datatype() } #[inline] - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( values: impl IntoIterator>>>, ) -> $crate::SerializationResult> where @@ -154,29 +154,29 @@ macro_rules! delegate_arrow_tuid { { Err($crate::SerializationError::not_implemented( ::name(), - "TUIDs are never nullable, use `to_arrow()` instead", + "TUIDs are never nullable, use `to_arrow2()` instead", )) } #[inline] - fn to_arrow<'a>( + fn to_arrow2<'a>( values: impl IntoIterator>>, ) -> $crate::SerializationResult> { let values = values.into_iter().map(|value| { let value: ::std::borrow::Cow<'a, Self> = value.into(); value.into_owned() }); - <$crate::external::re_tuid::Tuid as $crate::Loggable>::to_arrow( + <$crate::external::re_tuid::Tuid as $crate::Loggable>::to_arrow2( values.into_iter().map(|$typ(tuid)| tuid), ) } #[inline] - fn from_arrow( + fn from_arrow2( array: &dyn arrow2::array::Array, ) -> $crate::DeserializationResult> { Ok( - <$crate::external::re_tuid::Tuid as $crate::Loggable>::from_arrow(array)? + <$crate::external::re_tuid::Tuid as $crate::Loggable>::from_arrow2(array)? .into_iter() .map(|tuid| Self(tuid)) .collect(), diff --git a/crates/top/re_sdk/src/recording_stream.rs b/crates/top/re_sdk/src/recording_stream.rs index a5d86850bbba..131a2dca6941 100644 --- a/crates/top/re_sdk/src/recording_stream.rs +++ b/crates/top/re_sdk/src/recording_stream.rs @@ -1170,7 +1170,7 @@ impl RecordingStream { .into_iter() .map(|comp_batch| { comp_batch - .to_arrow() + .to_arrow2() .map(|array| (comp_batch.name(), array)) }) .collect(); @@ -2549,7 +2549,7 @@ mod tests { components: [ ( MyPoint::name(), - ::to_arrow([ + ::to_arrow2([ MyPoint::new(10.0, 10.0), MyPoint::new(20.0, 20.0), ]) @@ -2557,12 +2557,13 @@ mod tests { ), // ( MyColor::name(), - ::to_arrow([MyColor(0x8080_80FF)]) + ::to_arrow2([MyColor(0x8080_80FF)]) .unwrap(), ), // ( MyLabel::name(), - ::to_arrow([] as [MyLabel; 0]).unwrap(), + ::to_arrow2([] as [MyLabel; 0]) + .unwrap(), ), // ] .into_iter() @@ -2577,15 +2578,18 @@ mod tests { components: [ ( MyPoint::name(), - ::to_arrow([] as [MyPoint; 0]).unwrap(), + ::to_arrow2([] as [MyPoint; 0]) + .unwrap(), ), // ( MyColor::name(), - ::to_arrow([] as [MyColor; 0]).unwrap(), + ::to_arrow2([] as [MyColor; 0]) + .unwrap(), ), // ( MyLabel::name(), - ::to_arrow([] as [MyLabel; 0]).unwrap(), + ::to_arrow2([] as [MyLabel; 0]) + .unwrap(), ), // ] .into_iter() @@ -2600,16 +2604,17 @@ mod tests { components: [ ( MyPoint::name(), - ::to_arrow([] as [MyPoint; 0]).unwrap(), + ::to_arrow2([] as [MyPoint; 0]) + .unwrap(), ), // ( MyColor::name(), - ::to_arrow([MyColor(0xFFFF_FFFF)]) + ::to_arrow2([MyColor(0xFFFF_FFFF)]) .unwrap(), ), // ( MyLabel::name(), - ::to_arrow([MyLabel("hey".into())]) + ::to_arrow2([MyLabel("hey".into())]) .unwrap(), ), // ] diff --git a/crates/viewer/re_component_ui/src/datatype_uis/singleline_string.rs b/crates/viewer/re_component_ui/src/datatype_uis/singleline_string.rs index 658aa527e3bd..8a2c22a138c8 100644 --- a/crates/viewer/re_component_ui/src/datatype_uis/singleline_string.rs +++ b/crates/viewer/re_component_ui/src/datatype_uis/singleline_string.rs @@ -86,7 +86,7 @@ pub fn display_text_ui( _row_id: Option, data: &dyn arrow2::array::Array, ) { - let text = match Text::from_arrow(data) { + let text = match Text::from_arrow2(data) { Ok(text) => text.first().cloned(), Err(err) => { ui.error_label("Failed to deserialize") @@ -115,7 +115,7 @@ pub fn display_name_ui( _row_id: Option, data: &dyn arrow2::array::Array, ) { - let name = match Name::from_arrow(data) { + let name = match Name::from_arrow2(data) { Ok(name) => name.first().cloned(), Err(err) => { ui.error_label("Failed to deserialize") diff --git a/crates/viewer/re_data_ui/src/component_ui_registry.rs b/crates/viewer/re_data_ui/src/component_ui_registry.rs index b9218eaffaa0..b0c4fab22e6d 100644 --- a/crates/viewer/re_data_ui/src/component_ui_registry.rs +++ b/crates/viewer/re_data_ui/src/component_ui_registry.rs @@ -23,7 +23,7 @@ pub fn add_to_registry(registry: &mut Com registry.add_legacy_display_ui( C::name(), Box::new( - |ctx, ui, ui_layout, query, db, entity_path, row_id, component_raw| match C::from_arrow( + |ctx, ui, ui_layout, query, db, entity_path, row_id, component_raw| match C::from_arrow2( component_raw, ) { Ok(components) => match components.len() { diff --git a/crates/viewer/re_space_view/src/lib.rs b/crates/viewer/re_space_view/src/lib.rs index 2d311a0a21a6..e85ee751a16a 100644 --- a/crates/viewer/re_space_view/src/lib.rs +++ b/crates/viewer/re_space_view/src/lib.rs @@ -55,7 +55,7 @@ pub fn diff_component_filter( .map_or(false, |list_array| { list_array .iter() - .filter_map(|array| array.and_then(|array| T::from_arrow(&*array).ok())) + .filter_map(|array| array.and_then(|array| T::from_arrow2(&*array).ok())) .any(|instances| instances.iter().any(filter)) }) } diff --git a/crates/viewer/re_space_view/src/results_ext.rs b/crates/viewer/re_space_view/src/results_ext.rs index ac9c8e195b5d..c894e27c7fa8 100644 --- a/crates/viewer/re_space_view/src/results_ext.rs +++ b/crates/viewer/re_space_view/src/results_ext.rs @@ -118,7 +118,7 @@ impl<'a> HybridLatestAtResults<'a> { .or_else(|| { // No override, no store, no default -> try fallback instead let raw_fallback = self.fallback_raw(C::name()); - C::from_arrow(raw_fallback.as_ref()) + C::from_arrow2(raw_fallback.as_ref()) .ok() .and_then(|r| r.first().cloned()) }) diff --git a/crates/viewer/re_space_view_spatial/src/max_image_dimension_subscriber.rs b/crates/viewer/re_space_view_spatial/src/max_image_dimension_subscriber.rs index 0e46418faef1..32bc0adc65a4 100644 --- a/crates/viewer/re_space_view_spatial/src/max_image_dimension_subscriber.rs +++ b/crates/viewer/re_space_view_spatial/src/max_image_dimension_subscriber.rs @@ -80,8 +80,9 @@ impl ChunkStoreSubscriber for MaxImageDimensionSubscriber { // Handle `Image`, `DepthImage`, `SegmentationImage`… if let Some(all_dimensions) = event.diff.chunk.components().get(&ImageFormat::name()) { for new_dim in all_dimensions.iter().filter_map(|array| { - array - .and_then(|array| ImageFormat::from_arrow(&*array).ok()?.into_iter().next()) + array.and_then(|array| { + ImageFormat::from_arrow2(&*array).ok()?.into_iter().next() + }) }) { let max_dim = self .max_dimensions @@ -122,10 +123,10 @@ impl ChunkStoreSubscriber for MaxImageDimensionSubscriber { fn size_from_blob(blob: &dyn Array, media_type: Option<&dyn Array>) -> Option<[u32; 2]> { re_tracing::profile_function!(); - let blob = Blob::from_arrow_opt(blob).ok()?.first()?.clone()?; + let blob = Blob::from_arrow2_opt(blob).ok()?.first()?.clone()?; let media_type: Option = media_type - .and_then(|media_type| MediaType::from_arrow_opt(media_type).ok()) + .and_then(|media_type| MediaType::from_arrow2_opt(media_type).ok()) .and_then(|list| list.first().cloned()) .flatten(); diff --git a/crates/viewer/re_space_view_time_series/src/line_visualizer_system.rs b/crates/viewer/re_space_view_time_series/src/line_visualizer_system.rs index ef3beabbda15..bfe8ac821844 100644 --- a/crates/viewer/re_space_view_time_series/src/line_visualizer_system.rs +++ b/crates/viewer/re_space_view_time_series/src/line_visualizer_system.rs @@ -240,7 +240,7 @@ impl SeriesLineSystem { chunk.iter_component_indices(&query.timeline(), &Scalar::name()) }) .map(|(data_time, _)| { - debug_assert_eq!(Scalar::arrow_datatype(), ArrowDatatype::Float64); + debug_assert_eq!(Scalar::arrow2_datatype(), ArrowDatatype::Float64); PlotPoint { time: data_time.as_i64(), @@ -254,7 +254,7 @@ impl SeriesLineSystem { { re_tracing::profile_scope!("fill values"); - debug_assert_eq!(Scalar::arrow_datatype(), ArrowDatatype::Float64); + debug_assert_eq!(Scalar::arrow2_datatype(), ArrowDatatype::Float64); all_scalar_chunks .iter() .flat_map(|chunk| chunk.iter_primitive::(&Scalar::name())) @@ -278,7 +278,7 @@ impl SeriesLineSystem { { re_tracing::profile_scope!("fill colors"); - debug_assert_eq!(Color::arrow_datatype(), ArrowDatatype::UInt32); + debug_assert_eq!(Color::arrow2_datatype(), ArrowDatatype::UInt32); fn map_raw_color(raw: &[u32]) -> Option { raw.first().map(|c| { @@ -331,7 +331,7 @@ impl SeriesLineSystem { { re_tracing::profile_scope!("fill stroke widths"); - debug_assert_eq!(StrokeWidth::arrow_datatype(), ArrowDatatype::Float32); + debug_assert_eq!(StrokeWidth::arrow2_datatype(), ArrowDatatype::Float32); { let all_stroke_width_chunks = results.get_optional_chunks(&StrokeWidth::name()); diff --git a/crates/viewer/re_space_view_time_series/src/point_visualizer_system.rs b/crates/viewer/re_space_view_time_series/src/point_visualizer_system.rs index f2ec2d3644bd..960c7596e6f0 100644 --- a/crates/viewer/re_space_view_time_series/src/point_visualizer_system.rs +++ b/crates/viewer/re_space_view_time_series/src/point_visualizer_system.rs @@ -254,7 +254,7 @@ impl SeriesPointSystem { chunk.iter_component_indices(&query.timeline(), &Scalar::name()) }) .map(|(data_time, _)| { - debug_assert_eq!(Scalar::arrow_datatype(), ArrowDatatype::Float64); + debug_assert_eq!(Scalar::arrow2_datatype(), ArrowDatatype::Float64); PlotPoint { time: data_time.as_i64(), @@ -268,7 +268,7 @@ impl SeriesPointSystem { { re_tracing::profile_scope!("fill values"); - debug_assert_eq!(Scalar::arrow_datatype(), ArrowDatatype::Float64); + debug_assert_eq!(Scalar::arrow2_datatype(), ArrowDatatype::Float64); let mut i = 0; all_scalar_chunks .iter() @@ -294,7 +294,7 @@ impl SeriesPointSystem { { re_tracing::profile_scope!("fill colors"); - debug_assert_eq!(Color::arrow_datatype(), ArrowDatatype::UInt32); + debug_assert_eq!(Color::arrow2_datatype(), ArrowDatatype::UInt32); fn map_raw_color(raw: &[u32]) -> Option { raw.first().map(|c| { @@ -348,7 +348,7 @@ impl SeriesPointSystem { { re_tracing::profile_scope!("fill marker sizes"); - debug_assert_eq!(MarkerSize::arrow_datatype(), ArrowDatatype::Float32); + debug_assert_eq!(MarkerSize::arrow2_datatype(), ArrowDatatype::Float32); { let all_marker_size_chunks = results.get_optional_chunks(&MarkerSize::name()); diff --git a/crates/viewer/re_viewer/src/blueprint/validation.rs b/crates/viewer/re_viewer/src/blueprint/validation.rs index 917613ca34f5..048c4569e2ec 100644 --- a/crates/viewer/re_viewer/src/blueprint/validation.rs +++ b/crates/viewer/re_viewer/src/blueprint/validation.rs @@ -6,13 +6,13 @@ use re_types_core::Component; pub(crate) fn validate_component(blueprint: &EntityDb) -> bool { let engine = blueprint.storage_engine(); if let Some(data_type) = engine.store().lookup_datatype(&C::name()) { - if data_type != &C::arrow_datatype() { + if data_type != &C::arrow2_datatype() { // If the schemas don't match, we definitely have a problem re_log::debug!( "Unexpected datatype for component {:?}.\nFound: {:#?}\nExpected: {:#?}", C::name(), data_type, - C::arrow_datatype() + C::arrow2_datatype() ); return false; } else { @@ -26,7 +26,7 @@ pub(crate) fn validate_component(blueprint: &EntityDb) -> bool { .latest_at(&query, path, [C::name()]) .component_batch_raw(&C::name()) { - if let Err(err) = C::from_arrow_opt(&*array) { + if let Err(err) = C::from_arrow2_opt(&*array) { re_log::debug!( "Failed to deserialize component {:?}: {:?}", C::name(), diff --git a/crates/viewer/re_viewer/src/reflection/mod.rs b/crates/viewer/re_viewer/src/reflection/mod.rs index 9942e6bf65e4..0eea1468ccb8 100644 --- a/crates/viewer/re_viewer/src/reflection/mod.rs +++ b/crates/viewer/re_viewer/src/reflection/mod.rs @@ -38,200 +38,202 @@ fn generate_component_reflection() -> Result::name(), ComponentReflection { docstring_md: "The active tab in a tabbed container.", - custom_placeholder: Some(ActiveTab::default().to_arrow()?), - datatype: ActiveTab::arrow_datatype(), + custom_placeholder: Some(ActiveTab::default().to_arrow2()?), + datatype: ActiveTab::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "Whether empty cells in a dataframe should be filled with a latest-at query.", - custom_placeholder: Some(ApplyLatestAt::default().to_arrow()?), - datatype: ApplyLatestAt::arrow_datatype(), + custom_placeholder: Some(ApplyLatestAt::default().to_arrow2()?), + datatype: ApplyLatestAt::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "Whether the viewport layout is determined automatically.", - custom_placeholder: Some(AutoLayout::default().to_arrow()?), - datatype: AutoLayout::arrow_datatype(), + custom_placeholder: Some(AutoLayout::default().to_arrow2()?), + datatype: AutoLayout::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "Whether or not space views should be created automatically.", - custom_placeholder: Some(AutoSpaceViews::default().to_arrow()?), - datatype: AutoSpaceViews::arrow_datatype(), + custom_placeholder: Some(AutoSpaceViews::default().to_arrow2()?), + datatype: AutoSpaceViews::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "The type of the background in a view.", - custom_placeholder: Some(BackgroundKind::default().to_arrow()?), - datatype: BackgroundKind::arrow_datatype(), + custom_placeholder: Some(BackgroundKind::default().to_arrow2()?), + datatype: BackgroundKind::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "The layout share of a column in the container.", - custom_placeholder: Some(ColumnShare::default().to_arrow()?), - datatype: ColumnShare::arrow_datatype(), + custom_placeholder: Some(ColumnShare::default().to_arrow2()?), + datatype: ColumnShare::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "Describe a component column to be selected in the dataframe view.", - custom_placeholder: Some(ComponentColumnSelector::default().to_arrow()?), - datatype: ComponentColumnSelector::arrow_datatype(), + custom_placeholder: Some( + ComponentColumnSelector::default().to_arrow2()?, + ), + datatype: ComponentColumnSelector::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "The kind of a blueprint container (tabs, grid, …).", - custom_placeholder: Some(ContainerKind::default().to_arrow()?), - datatype: ContainerKind::arrow_datatype(), + custom_placeholder: Some(ContainerKind::default().to_arrow2()?), + datatype: ContainerKind::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "One of four 2D corners, typically used to align objects.", - custom_placeholder: Some(Corner2D::default().to_arrow()?), - datatype: Corner2D::arrow_datatype(), + custom_placeholder: Some(Corner2D::default().to_arrow2()?), + datatype: Corner2D::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "Configuration for a filter-by-range feature of the dataframe view.", - custom_placeholder: Some(FilterByRange::default().to_arrow()?), - datatype: FilterByRange::arrow_datatype(), + custom_placeholder: Some(FilterByRange::default().to_arrow2()?), + datatype: FilterByRange::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "Configuration for the filter is not null feature of the dataframe view.", - custom_placeholder: Some(FilterIsNotNull::default().to_arrow()?), - datatype: FilterIsNotNull::arrow_datatype(), + custom_placeholder: Some(FilterIsNotNull::default().to_arrow2()?), + datatype: FilterIsNotNull::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "How many columns a grid container should have.", - custom_placeholder: Some(GridColumns::default().to_arrow()?), - datatype: GridColumns::arrow_datatype(), + custom_placeholder: Some(GridColumns::default().to_arrow2()?), + datatype: GridColumns::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "All the contents in the container.", - custom_placeholder: Some(IncludedContent::default().to_arrow()?), - datatype: IncludedContent::arrow_datatype(), + custom_placeholder: Some(IncludedContent::default().to_arrow2()?), + datatype: IncludedContent::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "The unique id of a space view, used to refer to views in containers.", - custom_placeholder: Some(IncludedSpaceView::default().to_arrow()?), - datatype: IncludedSpaceView::arrow_datatype(), + custom_placeholder: Some(IncludedSpaceView::default().to_arrow2()?), + datatype: IncludedSpaceView::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "Whether the entity can be interacted with.\n\nNon interactive components are still visible, but mouse interactions in the view are disabled.", - custom_placeholder: Some(Interactive::default().to_arrow()?), - datatype: Interactive::arrow_datatype(), + custom_placeholder: Some(Interactive::default().to_arrow2()?), + datatype: Interactive::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "Indicate whether the range should be locked when zooming in on the data.\n\nDefault is `false`, i.e. zoom will change the visualized range.", - custom_placeholder: Some(LockRangeDuringZoom::default().to_arrow()?), - datatype: LockRangeDuringZoom::arrow_datatype(), + custom_placeholder: Some(LockRangeDuringZoom::default().to_arrow2()?), + datatype: LockRangeDuringZoom::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "Name of the map provider to be used in Map views.", - custom_placeholder: Some(MapProvider::default().to_arrow()?), - datatype: MapProvider::arrow_datatype(), + custom_placeholder: Some(MapProvider::default().to_arrow2()?), + datatype: MapProvider::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "Tri-state for panel controls.", - custom_placeholder: Some(PanelState::default().to_arrow()?), - datatype: PanelState::arrow_datatype(), + custom_placeholder: Some(PanelState::default().to_arrow2()?), + datatype: PanelState::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "An individual query expression used to filter a set of [`datatypes.EntityPath`](https://rerun.io/docs/reference/types/datatypes/entity_path)s.\n\nEach expression is either an inclusion or an exclusion expression.\nInclusions start with an optional `+` and exclusions must start with a `-`.\n\nMultiple expressions are combined together as part of `SpaceViewContents`.\n\nThe `/**` suffix matches the whole subtree, i.e. self and any child, recursively\n(`/world/**` matches both `/world` and `/world/car/driver`).\nOther uses of `*` are not (yet) supported.", - custom_placeholder: Some(QueryExpression::default().to_arrow()?), - datatype: QueryExpression::arrow_datatype(), + custom_placeholder: Some(QueryExpression::default().to_arrow2()?), + datatype: QueryExpression::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "The container that sits at the root of a viewport.", - custom_placeholder: Some(RootContainer::default().to_arrow()?), - datatype: RootContainer::arrow_datatype(), + custom_placeholder: Some(RootContainer::default().to_arrow2()?), + datatype: RootContainer::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "The layout share of a row in the container.", - custom_placeholder: Some(RowShare::default().to_arrow()?), - datatype: RowShare::arrow_datatype(), + custom_placeholder: Some(RowShare::default().to_arrow2()?), + datatype: RowShare::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "Describe a component column to be selected in the dataframe view.", - custom_placeholder: Some(SelectedColumns::default().to_arrow()?), - datatype: SelectedColumns::arrow_datatype(), + custom_placeholder: Some(SelectedColumns::default().to_arrow2()?), + datatype: SelectedColumns::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "The class identifier of view, e.g. `\"2D\"`, `\"TextLog\"`, ….", - custom_placeholder: Some(SpaceViewClass::default().to_arrow()?), - datatype: SpaceViewClass::arrow_datatype(), + custom_placeholder: Some(SpaceViewClass::default().to_arrow2()?), + datatype: SpaceViewClass::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "Whether a space view is maximized.", - custom_placeholder: Some(SpaceViewMaximized::default().to_arrow()?), - datatype: SpaceViewMaximized::arrow_datatype(), + custom_placeholder: Some(SpaceViewMaximized::default().to_arrow2()?), + datatype: SpaceViewMaximized::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "The origin of a `SpaceView`.", - custom_placeholder: Some(SpaceViewOrigin::default().to_arrow()?), - datatype: SpaceViewOrigin::arrow_datatype(), + custom_placeholder: Some(SpaceViewOrigin::default().to_arrow2()?), + datatype: SpaceViewOrigin::arrow2_datatype(), }, ), ( @@ -239,25 +241,25 @@ fn generate_component_reflection() -> Result::name(), ComponentReflection { docstring_md: "A timeline identified by its name.", - custom_placeholder: Some(TimelineName::default().to_arrow()?), - datatype: TimelineName::arrow_datatype(), + custom_placeholder: Some(TimelineName::default().to_arrow2()?), + datatype: TimelineName::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "Determines whether an image or texture should be scaled to fit the viewport.", - custom_placeholder: Some(ViewFit::default().to_arrow()?), - datatype: ViewFit::arrow_datatype(), + custom_placeholder: Some(ViewFit::default().to_arrow2()?), + datatype: ViewFit::arrow2_datatype(), }, ), ( @@ -265,81 +267,81 @@ fn generate_component_reflection() -> Result::name(), ComponentReflection { docstring_md: "Whether the container, view, entity or instance is currently visible.", - custom_placeholder: Some(Visible::default().to_arrow()?), - datatype: Visible::arrow_datatype(), + custom_placeholder: Some(Visible::default().to_arrow2()?), + datatype: Visible::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "The range of values on a given timeline that will be included in a view's query.\n\nRefer to `VisibleTimeRanges` archetype for more information.", - custom_placeholder: Some(VisibleTimeRange::default().to_arrow()?), - datatype: VisibleTimeRange::arrow_datatype(), + custom_placeholder: Some(VisibleTimeRange::default().to_arrow2()?), + datatype: VisibleTimeRange::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "Visual bounds in 2D space used for `Spatial2DView`.", - custom_placeholder: Some(VisualBounds2D::default().to_arrow()?), - datatype: VisualBounds2D::arrow_datatype(), + custom_placeholder: Some(VisualBounds2D::default().to_arrow2()?), + datatype: VisualBounds2D::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "Override the visualizers for an entity.\n\nThis component is a stop-gap mechanism based on the current implementation details\nof the visualizer system. It is not intended to be a long-term solution, but provides\nenough utility to be useful in the short term.\n\nThe long-term solution is likely to be based off: \n\nThis can only be used as part of blueprints. It will have no effect if used\nin a regular entity.", - custom_placeholder: Some(VisualizerOverrides::default().to_arrow()?), - datatype: VisualizerOverrides::arrow_datatype(), + custom_placeholder: Some(VisualizerOverrides::default().to_arrow2()?), + datatype: VisualizerOverrides::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "A zoom level determines how much of the world is visible on a map.", - custom_placeholder: Some(ZoomLevel::default().to_arrow()?), - datatype: ZoomLevel::arrow_datatype(), + custom_placeholder: Some(ZoomLevel::default().to_arrow2()?), + datatype: ZoomLevel::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "Policy for aggregation of multiple scalar plot values.\n\nThis is used for lines in plots when the X axis distance of individual points goes below a single pixel,\ni.e. a single pixel covers more than one tick worth of data. It can greatly improve performance\n(and readability) in such situations as it prevents overdraw.", - custom_placeholder: Some(AggregationPolicy::default().to_arrow()?), - datatype: AggregationPolicy::arrow_datatype(), + custom_placeholder: Some(AggregationPolicy::default().to_arrow2()?), + datatype: AggregationPolicy::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "A color multiplier, usually applied to a whole entity, e.g. a mesh.", - custom_placeholder: Some(AlbedoFactor::default().to_arrow()?), - datatype: AlbedoFactor::arrow_datatype(), + custom_placeholder: Some(AlbedoFactor::default().to_arrow2()?), + datatype: AlbedoFactor::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "The annotation context provides additional information on how to display entities.\n\nEntities can use [`datatypes.ClassId`](https://rerun.io/docs/reference/types/datatypes/class_id)s and [`datatypes.KeypointId`](https://rerun.io/docs/reference/types/datatypes/keypoint_id)s to provide annotations, and\nthe labels and colors will be looked up in the appropriate\nannotation context. We use the *first* annotation context we find in the\npath-hierarchy when searching up through the ancestors of a given entity\npath.", - custom_placeholder: Some(AnnotationContext::default().to_arrow()?), - datatype: AnnotationContext::arrow_datatype(), + custom_placeholder: Some(AnnotationContext::default().to_arrow2()?), + datatype: AnnotationContext::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "The length of an axis in local units of the space.", - custom_placeholder: Some(AxisLength::default().to_arrow()?), - datatype: AxisLength::arrow_datatype(), + custom_placeholder: Some(AxisLength::default().to_arrow2()?), + datatype: AxisLength::arrow2_datatype(), }, ), ( @@ -347,119 +349,119 @@ fn generate_component_reflection() -> Result::name(), ComponentReflection { docstring_md: "A 16-bit ID representing a type of semantic class.", - custom_placeholder: Some(ClassId::default().to_arrow()?), - datatype: ClassId::arrow_datatype(), + custom_placeholder: Some(ClassId::default().to_arrow2()?), + datatype: ClassId::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "Configures how a clear operation should behave - recursive or not.", - custom_placeholder: Some(ClearIsRecursive::default().to_arrow()?), - datatype: ClearIsRecursive::arrow_datatype(), + custom_placeholder: Some(ClearIsRecursive::default().to_arrow2()?), + datatype: ClearIsRecursive::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "An RGBA color with unmultiplied/separate alpha, in sRGB gamma space with linear alpha.\n\nThe color is stored as a 32-bit integer, where the most significant\nbyte is `R` and the least significant byte is `A`.", - custom_placeholder: Some(Color::default().to_arrow()?), - datatype: Color::arrow_datatype(), + custom_placeholder: Some(Color::default().to_arrow2()?), + datatype: Color::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "Colormap for mapping scalar values within a given range to a color.\n\nThis provides a number of popular pre-defined colormaps.\nIn the future, the Rerun Viewer will allow users to define their own colormaps,\nbut currently the Viewer is limited to the types defined here.", - custom_placeholder: Some(Colormap::default().to_arrow()?), - datatype: Colormap::arrow_datatype(), + custom_placeholder: Some(Colormap::default().to_arrow2()?), + datatype: Colormap::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "The world->depth map scaling factor.\n\nThis measures how many depth map units are in a world unit.\nFor instance, if a depth map uses millimeters and the world uses meters,\nthis value would be `1000`.\n\nNote that the only effect on 2D views is the physical depth values shown when hovering the image.\nIn 3D views on the other hand, this affects where the points of the point cloud are placed.", - custom_placeholder: Some(DepthMeter::default().to_arrow()?), - datatype: DepthMeter::arrow_datatype(), + custom_placeholder: Some(DepthMeter::default().to_arrow2()?), + datatype: DepthMeter::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "Spatially disconnect this entity from its parent.\n\nSpecifies that the entity path at which this is logged is spatially disconnected from its parent,\nmaking it impossible to transform the entity path into its parent's space and vice versa.\nIt *only* applies to space views that work with spatial transformations, i.e. 2D & 3D space views.\nThis is useful for specifying that a subgraph is independent of the rest of the scene.", - custom_placeholder: Some(DisconnectedSpace::default().to_arrow()?), - datatype: DisconnectedSpace::arrow_datatype(), + custom_placeholder: Some(DisconnectedSpace::default().to_arrow2()?), + datatype: DisconnectedSpace::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "Draw order of 2D elements. Higher values are drawn on top of lower values.\n\nAn entity can have only a single draw order component.\nWithin an entity draw order is governed by the order of the components.\n\nDraw order for entities with the same draw order is generally undefined.", - custom_placeholder: Some(DrawOrder::default().to_arrow()?), - datatype: DrawOrder::arrow_datatype(), + custom_placeholder: Some(DrawOrder::default().to_arrow2()?), + datatype: DrawOrder::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "A path to an entity, usually to reference some data that is part of the target entity.", - custom_placeholder: Some(EntityPath::default().to_arrow()?), - datatype: EntityPath::arrow_datatype(), + custom_placeholder: Some(EntityPath::default().to_arrow2()?), + datatype: EntityPath::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "How a geometric shape is drawn and colored.", - custom_placeholder: Some(FillMode::default().to_arrow()?), - datatype: FillMode::arrow_datatype(), + custom_placeholder: Some(FillMode::default().to_arrow2()?), + datatype: FillMode::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "How much a primitive fills out the available space.\n\nUsed for instance to scale the points of the point cloud created from [`archetypes.DepthImage`](https://rerun.io/docs/reference/types/archetypes/depth_image) projection in 3D views.\nValid range is from 0 to max float although typically values above 1.0 are not useful.\n\nDefaults to 1.0.", - custom_placeholder: Some(FillRatio::default().to_arrow()?), - datatype: FillRatio::arrow_datatype(), + custom_placeholder: Some(FillRatio::default().to_arrow2()?), + datatype: FillRatio::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "A gamma correction value to be used with a scalar value or color.\n\nUsed to adjust the gamma of a color or scalar value between 0 and 1 before rendering.\n`new_value = old_value ^ gamma`\n\nValid range is from 0 (excluding) to max float.\nDefaults to 1.0 unless otherwise specified.", - custom_placeholder: Some(GammaCorrection::default().to_arrow()?), - datatype: GammaCorrection::arrow_datatype(), + custom_placeholder: Some(GammaCorrection::default().to_arrow2()?), + datatype: GammaCorrection::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "A geospatial line string expressed in [EPSG:4326](https://epsg.io/4326) latitude and longitude (North/East-positive degrees).", - custom_placeholder: Some(GeoLineString::default().to_arrow()?), - datatype: GeoLineString::arrow_datatype(), + custom_placeholder: Some(GeoLineString::default().to_arrow2()?), + datatype: GeoLineString::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "Half-size (radius) of a 2D box.\n\nMeasured in its local coordinate system.\n\nThe box extends both in negative and positive direction along each axis.\nNegative sizes indicate that the box is flipped along the respective axis, but this has no effect on how it is displayed.", - custom_placeholder: Some(HalfSize2D::default().to_arrow()?), - datatype: HalfSize2D::arrow_datatype(), + custom_placeholder: Some(HalfSize2D::default().to_arrow2()?), + datatype: HalfSize2D::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "Half-size (radius) of a 3D box.\n\nMeasured in its local coordinate system.\n\nThe box extends both in negative and positive direction along each axis.\nNegative sizes indicate that the box is flipped along the respective axis, but this has no effect on how it is displayed.", - custom_placeholder: Some(HalfSize3D::default().to_arrow()?), - datatype: HalfSize3D::arrow_datatype(), + custom_placeholder: Some(HalfSize3D::default().to_arrow2()?), + datatype: HalfSize3D::arrow2_datatype(), }, ), ( @@ -467,231 +469,231 @@ fn generate_component_reflection() -> Result::name(), ComponentReflection { docstring_md: "The metadata describing the contents of a [`components.ImageBuffer`](https://rerun.io/docs/reference/types/components/image_buffer).", - custom_placeholder: Some(ImageFormat::default().to_arrow()?), - datatype: ImageFormat::arrow_datatype(), + custom_placeholder: Some(ImageFormat::default().to_arrow2()?), + datatype: ImageFormat::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "The distance from the camera origin to the image plane when the projection is shown in a 3D viewer.\n\nThis is only used for visualization purposes, and does not affect the projection itself.", - custom_placeholder: Some(ImagePlaneDistance::default().to_arrow()?), - datatype: ImagePlaneDistance::arrow_datatype(), + custom_placeholder: Some(ImagePlaneDistance::default().to_arrow2()?), + datatype: ImagePlaneDistance::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "A 16-bit ID representing a type of semantic keypoint within a class.", - custom_placeholder: Some(KeypointId::default().to_arrow()?), - datatype: KeypointId::arrow_datatype(), + custom_placeholder: Some(KeypointId::default().to_arrow2()?), + datatype: KeypointId::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "A geospatial position expressed in [EPSG:4326](https://epsg.io/4326) latitude and longitude (North/East-positive degrees).", - custom_placeholder: Some(LatLon::default().to_arrow()?), - datatype: LatLon::arrow_datatype(), + custom_placeholder: Some(LatLon::default().to_arrow2()?), + datatype: LatLon::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "Length, or one-dimensional size.\n\nMeasured in its local coordinate system; consult the archetype in use to determine which\naxis or part of the entity this is the length of.", - custom_placeholder: Some(Length::default().to_arrow()?), - datatype: Length::arrow_datatype(), + custom_placeholder: Some(Length::default().to_arrow2()?), + datatype: Length::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "A line strip in 2D space.\n\nA line strip is a list of points connected by line segments. It can be used to draw\napproximations of smooth curves.\n\nThe points will be connected in order, like so:\n```text\n 2------3 5\n / \\ /\n0----1 \\ /\n 4\n```", - custom_placeholder: Some(LineStrip2D::default().to_arrow()?), - datatype: LineStrip2D::arrow_datatype(), + custom_placeholder: Some(LineStrip2D::default().to_arrow2()?), + datatype: LineStrip2D::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "A line strip in 3D space.\n\nA line strip is a list of points connected by line segments. It can be used to draw\napproximations of smooth curves.\n\nThe points will be connected in order, like so:\n```text\n 2------3 5\n / \\ /\n0----1 \\ /\n 4\n```", - custom_placeholder: Some(LineStrip3D::default().to_arrow()?), - datatype: LineStrip3D::arrow_datatype(), + custom_placeholder: Some(LineStrip3D::default().to_arrow2()?), + datatype: LineStrip3D::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "Filter used when magnifying an image/texture such that a single pixel/texel is displayed as multiple pixels on screen.", - custom_placeholder: Some(MagnificationFilter::default().to_arrow()?), - datatype: MagnificationFilter::arrow_datatype(), + custom_placeholder: Some(MagnificationFilter::default().to_arrow2()?), + datatype: MagnificationFilter::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "The visual appearance of a point in e.g. a 2D plot.", - custom_placeholder: Some(MarkerShape::default().to_arrow()?), - datatype: MarkerShape::arrow_datatype(), + custom_placeholder: Some(MarkerShape::default().to_arrow2()?), + datatype: MarkerShape::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "Radius of a marker of a point in e.g. a 2D plot, measured in UI points.", - custom_placeholder: Some(MarkerSize::default().to_arrow()?), - datatype: MarkerSize::arrow_datatype(), + custom_placeholder: Some(MarkerSize::default().to_arrow2()?), + datatype: MarkerSize::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "A standardized media type (RFC2046, formerly known as MIME types), encoded as a string.\n\nThe complete reference of officially registered media types is maintained by the IANA and can be\nconsulted at .", - custom_placeholder: Some(MediaType::default().to_arrow()?), - datatype: MediaType::arrow_datatype(), + custom_placeholder: Some(MediaType::default().to_arrow2()?), + datatype: MediaType::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "A display name, typically for an entity or a item like a plot series.", - custom_placeholder: Some(Name::default().to_arrow()?), - datatype: Name::arrow_datatype(), + custom_placeholder: Some(Name::default().to_arrow2()?), + datatype: Name::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "Degree of transparency ranging from 0.0 (fully transparent) to 1.0 (fully opaque).\n\nThe final opacity value may be a result of multiplication with alpha values as specified by other color sources.\nUnless otherwise specified, the default value is 1.", - custom_placeholder: Some(Opacity::default().to_arrow()?), - datatype: Opacity::arrow_datatype(), + custom_placeholder: Some(Opacity::default().to_arrow2()?), + datatype: Opacity::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "Camera projection, from image coordinates to view coordinates.\n\nChild from parent.\nImage coordinates from camera view coordinates.\n\nExample:\n```text\n1496.1 0.0 980.5\n 0.0 1496.1 744.5\n 0.0 0.0 1.0\n```", - custom_placeholder: Some(PinholeProjection::default().to_arrow()?), - datatype: PinholeProjection::arrow_datatype(), + custom_placeholder: Some(PinholeProjection::default().to_arrow2()?), + datatype: PinholeProjection::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "3D rotation represented by a rotation around a given axis that doesn't propagate in the transform hierarchy.", - custom_placeholder: Some(PoseRotationAxisAngle::default().to_arrow()?), - datatype: PoseRotationAxisAngle::arrow_datatype(), + custom_placeholder: Some(PoseRotationAxisAngle::default().to_arrow2()?), + datatype: PoseRotationAxisAngle::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "A 3D rotation expressed as a quaternion that doesn't propagate in the transform hierarchy.\n\nNote: although the x,y,z,w components of the quaternion will be passed through to the\ndatastore as provided, when used in the Viewer, quaternions will always be normalized.", - custom_placeholder: Some(PoseRotationQuat::default().to_arrow()?), - datatype: PoseRotationQuat::arrow_datatype(), + custom_placeholder: Some(PoseRotationQuat::default().to_arrow2()?), + datatype: PoseRotationQuat::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "A 3D scale factor that doesn't propagate in the transform hierarchy.\n\nA scale of 1.0 means no scaling.\nA scale of 2.0 means doubling the size.\nEach component scales along the corresponding axis.", - custom_placeholder: Some(PoseScale3D::default().to_arrow()?), - datatype: PoseScale3D::arrow_datatype(), + custom_placeholder: Some(PoseScale3D::default().to_arrow2()?), + datatype: PoseScale3D::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "A 3x3 transformation matrix Matrix that doesn't propagate in the transform hierarchy.\n\n3x3 matrixes are able to represent any affine transformation in 3D space,\ni.e. rotation, scaling, shearing, reflection etc.\n\nMatrices in Rerun are stored as flat list of coefficients in column-major order:\n```text\n column 0 column 1 column 2\n -------------------------------------------------\nrow 0 | flat_columns[0] flat_columns[3] flat_columns[6]\nrow 1 | flat_columns[1] flat_columns[4] flat_columns[7]\nrow 2 | flat_columns[2] flat_columns[5] flat_columns[8]\n```", - custom_placeholder: Some(PoseTransformMat3x3::default().to_arrow()?), - datatype: PoseTransformMat3x3::arrow_datatype(), + custom_placeholder: Some(PoseTransformMat3x3::default().to_arrow2()?), + datatype: PoseTransformMat3x3::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "A translation vector in 3D space that doesn't propagate in the transform hierarchy.", - custom_placeholder: Some(PoseTranslation3D::default().to_arrow()?), - datatype: PoseTranslation3D::arrow_datatype(), + custom_placeholder: Some(PoseTranslation3D::default().to_arrow2()?), + datatype: PoseTranslation3D::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "A position in 2D space.", - custom_placeholder: Some(Position2D::default().to_arrow()?), - datatype: Position2D::arrow_datatype(), + custom_placeholder: Some(Position2D::default().to_arrow2()?), + datatype: Position2D::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "A position in 3D space.", - custom_placeholder: Some(Position3D::default().to_arrow()?), - datatype: Position3D::arrow_datatype(), + custom_placeholder: Some(Position3D::default().to_arrow2()?), + datatype: Position3D::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "The radius of something, e.g. a point.\n\nInternally, positive values indicate scene units, whereas negative values\nare interpreted as UI points.\n\nUI points are independent of zooming in Views, but are sensitive to the application UI scaling.\nat 100% UI scaling, UI points are equal to pixels\nThe Viewer's UI scaling defaults to the OS scaling which typically is 100% for full HD screens and 200% for 4k screens.", - custom_placeholder: Some(Radius::default().to_arrow()?), - datatype: Radius::arrow_datatype(), + custom_placeholder: Some(Radius::default().to_arrow2()?), + datatype: Radius::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "A 1D range, specifying a lower and upper bound.", - custom_placeholder: Some(Range1D::default().to_arrow()?), - datatype: Range1D::arrow_datatype(), + custom_placeholder: Some(Range1D::default().to_arrow2()?), + datatype: Range1D::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "Pixel resolution width & height, e.g. of a camera sensor.\n\nTypically in integer units, but for some use cases floating point may be used.", - custom_placeholder: Some(Resolution::default().to_arrow()?), - datatype: Resolution::arrow_datatype(), + custom_placeholder: Some(Resolution::default().to_arrow2()?), + datatype: Resolution::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "3D rotation represented by a rotation around a given axis.", - custom_placeholder: Some(RotationAxisAngle::default().to_arrow()?), - datatype: RotationAxisAngle::arrow_datatype(), + custom_placeholder: Some(RotationAxisAngle::default().to_arrow2()?), + datatype: RotationAxisAngle::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "A 3D rotation expressed as a quaternion.\n\nNote: although the x,y,z,w components of the quaternion will be passed through to the\ndatastore as provided, when used in the Viewer, quaternions will always be normalized.", - custom_placeholder: Some(RotationQuat::default().to_arrow()?), - datatype: RotationQuat::arrow_datatype(), + custom_placeholder: Some(RotationQuat::default().to_arrow2()?), + datatype: RotationQuat::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "A scalar value, encoded as a 64-bit floating point.\n\nUsed for time series plots.", - custom_placeholder: Some(Scalar::default().to_arrow()?), - datatype: Scalar::arrow_datatype(), + custom_placeholder: Some(Scalar::default().to_arrow2()?), + datatype: Scalar::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "A 3D scale factor.\n\nA scale of 1.0 means no scaling.\nA scale of 2.0 means doubling the size.\nEach component scales along the corresponding axis.", - custom_placeholder: Some(Scale3D::default().to_arrow()?), - datatype: Scale3D::arrow_datatype(), + custom_placeholder: Some(Scale3D::default().to_arrow2()?), + datatype: Scale3D::arrow2_datatype(), }, ), ( @@ -699,23 +701,23 @@ fn generate_component_reflection() -> Result::name(), ComponentReflection { docstring_md: "The width of a stroke specified in UI points.", - custom_placeholder: Some(StrokeWidth::default().to_arrow()?), - datatype: StrokeWidth::arrow_datatype(), + custom_placeholder: Some(StrokeWidth::default().to_arrow2()?), + datatype: StrokeWidth::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "An N-dimensional array of numbers.\n\nThe number of dimensions and their respective lengths is specified by the `shape` field.\nThe dimensions are ordered from outermost to innermost. For example, in the common case of\na 2D RGB Image, the shape would be `[height, width, channel]`.\n\nThese dimensions are combined with an index to look up values from the `buffer` field,\nwhich stores a contiguous array of typed values.", - custom_placeholder: Some(TensorData::default().to_arrow()?), - datatype: TensorData::arrow_datatype(), + custom_placeholder: Some(TensorData::default().to_arrow2()?), + datatype: TensorData::arrow2_datatype(), }, ), ( @@ -723,121 +725,121 @@ fn generate_component_reflection() -> Result::name(), ComponentReflection { docstring_md: "Specifies which dimension to use for height.", - custom_placeholder: Some(TensorHeightDimension::default().to_arrow()?), - datatype: TensorHeightDimension::arrow_datatype(), + custom_placeholder: Some(TensorHeightDimension::default().to_arrow2()?), + datatype: TensorHeightDimension::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "Specifies which dimension to use for width.", - custom_placeholder: Some(TensorWidthDimension::default().to_arrow()?), - datatype: TensorWidthDimension::arrow_datatype(), + custom_placeholder: Some(TensorWidthDimension::default().to_arrow2()?), + datatype: TensorWidthDimension::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "A 2D texture UV coordinate.\n\nTexture coordinates specify a position on a 2D texture.\nA range from 0-1 covers the entire texture in the respective dimension.\nUnless configured otherwise, the texture repeats outside of this range.\nRerun uses top-left as the origin for UV coordinates.\n\n 0 U 1\n0 + --------- →\n | .\nV | .\n | .\n1 ↓ . . . . . .\n\nThis is the same convention as in Vulkan/Metal/DX12/WebGPU, but (!) unlike OpenGL,\nwhich places the origin at the bottom-left.", - custom_placeholder: Some(Texcoord2D::default().to_arrow()?), - datatype: Texcoord2D::arrow_datatype(), + custom_placeholder: Some(Texcoord2D::default().to_arrow2()?), + datatype: Texcoord2D::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "A string of text, e.g. for labels and text documents.", - custom_placeholder: Some(Text::default().to_arrow()?), - datatype: Text::arrow_datatype(), + custom_placeholder: Some(Text::default().to_arrow2()?), + datatype: Text::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "The severity level of a text log message.\n\nRecommended to be one of:\n* `\"CRITICAL\"`\n* `\"ERROR\"`\n* `\"WARN\"`\n* `\"INFO\"`\n* `\"DEBUG\"`\n* `\"TRACE\"`", - custom_placeholder: Some(TextLogLevel::default().to_arrow()?), - datatype: TextLogLevel::arrow_datatype(), + custom_placeholder: Some(TextLogLevel::default().to_arrow2()?), + datatype: TextLogLevel::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "A 3x3 transformation matrix Matrix.\n\n3x3 matrixes are able to represent any affine transformation in 3D space,\ni.e. rotation, scaling, shearing, reflection etc.\n\nMatrices in Rerun are stored as flat list of coefficients in column-major order:\n```text\n column 0 column 1 column 2\n -------------------------------------------------\nrow 0 | flat_columns[0] flat_columns[3] flat_columns[6]\nrow 1 | flat_columns[1] flat_columns[4] flat_columns[7]\nrow 2 | flat_columns[2] flat_columns[5] flat_columns[8]\n```", - custom_placeholder: Some(TransformMat3x3::default().to_arrow()?), - datatype: TransformMat3x3::arrow_datatype(), + custom_placeholder: Some(TransformMat3x3::default().to_arrow2()?), + datatype: TransformMat3x3::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "Specifies relation a spatial transform describes.", - custom_placeholder: Some(TransformRelation::default().to_arrow()?), - datatype: TransformRelation::arrow_datatype(), + custom_placeholder: Some(TransformRelation::default().to_arrow2()?), + datatype: TransformRelation::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "A translation vector in 3D space.", - custom_placeholder: Some(Translation3D::default().to_arrow()?), - datatype: Translation3D::arrow_datatype(), + custom_placeholder: Some(Translation3D::default().to_arrow2()?), + datatype: Translation3D::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "The three indices of a triangle in a triangle mesh.", - custom_placeholder: Some(TriangleIndices::default().to_arrow()?), - datatype: TriangleIndices::arrow_datatype(), + custom_placeholder: Some(TriangleIndices::default().to_arrow2()?), + datatype: TriangleIndices::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "Range of expected or valid values, specifying a lower and upper bound.", - custom_placeholder: Some(ValueRange::default().to_arrow()?), - datatype: ValueRange::arrow_datatype(), + custom_placeholder: Some(ValueRange::default().to_arrow2()?), + datatype: ValueRange::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "A vector in 2D space.", - custom_placeholder: Some(Vector2D::default().to_arrow()?), - datatype: Vector2D::arrow_datatype(), + custom_placeholder: Some(Vector2D::default().to_arrow2()?), + datatype: Vector2D::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "A vector in 3D space.", - custom_placeholder: Some(Vector3D::default().to_arrow()?), - datatype: Vector3D::arrow_datatype(), + custom_placeholder: Some(Vector3D::default().to_arrow2()?), + datatype: Vector3D::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "Timestamp inside a [`archetypes.AssetVideo`](https://rerun.io/docs/reference/types/archetypes/asset_video).", - custom_placeholder: Some(VideoTimestamp::default().to_arrow()?), - datatype: VideoTimestamp::arrow_datatype(), + custom_placeholder: Some(VideoTimestamp::default().to_arrow2()?), + datatype: VideoTimestamp::arrow2_datatype(), }, ), ( ::name(), ComponentReflection { docstring_md: "How we interpret the coordinate system of an entity/space.\n\nFor instance: What is \"up\"? What does the Z axis mean?\n\nThe three coordinates are always ordered as [x, y, z].\n\nFor example [Right, Down, Forward] means that the X axis points to the right, the Y axis points\ndown, and the Z axis points forward.\n\n⚠ [Rerun does not yet support left-handed coordinate systems](https://github.com/rerun-io/rerun/issues/5032).\n\nThe following constants are used to represent the different directions:\n * Up = 1\n * Down = 2\n * Right = 3\n * Left = 4\n * Forward = 5\n * Back = 6", - custom_placeholder: Some(ViewCoordinates::default().to_arrow()?), - datatype: ViewCoordinates::arrow_datatype(), + custom_placeholder: Some(ViewCoordinates::default().to_arrow2()?), + datatype: ViewCoordinates::arrow2_datatype(), }, ), ]; diff --git a/crates/viewer/re_viewer_context/src/component_fallbacks.rs b/crates/viewer/re_viewer_context/src/component_fallbacks.rs index 26f357e30a83..59993c6680db 100644 --- a/crates/viewer/re_viewer_context/src/component_fallbacks.rs +++ b/crates/viewer/re_viewer_context/src/component_fallbacks.rs @@ -20,7 +20,7 @@ pub enum ComponentFallbackProviderResult { impl From for ComponentFallbackProviderResult { fn from(batch: T) -> Self { - match batch.to_arrow() { + match batch.to_arrow2() { Ok(value) => Self::Value(value), Err(err) => Self::SerializationError(err), } diff --git a/crates/viewer/re_viewer_context/src/component_ui_registry.rs b/crates/viewer/re_viewer_context/src/component_ui_registry.rs index 0aafd7d33c6d..6898c448451c 100644 --- a/crates/viewer/re_viewer_context/src/component_ui_registry.rs +++ b/crates/viewer/re_viewer_context/src/component_ui_registry.rs @@ -354,7 +354,7 @@ impl ComponentUiRegistry { if response.changed() { use re_types::LoggableBatch as _; - deserialized_value.to_arrow().ok_or_log_error_once() + deserialized_value.to_arrow2().ok_or_log_error_once() } else { None } @@ -680,7 +680,7 @@ impl ComponentUiRegistry { fn try_deserialize(value: &dyn arrow2::array::Array) -> Option { let component_name = C::name(); - let deserialized = C::from_arrow(value); + let deserialized = C::from_arrow2(value); match deserialized { Ok(values) => { if values.len() > 1 { diff --git a/crates/viewer/re_viewport_blueprint/src/view_properties.rs b/crates/viewer/re_viewport_blueprint/src/view_properties.rs index b601fc6416b0..2216e84555a1 100644 --- a/crates/viewer/re_viewport_blueprint/src/view_properties.rs +++ b/crates/viewer/re_viewport_blueprint/src/view_properties.rs @@ -103,7 +103,7 @@ impl ViewProperty { view_state: &dyn re_viewer_context::SpaceViewState, ) -> Result, ViewPropertyQueryError> { let component_name = C::name(); - C::from_arrow( + C::from_arrow2( self.component_or_fallback_raw(ctx, component_name, fallback_provider, view_state) .as_ref(), ) @@ -125,7 +125,7 @@ impl ViewProperty { ) -> Result>, DeserializationError> { let component_name = C::name(); self.component_raw(component_name) - .map(|raw| C::from_arrow(raw.as_ref())) + .map(|raw| C::from_arrow2(raw.as_ref())) .transpose() } diff --git a/docs/snippets/all/tutorials/custom_data.rs b/docs/snippets/all/tutorials/custom_data.rs index fa0b4f53ed09..751270bf98f5 100644 --- a/docs/snippets/all/tutorials/custom_data.rs +++ b/docs/snippets/all/tutorials/custom_data.rs @@ -58,18 +58,18 @@ impl rerun::SizeBytes for Confidence { impl rerun::Loggable for Confidence { #[inline] - fn arrow_datatype() -> arrow2::datatypes::DataType { - rerun::Float32::arrow_datatype() + fn arrow2_datatype() -> arrow2::datatypes::DataType { + rerun::Float32::arrow2_datatype() } #[inline] - fn to_arrow_opt<'a>( + fn to_arrow2_opt<'a>( data: impl IntoIterator>>>, ) -> re_types::SerializationResult> where Self: 'a, { - rerun::Float32::to_arrow_opt(data.into_iter().map(|opt| opt.map(Into::into).map(|c| c.0))) + rerun::Float32::to_arrow2_opt(data.into_iter().map(|opt| opt.map(Into::into).map(|c| c.0))) } }