Trait rerun::external::re_types::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§

source

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>

source§

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>

source§

fn from( comp_batch: &'a dyn ComponentBatch<Name = ComponentName> ) -> MaybeOwnedComponentBatch<'a>

Converts to this type from the input type.

Implementations on Foreign Types§

source§

impl<'a, C> ComponentBatch for &'a [C]
where C: Component,

source§

impl<'a, C> ComponentBatch for &'a [Option<C>]
where C: Component,

source§

impl<'a, C, const N: usize> ComponentBatch for &'a [C; N]
where C: Component,

source§

impl<'a, C, const N: usize> ComponentBatch for &'a [Option<C>; N]
where C: Component,

source§

impl<C> ComponentBatch for Option<C>
where C: Component,

source§

impl<C> ComponentBatch for Vec<Option<C>>
where C: Component,

source§

impl<C> ComponentBatch for Vec<C>
where C: Component,

source§

impl<C, const N: usize> ComponentBatch for [C; N]
where C: Component,

source§

impl<C, const N: usize> ComponentBatch for [Option<C>; N]
where C: Component,

Implementors§