Trait rerun::ComponentBatch

source ·
pub trait ComponentBatch: LoggableBatch<Name = ComponentName> { }
Expand description

A ComponentBatch represents an array’s worth of Component instances.

Any LoggableBatch with a Loggable::Name set to ComponentName automatically implements ComponentBatch.

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§