pub struct ComponentColumnSelector {
pub entity_path: EntityPath,
pub component_name: String,
}
Expand description
Select a component based on its EntityPath
and ComponentName
.
Note, that in the future when Rerun supports duplicate tagged components on the same entity, this selector may be ambiguous. In this case, the query result will return an Error if it cannot determine a single selected component.
Fields§
§entity_path: EntityPath
The path of the entity.
component_name: String
Semantic name associated with this data.
This string will be flexibly matched against the available component names. Valid matches are case invariant matches of either the full name or the short name.
Implementations§
Source§impl ComponentColumnSelector
impl ComponentColumnSelector
Sourcepub fn new<C: Component>(entity_path: EntityPath) -> Self
pub fn new<C: Component>(entity_path: EntityPath) -> Self
Select a component of a given type, based on its [EntityPath
]
Sourcepub fn new_for_component_name(
entity_path: EntityPath,
component_name: ComponentName,
) -> Self
pub fn new_for_component_name( entity_path: EntityPath, component_name: ComponentName, ) -> Self
Select a component based on its [EntityPath
] and [ComponentName
].
Trait Implementations§
Source§impl Clone for ComponentColumnSelector
impl Clone for ComponentColumnSelector
Source§fn clone(&self) -> ComponentColumnSelector
fn clone(&self) -> ComponentColumnSelector
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ComponentColumnSelector
impl Debug for ComponentColumnSelector
Source§impl Display for ComponentColumnSelector
impl Display for ComponentColumnSelector
Source§impl From<ComponentColumnDescriptor> for ComponentColumnSelector
impl From<ComponentColumnDescriptor> for ComponentColumnSelector
Source§fn from(desc: ComponentColumnDescriptor) -> Self
fn from(desc: ComponentColumnDescriptor) -> Self
Source§impl From<ComponentColumnSelector> for ColumnSelector
impl From<ComponentColumnSelector> for ColumnSelector
Source§fn from(desc: ComponentColumnSelector) -> Self
fn from(desc: ComponentColumnSelector) -> Self
Source§impl From<ComponentPath> for ComponentColumnSelector
impl From<ComponentPath> for ComponentColumnSelector
Source§impl FromStr for ComponentColumnSelector
impl FromStr for ComponentColumnSelector
Source§fn from_str(selector: &str) -> Result<Self, Self::Err>
fn from_str(selector: &str) -> Result<Self, Self::Err>
Parses a string in the form of entity_path:component_name
.
Note that no attempt is made to interpret component_name
. In particular, we don’t attempt
to prepend a rerun.components.
prefix like ComponentPath::from_str
does.
Source§type Err = ColumnSelectorParseError
type Err = ColumnSelectorParseError
Source§impl Hash for ComponentColumnSelector
impl Hash for ComponentColumnSelector
Source§impl PartialEq for ComponentColumnSelector
impl PartialEq for ComponentColumnSelector
impl Eq for ComponentColumnSelector
impl StructuralPartialEq for ComponentColumnSelector
Auto Trait Implementations§
impl Freeze for ComponentColumnSelector
impl RefUnwindSafe for ComponentColumnSelector
impl Send for ComponentColumnSelector
impl Sync for ComponentColumnSelector
impl Unpin for ComponentColumnSelector
impl UnwindSafe for ComponentColumnSelector
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§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 more