Enum rerun::TransformRelation
source · #[repr(u8)]pub enum TransformRelation {
ParentFromChild = 1,
ChildFromParent = 2,
}
Expand description
Component: Specifies relation a spatial transform describes.
Variants§
ParentFromChild = 1
The transform describes how to transform into the parent entity’s space.
E.g. a translation of (0, 1, 0) with this components::TransformRelation
logged at parent/child
means
that from the point of view of parent
, parent/child
is translated 1 unit along parent
’s Y axis.
From perspective of parent/child
, the parent
entity is translated -1 unit along parent/child
’s Y axis.
ChildFromParent = 2
The transform describes how to transform into the child entity’s space.
E.g. a translation of (0, 1, 0) with this components::TransformRelation
logged at parent/child
means
that from the point of view of parent
, parent/child
is translated -1 unit along parent
’s Y axis.
From perspective of parent/child
, the parent
entity is translated 1 unit along parent/child
’s Y axis.
Trait Implementations§
source§impl Clone for TransformRelation
impl Clone for TransformRelation
source§fn clone(&self) -> TransformRelation
fn clone(&self) -> TransformRelation
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TransformRelation
impl Debug for TransformRelation
source§impl Default for TransformRelation
impl Default for TransformRelation
source§fn default() -> TransformRelation
fn default() -> TransformRelation
source§impl Display for TransformRelation
impl Display for TransformRelation
source§impl Enum for TransformRelation
impl Enum for TransformRelation
source§fn variants() -> &'static [TransformRelation]
fn variants() -> &'static [TransformRelation]
source§fn docstring_md(self) -> &'static str
fn docstring_md(self) -> &'static str
source§impl Hash for TransformRelation
impl Hash for TransformRelation
source§impl Loggable for TransformRelation
impl Loggable for TransformRelation
type Name = ComponentName
source§fn name() -> <TransformRelation as Loggable>::Name
fn name() -> <TransformRelation as Loggable>::Name
rerun.datatypes.Vec2D
.source§fn arrow_datatype() -> DataType
fn arrow_datatype() -> DataType
arrow2::datatypes::DataType
, excluding datatype extensions.source§fn to_arrow_opt<'a>(
data: impl IntoIterator<Item = Option<impl Into<Cow<'a, TransformRelation>>>>
) -> Result<Box<dyn Array>, SerializationError>where
TransformRelation: Clone + 'a,
fn to_arrow_opt<'a>(
data: impl IntoIterator<Item = Option<impl Into<Cow<'a, TransformRelation>>>>
) -> Result<Box<dyn Array>, SerializationError>where
TransformRelation: Clone + 'a,
source§fn from_arrow_opt(
arrow_data: &(dyn Array + 'static)
) -> Result<Vec<Option<TransformRelation>>, DeserializationError>where
TransformRelation: Sized,
fn from_arrow_opt(
arrow_data: &(dyn Array + 'static)
) -> Result<Vec<Option<TransformRelation>>, DeserializationError>where
TransformRelation: Sized,
Loggable
s.source§fn to_arrow<'a>(
data: impl IntoIterator<Item = impl Into<Cow<'a, Self>>>
) -> Result<Box<dyn Array>, SerializationError>where
Self: 'a,
fn to_arrow<'a>(
data: impl IntoIterator<Item = impl Into<Cow<'a, Self>>>
) -> Result<Box<dyn Array>, SerializationError>where
Self: 'a,
source§fn from_arrow(
data: &(dyn Array + 'static)
) -> Result<Vec<Self>, DeserializationError>
fn from_arrow( data: &(dyn Array + 'static) ) -> Result<Vec<Self>, DeserializationError>
Loggable
s.source§impl PartialEq for TransformRelation
impl PartialEq for TransformRelation
source§fn eq(&self, other: &TransformRelation) -> bool
fn eq(&self, other: &TransformRelation) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl SizeBytes for TransformRelation
impl SizeBytes for TransformRelation
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 moreimpl Copy for TransformRelation
impl Eq for TransformRelation
impl StructuralPartialEq for TransformRelation
Auto Trait Implementations§
impl Freeze for TransformRelation
impl RefUnwindSafe for TransformRelation
impl Send for TransformRelation
impl Sync for TransformRelation
impl Unpin for TransformRelation
impl UnwindSafe for TransformRelation
Blanket Implementations§
source§impl<C> AsComponents for Cwhere
C: Component,
impl<C> AsComponents for Cwhere
C: Component,
source§fn as_component_batches(&self) -> Vec<MaybeOwnedComponentBatch<'_>>
fn as_component_batches(&self) -> Vec<MaybeOwnedComponentBatch<'_>>
ComponentBatch
s. Read moresource§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<C> ComponentBatch for Cwhere
C: Component,
impl<C> ComponentBatch for Cwhere
C: Component,
source§fn to_arrow_list_array(&self) -> Result<ListArray<i32>, SerializationError>
fn to_arrow_list_array(&self) -> Result<ListArray<i32>, SerializationError>
§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
§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.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.§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