Struct rerun::external::re_query::LatestAtResults
source · pub struct LatestAtResults {
pub compound_index: (TimeInt, RowId),
pub components: HashMap<ComponentName, Arc<LatestAtComponentResults>, BuildHasherDefault<NoHashHasher<ComponentName>>>,
}
Expand description
Results for a latest-at query.
The data is both deserialized and resolved/converted.
Use LatestAtResults::get
, LatestAtResults::get_required
and
LatestAtResults::get_or_empty
in order to access the results for each individual component.
Fields§
§compound_index: (TimeInt, RowId)
The compound index of this query result.
A latest-at query is a compound operation that gathers data from many different rows. The index of that compound result corresponds to the index of most the recent row in all the sub-results, as defined by time and row-id order.
components: HashMap<ComponentName, Arc<LatestAtComponentResults>, BuildHasherDefault<NoHashHasher<ComponentName>>>
Results for each individual component.
Implementations§
source§impl LatestAtResults
impl LatestAtResults
pub fn contains(&self, component_name: impl Into<ComponentName>) -> bool
sourcepub fn get(
&self,
component_name: impl Into<ComponentName>
) -> Option<&LatestAtComponentResults>
pub fn get( &self, component_name: impl Into<ComponentName> ) -> Option<&LatestAtComponentResults>
Returns the LatestAtComponentResults
for the specified Component
.
sourcepub fn get_required(
&self,
component_name: impl Into<ComponentName>
) -> Result<&LatestAtComponentResults, QueryError>
pub fn get_required( &self, component_name: impl Into<ComponentName> ) -> Result<&LatestAtComponentResults, QueryError>
Returns the LatestAtComponentResults
for the specified Component
.
Returns an error if the component is not present.
sourcepub fn get_or_empty(
&self,
component_name: impl Into<ComponentName>
) -> &LatestAtComponentResults
pub fn get_or_empty( &self, component_name: impl Into<ComponentName> ) -> &LatestAtComponentResults
Returns the LatestAtComponentResults
for the specified Component
.
Returns empty results if the component is not present.
Trait Implementations§
source§impl Debug for LatestAtResults
impl Debug for LatestAtResults
source§impl Default for LatestAtResults
impl Default for LatestAtResults
source§fn default() -> LatestAtResults
fn default() -> LatestAtResults
source§impl ToArchetype<AnnotationContext> for LatestAtResults
impl ToArchetype<AnnotationContext> for LatestAtResults
source§fn to_archetype(
&self,
resolver: &PromiseResolver
) -> PromiseResult<Result<AnnotationContext, QueryError>>
fn to_archetype( &self, resolver: &PromiseResolver ) -> PromiseResult<Result<AnnotationContext, QueryError>>
re_types_core::Archetype
. Read moresource§impl ToArchetype<Arrows2D> for LatestAtResults
impl ToArchetype<Arrows2D> for LatestAtResults
source§fn to_archetype(
&self,
resolver: &PromiseResolver
) -> PromiseResult<Result<Arrows2D, QueryError>>
fn to_archetype( &self, resolver: &PromiseResolver ) -> PromiseResult<Result<Arrows2D, QueryError>>
re_types_core::Archetype
. Read moresource§impl ToArchetype<Arrows3D> for LatestAtResults
impl ToArchetype<Arrows3D> for LatestAtResults
source§fn to_archetype(
&self,
resolver: &PromiseResolver
) -> PromiseResult<Result<Arrows3D, QueryError>>
fn to_archetype( &self, resolver: &PromiseResolver ) -> PromiseResult<Result<Arrows3D, QueryError>>
re_types_core::Archetype
. Read moresource§impl ToArchetype<Asset3D> for LatestAtResults
impl ToArchetype<Asset3D> for LatestAtResults
source§fn to_archetype(
&self,
resolver: &PromiseResolver
) -> PromiseResult<Result<Asset3D, QueryError>>
fn to_archetype( &self, resolver: &PromiseResolver ) -> PromiseResult<Result<Asset3D, QueryError>>
re_types_core::Archetype
. Read moresource§impl ToArchetype<Background> for LatestAtResults
impl ToArchetype<Background> for LatestAtResults
source§fn to_archetype(
&self,
resolver: &PromiseResolver
) -> PromiseResult<Result<Background, QueryError>>
fn to_archetype( &self, resolver: &PromiseResolver ) -> PromiseResult<Result<Background, QueryError>>
re_types_core::Archetype
. Read moresource§impl ToArchetype<BarChart> for LatestAtResults
impl ToArchetype<BarChart> for LatestAtResults
source§fn to_archetype(
&self,
resolver: &PromiseResolver
) -> PromiseResult<Result<BarChart, QueryError>>
fn to_archetype( &self, resolver: &PromiseResolver ) -> PromiseResult<Result<BarChart, QueryError>>
re_types_core::Archetype
. Read moresource§impl ToArchetype<Boxes2D> for LatestAtResults
impl ToArchetype<Boxes2D> for LatestAtResults
source§fn to_archetype(
&self,
resolver: &PromiseResolver
) -> PromiseResult<Result<Boxes2D, QueryError>>
fn to_archetype( &self, resolver: &PromiseResolver ) -> PromiseResult<Result<Boxes2D, QueryError>>
re_types_core::Archetype
. Read moresource§impl ToArchetype<Boxes3D> for LatestAtResults
impl ToArchetype<Boxes3D> for LatestAtResults
source§fn to_archetype(
&self,
resolver: &PromiseResolver
) -> PromiseResult<Result<Boxes3D, QueryError>>
fn to_archetype( &self, resolver: &PromiseResolver ) -> PromiseResult<Result<Boxes3D, QueryError>>
re_types_core::Archetype
. Read moresource§impl ToArchetype<Clear> for LatestAtResults
impl ToArchetype<Clear> for LatestAtResults
source§fn to_archetype(
&self,
resolver: &PromiseResolver
) -> PromiseResult<Result<Clear, QueryError>>
fn to_archetype( &self, resolver: &PromiseResolver ) -> PromiseResult<Result<Clear, QueryError>>
re_types_core::Archetype
. Read moresource§impl ToArchetype<ContainerBlueprint> for LatestAtResults
impl ToArchetype<ContainerBlueprint> for LatestAtResults
source§fn to_archetype(
&self,
resolver: &PromiseResolver
) -> PromiseResult<Result<ContainerBlueprint, QueryError>>
fn to_archetype( &self, resolver: &PromiseResolver ) -> PromiseResult<Result<ContainerBlueprint, QueryError>>
re_types_core::Archetype
. Read moresource§impl ToArchetype<DepthImage> for LatestAtResults
impl ToArchetype<DepthImage> for LatestAtResults
source§fn to_archetype(
&self,
resolver: &PromiseResolver
) -> PromiseResult<Result<DepthImage, QueryError>>
fn to_archetype( &self, resolver: &PromiseResolver ) -> PromiseResult<Result<DepthImage, QueryError>>
re_types_core::Archetype
. Read moresource§impl ToArchetype<DisconnectedSpace> for LatestAtResults
impl ToArchetype<DisconnectedSpace> for LatestAtResults
source§fn to_archetype(
&self,
resolver: &PromiseResolver
) -> PromiseResult<Result<DisconnectedSpace, QueryError>>
fn to_archetype( &self, resolver: &PromiseResolver ) -> PromiseResult<Result<DisconnectedSpace, QueryError>>
re_types_core::Archetype
. Read moresource§impl ToArchetype<Image> for LatestAtResults
impl ToArchetype<Image> for LatestAtResults
source§fn to_archetype(
&self,
resolver: &PromiseResolver
) -> PromiseResult<Result<Image, QueryError>>
fn to_archetype( &self, resolver: &PromiseResolver ) -> PromiseResult<Result<Image, QueryError>>
re_types_core::Archetype
. Read moresource§impl ToArchetype<LineStrips2D> for LatestAtResults
impl ToArchetype<LineStrips2D> for LatestAtResults
source§fn to_archetype(
&self,
resolver: &PromiseResolver
) -> PromiseResult<Result<LineStrips2D, QueryError>>
fn to_archetype( &self, resolver: &PromiseResolver ) -> PromiseResult<Result<LineStrips2D, QueryError>>
re_types_core::Archetype
. Read moresource§impl ToArchetype<LineStrips3D> for LatestAtResults
impl ToArchetype<LineStrips3D> for LatestAtResults
source§fn to_archetype(
&self,
resolver: &PromiseResolver
) -> PromiseResult<Result<LineStrips3D, QueryError>>
fn to_archetype( &self, resolver: &PromiseResolver ) -> PromiseResult<Result<LineStrips3D, QueryError>>
re_types_core::Archetype
. Read moresource§impl ToArchetype<Mesh3D> for LatestAtResults
impl ToArchetype<Mesh3D> for LatestAtResults
source§fn to_archetype(
&self,
resolver: &PromiseResolver
) -> PromiseResult<Result<Mesh3D, QueryError>>
fn to_archetype( &self, resolver: &PromiseResolver ) -> PromiseResult<Result<Mesh3D, QueryError>>
re_types_core::Archetype
. Read moresource§impl ToArchetype<PanelBlueprint> for LatestAtResults
impl ToArchetype<PanelBlueprint> for LatestAtResults
source§fn to_archetype(
&self,
resolver: &PromiseResolver
) -> PromiseResult<Result<PanelBlueprint, QueryError>>
fn to_archetype( &self, resolver: &PromiseResolver ) -> PromiseResult<Result<PanelBlueprint, QueryError>>
re_types_core::Archetype
. Read moresource§impl ToArchetype<Pinhole> for LatestAtResults
impl ToArchetype<Pinhole> for LatestAtResults
source§fn to_archetype(
&self,
resolver: &PromiseResolver
) -> PromiseResult<Result<Pinhole, QueryError>>
fn to_archetype( &self, resolver: &PromiseResolver ) -> PromiseResult<Result<Pinhole, QueryError>>
re_types_core::Archetype
. Read moresource§impl ToArchetype<PlotLegend> for LatestAtResults
impl ToArchetype<PlotLegend> for LatestAtResults
source§fn to_archetype(
&self,
resolver: &PromiseResolver
) -> PromiseResult<Result<PlotLegend, QueryError>>
fn to_archetype( &self, resolver: &PromiseResolver ) -> PromiseResult<Result<PlotLegend, QueryError>>
re_types_core::Archetype
. Read moresource§impl ToArchetype<Points2D> for LatestAtResults
impl ToArchetype<Points2D> for LatestAtResults
source§fn to_archetype(
&self,
resolver: &PromiseResolver
) -> PromiseResult<Result<Points2D, QueryError>>
fn to_archetype( &self, resolver: &PromiseResolver ) -> PromiseResult<Result<Points2D, QueryError>>
re_types_core::Archetype
. Read moresource§impl ToArchetype<Points3D> for LatestAtResults
impl ToArchetype<Points3D> for LatestAtResults
source§fn to_archetype(
&self,
resolver: &PromiseResolver
) -> PromiseResult<Result<Points3D, QueryError>>
fn to_archetype( &self, resolver: &PromiseResolver ) -> PromiseResult<Result<Points3D, QueryError>>
re_types_core::Archetype
. Read moresource§impl ToArchetype<Scalar> for LatestAtResults
impl ToArchetype<Scalar> for LatestAtResults
source§fn to_archetype(
&self,
resolver: &PromiseResolver
) -> PromiseResult<Result<Scalar, QueryError>>
fn to_archetype( &self, resolver: &PromiseResolver ) -> PromiseResult<Result<Scalar, QueryError>>
re_types_core::Archetype
. Read moresource§impl ToArchetype<ScalarAxis> for LatestAtResults
impl ToArchetype<ScalarAxis> for LatestAtResults
source§fn to_archetype(
&self,
resolver: &PromiseResolver
) -> PromiseResult<Result<ScalarAxis, QueryError>>
fn to_archetype( &self, resolver: &PromiseResolver ) -> PromiseResult<Result<ScalarAxis, QueryError>>
re_types_core::Archetype
. Read moresource§impl ToArchetype<SegmentationImage> for LatestAtResults
impl ToArchetype<SegmentationImage> for LatestAtResults
source§fn to_archetype(
&self,
resolver: &PromiseResolver
) -> PromiseResult<Result<SegmentationImage, QueryError>>
fn to_archetype( &self, resolver: &PromiseResolver ) -> PromiseResult<Result<SegmentationImage, QueryError>>
re_types_core::Archetype
. Read moresource§impl ToArchetype<SeriesLine> for LatestAtResults
impl ToArchetype<SeriesLine> for LatestAtResults
source§fn to_archetype(
&self,
resolver: &PromiseResolver
) -> PromiseResult<Result<SeriesLine, QueryError>>
fn to_archetype( &self, resolver: &PromiseResolver ) -> PromiseResult<Result<SeriesLine, QueryError>>
re_types_core::Archetype
. Read moresource§impl ToArchetype<SeriesPoint> for LatestAtResults
impl ToArchetype<SeriesPoint> for LatestAtResults
source§fn to_archetype(
&self,
resolver: &PromiseResolver
) -> PromiseResult<Result<SeriesPoint, QueryError>>
fn to_archetype( &self, resolver: &PromiseResolver ) -> PromiseResult<Result<SeriesPoint, QueryError>>
re_types_core::Archetype
. Read moresource§impl ToArchetype<SpaceViewBlueprint> for LatestAtResults
impl ToArchetype<SpaceViewBlueprint> for LatestAtResults
source§fn to_archetype(
&self,
resolver: &PromiseResolver
) -> PromiseResult<Result<SpaceViewBlueprint, QueryError>>
fn to_archetype( &self, resolver: &PromiseResolver ) -> PromiseResult<Result<SpaceViewBlueprint, QueryError>>
re_types_core::Archetype
. Read moresource§impl ToArchetype<SpaceViewContents> for LatestAtResults
impl ToArchetype<SpaceViewContents> for LatestAtResults
source§fn to_archetype(
&self,
resolver: &PromiseResolver
) -> PromiseResult<Result<SpaceViewContents, QueryError>>
fn to_archetype( &self, resolver: &PromiseResolver ) -> PromiseResult<Result<SpaceViewContents, QueryError>>
re_types_core::Archetype
. Read moresource§impl ToArchetype<Tensor> for LatestAtResults
impl ToArchetype<Tensor> for LatestAtResults
source§fn to_archetype(
&self,
resolver: &PromiseResolver
) -> PromiseResult<Result<Tensor, QueryError>>
fn to_archetype( &self, resolver: &PromiseResolver ) -> PromiseResult<Result<Tensor, QueryError>>
re_types_core::Archetype
. Read moresource§impl ToArchetype<TextDocument> for LatestAtResults
impl ToArchetype<TextDocument> for LatestAtResults
source§fn to_archetype(
&self,
resolver: &PromiseResolver
) -> PromiseResult<Result<TextDocument, QueryError>>
fn to_archetype( &self, resolver: &PromiseResolver ) -> PromiseResult<Result<TextDocument, QueryError>>
re_types_core::Archetype
. Read moresource§impl ToArchetype<TextLog> for LatestAtResults
impl ToArchetype<TextLog> for LatestAtResults
source§fn to_archetype(
&self,
resolver: &PromiseResolver
) -> PromiseResult<Result<TextLog, QueryError>>
fn to_archetype( &self, resolver: &PromiseResolver ) -> PromiseResult<Result<TextLog, QueryError>>
re_types_core::Archetype
. Read moresource§impl ToArchetype<Transform3D> for LatestAtResults
impl ToArchetype<Transform3D> for LatestAtResults
source§fn to_archetype(
&self,
resolver: &PromiseResolver
) -> PromiseResult<Result<Transform3D, QueryError>>
fn to_archetype( &self, resolver: &PromiseResolver ) -> PromiseResult<Result<Transform3D, QueryError>>
re_types_core::Archetype
. Read moresource§impl ToArchetype<ViewCoordinates> for LatestAtResults
impl ToArchetype<ViewCoordinates> for LatestAtResults
source§fn to_archetype(
&self,
resolver: &PromiseResolver
) -> PromiseResult<Result<ViewCoordinates, QueryError>>
fn to_archetype( &self, resolver: &PromiseResolver ) -> PromiseResult<Result<ViewCoordinates, QueryError>>
re_types_core::Archetype
. Read moresource§impl ToArchetype<ViewportBlueprint> for LatestAtResults
impl ToArchetype<ViewportBlueprint> for LatestAtResults
source§fn to_archetype(
&self,
resolver: &PromiseResolver
) -> PromiseResult<Result<ViewportBlueprint, QueryError>>
fn to_archetype( &self, resolver: &PromiseResolver ) -> PromiseResult<Result<ViewportBlueprint, QueryError>>
re_types_core::Archetype
. Read moresource§impl ToArchetype<VisibleTimeRanges> for LatestAtResults
impl ToArchetype<VisibleTimeRanges> for LatestAtResults
source§fn to_archetype(
&self,
resolver: &PromiseResolver
) -> PromiseResult<Result<VisibleTimeRanges, QueryError>>
fn to_archetype( &self, resolver: &PromiseResolver ) -> PromiseResult<Result<VisibleTimeRanges, QueryError>>
re_types_core::Archetype
. Read moresource§impl ToArchetype<VisualBounds2D> for LatestAtResults
impl ToArchetype<VisualBounds2D> for LatestAtResults
source§fn to_archetype(
&self,
resolver: &PromiseResolver
) -> PromiseResult<Result<VisualBounds2D, QueryError>>
fn to_archetype( &self, resolver: &PromiseResolver ) -> PromiseResult<Result<VisualBounds2D, QueryError>>
re_types_core::Archetype
. Read moreAuto Trait Implementations§
impl Freeze for LatestAtResults
impl !RefUnwindSafe for LatestAtResults
impl Send for LatestAtResults
impl Sync for LatestAtResults
impl Unpin for LatestAtResults
impl !UnwindSafe for LatestAtResults
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>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§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 more