Skip to content

Commit 410df5b

Browse files
committed
doc lints
1 parent 0675f6f commit 410df5b

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

crates/store/re_types_core/src/as_components.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ use crate::{SerializationResult, SerializedComponentBatch};
88
/// it is possible to manually extend existing bundles, or even implement fully custom ones.
99
///
1010
/// All [`AsComponents`] methods are optional to implement, with the exception of
11-
/// [`AsComponents::as_component_batches`], which describes how the bundle can be interpreted
12-
/// as a set of [`ComponentBatch`]es: arrays of components that are ready to be serialized.
11+
/// [`AsComponents::as_serialized_batches`], which describes how the bundle can be interpreted
12+
/// as a set of [`SerializedComponentBatch`]es: serialized component data.
1313
///
1414
/// Have a look at our [Custom Data Loader] example to learn more about handwritten bundles.
1515
///
@@ -37,7 +37,7 @@ pub trait AsComponents {
3737

3838
/// Serializes all non-null [`Component`]s of this bundle into Arrow arrays.
3939
///
40-
/// The default implementation will simply serialize the result of [`Self::as_component_batches`]
40+
/// The default implementation will simply serialize the result of [`Self::as_serialized_batches`]
4141
/// as-is, which is what you want in 99.9% of cases.
4242
///
4343
/// [`Component`]: [crate::Component]
@@ -124,15 +124,15 @@ impl AsComponents for Vec<Box<dyn AsComponents>> {
124124

125125
/// ```compile_fail
126126
/// let comp = re_types_core::components::ClearIsRecursive::default();
127-
/// let _ = (&comp as &dyn re_types_core::AsComponents).as_component_batches();
127+
/// let _ = (&comp as &dyn re_types_core::AsComponents).as_serialized_batches();
128128
/// ```
129129
#[allow(dead_code)]
130130
#[allow(rustdoc::private_doc_tests)] // doc-tests are the only way to assert failed compilation
131131
fn single_ascomponents() {}
132132

133133
/// ```compile_fail
134134
/// let comp = re_types_core::components::ClearIsRecursive::default();
135-
/// let _ = (&[comp] as &dyn re_types_core::AsComponents).as_component_batches();
135+
/// let _ = (&[comp] as &dyn re_types_core::AsComponents).as_serialized_batches();
136136
/// ```
137137
#[allow(dead_code)]
138138
#[allow(rustdoc::private_doc_tests)] // doc-tests are the only way to assert failed compilation
@@ -143,7 +143,7 @@ fn single_ascomponents_wrapped() {
143143

144144
/// ```compile_fail
145145
/// let comp = re_types_core::components::ClearIsRecursive::default();
146-
/// let _ = (&[comp, comp, comp] as &dyn re_types_core::AsComponents).as_component_batches();
146+
/// let _ = (&[comp, comp, comp] as &dyn re_types_core::AsComponents).as_serialized_batches();
147147
/// ```
148148
#[allow(dead_code)]
149149
#[allow(rustdoc::private_doc_tests)] // doc-tests are the only way to assert failed compilation
@@ -155,7 +155,7 @@ fn single_ascomponents_wrapped_many() {
155155
/// ```compile_fail
156156
/// let comp = re_types_core::components::ClearIsRecursive::default();
157157
/// let comps = vec![comp, comp, comp];
158-
/// let _ = (&comps as &dyn re_types_core::AsComponents).as_component_batches();
158+
/// let _ = (&comps as &dyn re_types_core::AsComponents).as_serialized_batches();
159159
/// ```
160160
#[allow(dead_code)]
161161
#[allow(rustdoc::private_doc_tests)] // doc-tests are the only way to assert failed compilation
@@ -164,7 +164,7 @@ fn many_ascomponents() {}
164164
/// ```compile_fail
165165
/// let comp = re_types_core::components::ClearIsRecursive::default();
166166
/// let comps = vec![comp, comp, comp];
167-
/// let _ = (&[comps] as &dyn re_types_core::AsComponents).as_component_batches();
167+
/// let _ = (&[comps] as &dyn re_types_core::AsComponents).as_serialized_batches();
168168
/// ```
169169
#[allow(dead_code)]
170170
#[allow(rustdoc::private_doc_tests)] // doc-tests are the only way to assert failed compilation
@@ -182,7 +182,7 @@ fn many_componentbatch_wrapped() {}
182182
/// ```compile_fail
183183
/// let comp = re_types_core::components::ClearIsRecursive::default();
184184
/// let comps = vec![comp, comp, comp];
185-
/// let _ = (&[comps.clone(), comps.clone(), comps.clone()] as &dyn re_types_core::AsComponents).as_component_batches();
185+
/// let _ = (&[comps.clone(), comps.clone(), comps.clone()] as &dyn re_types_core::AsComponents).as_serialized_batches();
186186
/// ```
187187
#[allow(dead_code)]
188188
#[allow(rustdoc::private_doc_tests)] // doc-tests are the only way to assert failed compilation

0 commit comments

Comments
 (0)