pub struct ComponentDescriptor {
pub archetype: Option<ArchetypeName>,
pub component: ComponentIdentifier,
pub component_type: Option<ComponentType>,
}Expand description
A ComponentDescriptor fully describes the semantics of a column of data.
Every component at a given entity path is uniquely identified by the
component field of the descriptor. The archetype and component_type
fields provide additional information about the semantics of the data.
Fields§
§archetype: Option<ArchetypeName>Optional name of the Archetype associated with this data.
None if the data wasn’t logged through an archetype.
Example: rerun.archetypes.Points3D.
component: ComponentIdentifierUniquely identifies of the component associated with this data.
Example: Points3D:positions.
component_type: Option<ComponentType>Optional type information for this component.
Can be used to inform applications on how to interpret the data.
Example: rerun.components.Position3D.
Implementations§
Source§impl ComponentDescriptor
impl ComponentDescriptor
pub fn sanity_check(&self)
Sourcepub fn display_name(&self) -> &str
pub fn display_name(&self) -> &str
Short and usually unique, used in UI.
Source§impl ComponentDescriptor
impl ComponentDescriptor
Sourcepub fn partial(component: impl Into<ComponentIdentifier>) -> ComponentDescriptor
pub fn partial(component: impl Into<ComponentIdentifier>) -> ComponentDescriptor
Creates a new component descriptor that only has the component set.
Both archetype and component_type will be missing.
Sourcepub fn with_archetype(
self,
archetype_name: ArchetypeName,
) -> ComponentDescriptor
pub fn with_archetype( self, archetype_name: ArchetypeName, ) -> ComponentDescriptor
Unconditionally sets Self::archetype to the given one.
Sourcepub fn with_component_type(
self,
component_type: ComponentType,
) -> ComponentDescriptor
pub fn with_component_type( self, component_type: ComponentType, ) -> ComponentDescriptor
Unconditionally sets Self::component to the given one.
Sourcepub fn or_with_archetype(
self,
archetype_name: impl Fn() -> ArchetypeName,
) -> ComponentDescriptor
pub fn or_with_archetype( self, archetype_name: impl Fn() -> ArchetypeName, ) -> ComponentDescriptor
Sets Self::archetype to the given one iff it’s not already set.
Sourcepub fn or_with_component_type(
self,
component_type: impl FnOnce() -> ComponentType,
) -> ComponentDescriptor
pub fn or_with_component_type( self, component_type: impl FnOnce() -> ComponentType, ) -> ComponentDescriptor
Sets Self::component_type to the given one iff it’s not already set.
Trait Implementations§
Source§impl Clone for ComponentDescriptor
impl Clone for ComponentDescriptor
Source§fn clone(&self) -> ComponentDescriptor
fn clone(&self) -> ComponentDescriptor
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl ComponentDescriptorExt for ComponentDescriptor
impl ComponentDescriptorExt for ComponentDescriptor
Source§fn archetype_field_name(&self) -> &str
fn archetype_field_name(&self) -> &str
Source§fn with_builtin_archetype(
self,
archetype: impl Into<ArchetypeName>,
) -> ComponentDescriptor
fn with_builtin_archetype( self, archetype: impl Into<ArchetypeName>, ) -> ComponentDescriptor
ComponentDescriptor::archetype to the given one. Read moreSource§fn or_with_builtin_archetype(
self,
archetype: impl Fn() -> ArchetypeName,
) -> ComponentDescriptor
fn or_with_builtin_archetype( self, archetype: impl Fn() -> ArchetypeName, ) -> ComponentDescriptor
ComponentDescriptor::archetype to the given one iff it’s not already set. Read moreSource§impl Debug for ComponentDescriptor
impl Debug for ComponentDescriptor
Source§impl<'de> Deserialize<'de> for ComponentDescriptor
impl<'de> Deserialize<'de> for ComponentDescriptor
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ComponentDescriptor, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ComponentDescriptor, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Display for ComponentDescriptor
impl Display for ComponentDescriptor
Source§impl From<&ComponentColumnDescriptor> for ComponentDescriptor
impl From<&ComponentColumnDescriptor> for ComponentDescriptor
Source§fn from(descr: &ComponentColumnDescriptor) -> ComponentDescriptor
fn from(descr: &ComponentColumnDescriptor) -> ComponentDescriptor
Source§impl<'d> From<&'d ComponentDescriptor> for Cow<'d, ComponentDescriptor>
impl<'d> From<&'d ComponentDescriptor> for Cow<'d, ComponentDescriptor>
Source§fn from(descr: &'d ComponentDescriptor) -> Cow<'d, ComponentDescriptor>
fn from(descr: &'d ComponentDescriptor) -> Cow<'d, ComponentDescriptor>
Source§impl From<ComponentColumnDescriptor> for ComponentDescriptor
impl From<ComponentColumnDescriptor> for ComponentDescriptor
Source§fn from(descr: ComponentColumnDescriptor) -> ComponentDescriptor
fn from(descr: ComponentColumnDescriptor) -> ComponentDescriptor
Source§impl From<ComponentDescriptor> for ComponentDescriptor
impl From<ComponentDescriptor> for ComponentDescriptor
Source§fn from(value: ComponentDescriptor) -> ComponentDescriptor
fn from(value: ComponentDescriptor) -> ComponentDescriptor
Source§impl From<ComponentDescriptor> for Cow<'static, ComponentDescriptor>
impl From<ComponentDescriptor> for Cow<'static, ComponentDescriptor>
Source§fn from(descr: ComponentDescriptor) -> Cow<'static, ComponentDescriptor>
fn from(descr: ComponentDescriptor) -> Cow<'static, ComponentDescriptor>
Source§impl From<Field> for ComponentDescriptor
impl From<Field> for ComponentDescriptor
Source§fn from(field: Field) -> ComponentDescriptor
fn from(field: Field) -> ComponentDescriptor
Source§impl Hash for ComponentDescriptor
impl Hash for ComponentDescriptor
Source§impl Ord for ComponentDescriptor
impl Ord for ComponentDescriptor
Source§fn cmp(&self, other: &ComponentDescriptor) -> Ordering
fn cmp(&self, other: &ComponentDescriptor) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for ComponentDescriptor
impl PartialEq for ComponentDescriptor
Source§impl PartialOrd for ComponentDescriptor
impl PartialOrd for ComponentDescriptor
Source§impl Serialize for ComponentDescriptor
impl Serialize for ComponentDescriptor
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Source§impl SizeBytes for ComponentDescriptor
impl SizeBytes for ComponentDescriptor
Source§fn heap_size_bytes(&self) -> u64
fn heap_size_bytes(&self) -> u64
self uses on the heap. Read moreSource§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 moreSource§impl SyntaxHighlighting for ComponentDescriptor
impl SyntaxHighlighting for ComponentDescriptor
fn syntax_highlight_into(&self, builder: &mut SyntaxHighlightedBuilder)
fn syntax_highlighted(&self, style: &Style) -> LayoutJob
Source§impl TryFrom<ComponentDescriptor> for ComponentDescriptor
impl TryFrom<ComponentDescriptor> for ComponentDescriptor
Source§type Error = TypeConversionError
type Error = TypeConversionError
Source§fn try_from(
value: ComponentDescriptor,
) -> Result<ComponentDescriptor, <ComponentDescriptor as TryFrom<ComponentDescriptor>>::Error>
fn try_from( value: ComponentDescriptor, ) -> Result<ComponentDescriptor, <ComponentDescriptor as TryFrom<ComponentDescriptor>>::Error>
impl Eq for ComponentDescriptor
impl IsEnabled for ComponentDescriptor
impl StructuralPartialEq for ComponentDescriptor
Auto Trait Implementations§
impl Freeze for ComponentDescriptor
impl RefUnwindSafe for ComponentDescriptor
impl Send for ComponentDescriptor
impl Sync for ComponentDescriptor
impl Unpin for ComponentDescriptor
impl UnwindSafe for ComponentDescriptor
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,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<T> CustomError for T
impl<T> CustomError for T
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§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.Source§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.Source§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.Source§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.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> DragDropItem for Twhere
T: Hash,
impl<T> DragDropItem for Twhere
T: Hash,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
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 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::RequestSource§impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
Source§fn lossless_try_into(self) -> Option<Dst>
fn lossless_try_into(self) -> Option<Dst>
Source§impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
Source§fn lossy_into(self) -> Dst
fn lossy_into(self) -> Dst
Source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
Source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
Source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Source§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
Source§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Source§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read moreSource§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read moreSource§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
Source§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
Source§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self, then passes self.as_ref() into the pipe function.Source§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self, then passes self.as_mut() into the pipe
function.Source§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self, then passes self.deref() into the pipe function.Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
Source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
Source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Source§impl<T> Tap for T
impl<T> Tap for T
Source§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B> of a value. Read moreSource§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B> of a value. Read moreSource§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R> view of a value. Read moreSource§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R> view of a value. Read moreSource§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target of a value. Read moreSource§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target of a value. Read moreSource§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap() only in debug builds, and is erased in release builds.Source§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut() only in debug builds, and is erased in release
builds.Source§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref() only in debug builds, and is erased in release
builds.Source§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut() only in debug builds, and is erased in release
builds.Source§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref() only in debug builds, and is erased in release
builds.Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.