Skip to content

Commit 9db162c

Browse files
committed
MaybeOwnedComponentBatch -> ComponentBatchWithDescriptor
1 parent 2984def commit 9db162c

File tree

266 files changed

+758
-754
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

266 files changed

+758
-754
lines changed

crates/build/re_types_builder/src/codegen/rust/api.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ fn generate_object_file(
185185
code.push_str("use ::re_types_core::SerializationResult;\n");
186186
code.push_str("use ::re_types_core::{DeserializationResult, DeserializationError};\n");
187187
code.push_str("use ::re_types_core::{ComponentDescriptor, ComponentName};\n");
188-
code.push_str("use ::re_types_core::{ComponentBatch, MaybeOwnedComponentBatch};\n");
188+
code.push_str("use ::re_types_core::{ComponentBatch, ComponentBatchCowWithDescriptor};\n");
189189

190190
// NOTE: `TokenStream`s discard whitespacing information by definition, so we need to
191191
// inject some of our own when writing to file… while making sure that don't inject
@@ -1172,7 +1172,7 @@ fn quote_trait_impls_for_archetype(obj: &Object) -> TokenStream {
11721172

11731173
quote! {
11741174
(#batch).map(|batch| {
1175-
::re_types_core::MaybeOwnedComponentBatch {
1175+
::re_types_core::ComponentBatchCowWithDescriptor {
11761176
batch: batch.into(),
11771177
descriptor_override: Some(ComponentDescriptor {
11781178
archetype_name: Some(#archetype_name.into()),
@@ -1299,9 +1299,9 @@ fn quote_trait_impls_for_archetype(obj: &Object) -> TokenStream {
12991299
}
13001300

13011301
#[inline]
1302-
fn indicator() -> MaybeOwnedComponentBatch<'static> {
1302+
fn indicator() -> ComponentBatchCowWithDescriptor<'static> {
13031303
static INDICATOR: #quoted_indicator_name = #quoted_indicator_name::DEFAULT;
1304-
MaybeOwnedComponentBatch::new(&INDICATOR as &dyn ::re_types_core::ComponentBatch)
1304+
ComponentBatchCowWithDescriptor::new(&INDICATOR as &dyn ::re_types_core::ComponentBatch)
13051305
}
13061306

13071307
#[inline]
@@ -1352,7 +1352,7 @@ fn quote_trait_impls_for_archetype(obj: &Object) -> TokenStream {
13521352
}
13531353

13541354
impl ::re_types_core::AsComponents for #name {
1355-
fn as_component_batches(&self) -> Vec<MaybeOwnedComponentBatch<'_>> {
1355+
fn as_component_batches(&self) -> Vec<ComponentBatchCowWithDescriptor<'_>> {
13561356
re_tracing::profile_function!();
13571357

13581358
use ::re_types_core::Archetype as _;

crates/store/re_types/src/archetypes/annotation_context.rs

+5-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/store/re_types/src/archetypes/arrows2d.rs

+12-12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/store/re_types/src/archetypes/arrows3d.rs

+11-11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/store/re_types/src/archetypes/asset3d.rs

+7-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/store/re_types/src/archetypes/asset_video.rs

+6-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)