Struct re_types::blueprint::archetypes::ScalarAxis
source · pub struct ScalarAxis {
pub range: Option<Range1D>,
pub lock_range_during_zoom: Option<LockRangeDuringZoom>,
}
Expand description
Archetype: Configuration for the scalar axis of a plot.
Fields§
§range: Option<Range1D>
The range of the axis.
If unset, the range well be automatically determined based on the queried data.
lock_range_during_zoom: Option<LockRangeDuringZoom>
Whether to lock the range of the axis during zoom.
Implementations§
source§impl ScalarAxis
impl ScalarAxis
sourcepub const NUM_COMPONENTS: usize = 3usize
pub const NUM_COMPONENTS: usize = 3usize
The total number of components in the archetype: 0 required, 1 recommended, 2 optional
source§impl ScalarAxis
impl ScalarAxis
sourcepub fn with_range(self, range: impl Into<Range1D>) -> Self
pub fn with_range(self, range: impl Into<Range1D>) -> Self
The range of the axis.
If unset, the range well be automatically determined based on the queried data.
sourcepub fn with_lock_range_during_zoom(
self,
lock_range_during_zoom: impl Into<LockRangeDuringZoom>
) -> Self
pub fn with_lock_range_during_zoom( self, lock_range_during_zoom: impl Into<LockRangeDuringZoom> ) -> Self
Whether to lock the range of the axis during zoom.
Trait Implementations§
source§impl Archetype for ScalarAxis
impl Archetype for ScalarAxis
§type Indicator = GenericIndicatorComponent<ScalarAxis>
type Indicator = GenericIndicatorComponent<ScalarAxis>
The associated indicator component, whose presence indicates that the high-level
archetype-based APIs were used to log the data. Read more
source§fn name() -> ArchetypeName
fn name() -> ArchetypeName
The fully-qualified name of this archetype, e.g.
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]>
Returns the names of all components that must be provided by the user when constructing
this archetype.
source§fn recommended_components() -> Cow<'static, [ComponentName]>
fn recommended_components() -> Cow<'static, [ComponentName]>
Returns the names of all components that should be provided by the user when constructing
this archetype.
source§fn optional_components() -> Cow<'static, [ComponentName]>
fn optional_components() -> Cow<'static, [ComponentName]>
Returns the names of all components that may be provided by the user when constructing
this archetype.
source§fn all_components() -> Cow<'static, [ComponentName]>
fn all_components() -> Cow<'static, [ComponentName]>
Returns the names of all components that must, should and may be provided by the user when
constructing this archetype. Read more
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>
Given an iterator of Arrow arrays and their respective
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,
Given an iterator of Arrow arrays and their respective field metadata, deserializes them
into this archetype. Read more
source§impl AsComponents for ScalarAxis
impl AsComponents for ScalarAxis
source§fn as_component_batches(&self) -> Vec<MaybeOwnedComponentBatch<'_>>
fn as_component_batches(&self) -> Vec<MaybeOwnedComponentBatch<'_>>
Exposes the object’s contents as a set of
ComponentBatch
s. Read moresource§impl Clone for ScalarAxis
impl Clone for ScalarAxis
source§fn clone(&self) -> ScalarAxis
fn clone(&self) -> ScalarAxis
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ScalarAxis
impl Debug for ScalarAxis
source§impl Default for ScalarAxis
impl Default for ScalarAxis
source§fn default() -> ScalarAxis
fn default() -> ScalarAxis
Returns the “default value” for a type. Read more
source§impl SizeBytes for ScalarAxis
impl SizeBytes for ScalarAxis
source§fn heap_size_bytes(&self) -> u64
fn heap_size_bytes(&self) -> u64
Returns the total size of
self
on the heap, in bytes.source§fn total_size_bytes(&self) -> u64
fn total_size_bytes(&self) -> u64
Returns the total size of
self
in bytes, accounting for both stack and heap space.source§fn stack_size_bytes(&self) -> u64
fn stack_size_bytes(&self) -> u64
Returns the total size of
self
on the stack, in bytes. Read moreAuto Trait Implementations§
impl Freeze for ScalarAxis
impl RefUnwindSafe for ScalarAxis
impl Send for ScalarAxis
impl Sync for ScalarAxis
impl Unpin for ScalarAxis
impl UnwindSafe for ScalarAxis
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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