Struct re_viewer::external::re_space_view::HybridLatestAtResults
source · pub struct HybridLatestAtResults<'a> {
pub overrides: LatestAtResults,
pub results: LatestAtResults,
pub defaults: LatestAtResults,
pub ctx: &'a ViewContext<'a>,
pub query: LatestAtQuery,
pub data_result: &'a DataResult,
}
Expand description
Wrapper that contains the results of a latest-at query with possible overrides.
Although overrides are never temporal, when accessed via the crate::RangeResultsExt
trait
they will be merged into the results appropriately.
Fields§
§overrides: LatestAtResults
§results: LatestAtResults
§defaults: LatestAtResults
§ctx: &'a ViewContext<'a>
§query: LatestAtQuery
§data_result: &'a DataResult
Implementations§
source§impl<'a> HybridLatestAtResults<'a>
impl<'a> HybridLatestAtResults<'a>
sourcepub fn get(
&self,
component_name: impl Into<ComponentName>
) -> Option<&UnitChunkShared>
pub fn get( &self, component_name: impl Into<ComponentName> ) -> Option<&UnitChunkShared>
Returns the UnitChunkShared
for the specified re_types_core::Component
.
pub fn fallback_raw(&self, component_name: ComponentName) -> Box<dyn Array>
sourcepub fn get_required_mono<C>(&self) -> Option<C>where
C: Component,
pub fn get_required_mono<C>(&self) -> Option<C>where
C: Component,
Utility for retrieving the first instance of a component, ignoring defaults.
sourcepub fn get_mono<C>(&self) -> Option<C>where
C: Component,
pub fn get_mono<C>(&self) -> Option<C>where
C: Component,
Utility for retrieving the first instance of a component.
sourcepub fn get_mono_with_fallback<C>(&self) -> C
pub fn get_mono_with_fallback<C>(&self) -> C
Utility for retrieving the first instance of a component.
sourcepub fn get_required_instance<C>(&self, index: usize) -> Option<C>where
C: Component,
pub fn get_required_instance<C>(&self, index: usize) -> Option<C>where
C: Component,
Utility for retrieving a single instance of a component, not checking for defaults.
If overrides or defaults are present, they will only be used respectively if they have a component at the specified index.
sourcepub fn get_instance<C>(&self, index: usize) -> Option<C>where
C: Component,
pub fn get_instance<C>(&self, index: usize) -> Option<C>where
C: Component,
Utility for retrieving a single instance of a component.
If overrides or defaults are present, they will only be used respectively if they have a component at the specified index.
sourcepub fn get_instance_with_fallback<C>(&self, index: usize) -> C
pub fn get_instance_with_fallback<C>(&self, index: usize) -> C
Utility for retrieving a single instance of a component.
If overrides or defaults are present, they will only be used respectively if they have a component at the specified index.
Trait Implementations§
source§impl<'a> RangeResultsExt for HybridLatestAtResults<'a>
impl<'a> RangeResultsExt for HybridLatestAtResults<'a>
source§fn get_required_chunks(
&self,
component_name: &ComponentName
) -> Option<Cow<'_, [Chunk]>>
fn get_required_chunks( &self, component_name: &ComponentName ) -> Option<Cow<'_, [Chunk]>>
source§fn get_optional_chunks(
&self,
component_name: &ComponentName
) -> Cow<'_, [Chunk]>
fn get_optional_chunks( &self, component_name: &ComponentName ) -> Cow<'_, [Chunk]>
source§fn iter_as(
&self,
timeline: Timeline,
component_name: ComponentName
) -> HybridResultsChunkIter<'_>
fn iter_as( &self, timeline: Timeline, component_name: ComponentName ) -> HybridResultsChunkIter<'_>
(timeline, component)
pair. Read moreAuto Trait Implementations§
impl<'a> Freeze for HybridLatestAtResults<'a>
impl<'a> !RefUnwindSafe for HybridLatestAtResults<'a>
impl<'a> Send for HybridLatestAtResults<'a>
impl<'a> Sync for HybridLatestAtResults<'a>
impl<'a> Unpin for HybridLatestAtResults<'a>
impl<'a> !UnwindSafe for HybridLatestAtResults<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request