Struct re_types::blueprint::archetypes::SpaceViewContents
source · pub struct SpaceViewContents {
pub query: Vec<QueryExpression>,
}Expand description
Archetype: The contents of a SpaceView.
The contents are found by combining a collection of QueryExpressions.
+ /world/** # add everything…
- /world/roads/** # …but remove all roads…
+ /world/roads/main # …but show main road
If there is multiple matching rules, the most specific rule wins. If there are multiple rules of the same specificity, the last one wins. If no rules match, the path is excluded.
Specifying a path without a + or - prefix is equivalent to +:
/world/** # add everything…
- /world/roads/** # …but remove all roads…
/world/roads/main # …but show main road
The /** suffix matches the whole subtree, i.e. self and any child, recursively
(/world/** matches both /world and /world/car/driver).
Other uses of * are not (yet) supported.
Internally, EntityPathFilter sorts the rule by entity path, with recursive coming before non-recursive.
This means the last matching rule is also the most specific one. For instance:
+ /world/**
- /world
- /world/car/**
+ /world/car/driver
The last rule matching /world/car/driver is + /world/car/driver, so it is included.
The last rule matching /world/car/hood is - /world/car/**, so it is excluded.
The last rule matching /world is - /world, so it is excluded.
The last rule matching /world/house is + /world/**, so it is included.
Fields§
§query: Vec<QueryExpression>The QueryExpression that populates the contents for the SpaceView.
They determine which entities are part of the spaceview.
Implementations§
source§impl SpaceViewContents
impl SpaceViewContents
sourcepub const NUM_COMPONENTS: usize = 2usize
pub const NUM_COMPONENTS: usize = 2usize
The total number of components in the archetype: 0 required, 1 recommended, 1 optional
source§impl SpaceViewContents
impl SpaceViewContents
sourcepub fn new(query: impl IntoIterator<Item = impl Into<QueryExpression>>) -> Self
pub fn new(query: impl IntoIterator<Item = impl Into<QueryExpression>>) -> Self
Create a new SpaceViewContents.
Trait Implementations§
source§impl Archetype for SpaceViewContents
impl Archetype for SpaceViewContents
§type Indicator = GenericIndicatorComponent<SpaceViewContents>
type Indicator = GenericIndicatorComponent<SpaceViewContents>
source§fn name() -> ArchetypeName
fn name() -> ArchetypeName
rerun.archetypes.Points2D.source§fn indicator() -> MaybeOwnedComponentBatch<'static>
fn indicator() -> MaybeOwnedComponentBatch<'static>
source§fn required_components() -> Cow<'static, [ComponentName]>
fn required_components() -> Cow<'static, [ComponentName]>
source§fn recommended_components() -> Cow<'static, [ComponentName]>
fn recommended_components() -> Cow<'static, [ComponentName]>
source§fn optional_components() -> Cow<'static, [ComponentName]>
fn optional_components() -> Cow<'static, [ComponentName]>
source§fn all_components() -> Cow<'static, [ComponentName]>
fn all_components() -> Cow<'static, [ComponentName]>
source§fn from_arrow_components(
arrow_data: impl IntoIterator<Item = (ComponentName, Box<dyn Array>)>
) -> DeserializationResult<Self>
fn from_arrow_components( arrow_data: impl IntoIterator<Item = (ComponentName, Box<dyn Array>)> ) -> DeserializationResult<Self>
ComponentNames, deserializes them
into this archetype. Read moresource§fn from_arrow(
data: impl IntoIterator<Item = (Field, Box<dyn Array>)>
) -> Result<Self, DeserializationError>where
Self: Sized,
fn from_arrow(
data: impl IntoIterator<Item = (Field, Box<dyn Array>)>
) -> Result<Self, DeserializationError>where
Self: Sized,
source§impl AsComponents for SpaceViewContents
impl AsComponents for SpaceViewContents
source§fn as_component_batches(&self) -> Vec<MaybeOwnedComponentBatch<'_>>
fn as_component_batches(&self) -> Vec<MaybeOwnedComponentBatch<'_>>
ComponentBatchs. Read moresource§impl Clone for SpaceViewContents
impl Clone for SpaceViewContents
source§fn clone(&self) -> SpaceViewContents
fn clone(&self) -> SpaceViewContents
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for SpaceViewContents
impl Debug for SpaceViewContents
source§impl Default for SpaceViewContents
impl Default for SpaceViewContents
source§fn default() -> SpaceViewContents
fn default() -> SpaceViewContents
source§impl SizeBytes for SpaceViewContents
impl SizeBytes for SpaceViewContents
source§fn heap_size_bytes(&self) -> u64
fn heap_size_bytes(&self) -> u64
self on the heap, in bytes.source§fn total_size_bytes(&self) -> u64
fn total_size_bytes(&self) -> u64
self in bytes, accounting for both stack and heap space.source§fn stack_size_bytes(&self) -> u64
fn stack_size_bytes(&self) -> u64
self on the stack, in bytes. Read moreAuto Trait Implementations§
impl Freeze for SpaceViewContents
impl RefUnwindSafe for SpaceViewContents
impl Send for SpaceViewContents
impl Sync for SpaceViewContents
impl Unpin for SpaceViewContents
impl UnwindSafe for SpaceViewContents
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> 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