Trait rerun::sdk::ComponentBatch
source · pub trait ComponentBatch: LoggableBatch<Name = ComponentName> {
// Provided method
fn to_arrow_list_array(&self) -> Result<ListArray<i32>, SerializationError> { ... }
}
Expand description
A ComponentBatch
represents an array’s worth of Component
instances.
Any LoggableBatch
with a Loggable::Name
set to ComponentName
automatically
implements ComponentBatch
.
Provided Methods§
sourcefn to_arrow_list_array(&self) -> Result<ListArray<i32>, SerializationError>
fn to_arrow_list_array(&self) -> Result<ListArray<i32>, SerializationError>
Serializes the batch into an Arrow list array with a single component per list.
Trait Implementations§
source§impl<'a> AsRef<dyn ComponentBatch<Name = ComponentName> + 'a> for MaybeOwnedComponentBatch<'a>
impl<'a> AsRef<dyn ComponentBatch<Name = ComponentName> + 'a> for MaybeOwnedComponentBatch<'a>
source§fn as_ref(&self) -> &(dyn ComponentBatch<Name = ComponentName> + 'a)
fn as_ref(&self) -> &(dyn ComponentBatch<Name = ComponentName> + 'a)
Converts this type into a shared reference of the (usually inferred) input type.
source§impl<'a> From<&'a dyn ComponentBatch<Name = ComponentName>> for MaybeOwnedComponentBatch<'a>
impl<'a> From<&'a dyn ComponentBatch<Name = ComponentName>> for MaybeOwnedComponentBatch<'a>
source§fn from(
comp_batch: &'a dyn ComponentBatch<Name = ComponentName>
) -> MaybeOwnedComponentBatch<'a>
fn from( comp_batch: &'a dyn ComponentBatch<Name = ComponentName> ) -> MaybeOwnedComponentBatch<'a>
Converts to this type from the input type.