pub struct ComponentReflection {
pub docstring_md: &'static str,
pub custom_placeholder: Option<ArrayRef>,
pub datatype: DataType,
}Expand description
Information about a Rerun component, generated by codegen.
Fields§
§docstring_md: &'static strMarkdown docstring for the component.
custom_placeholder: Option<ArrayRef>Custom placeholder value, used when not fallback was provided.
This is usually the default value of the component (if any), serialized.
Placeholders are useful as a base fallback value when displaying UI,
especially when it’s necessary to have a starting value for edit ui.
Typically, this is only used when FallbackProviders are not available.
If there’s no custom placeholder, a placeholder can be derived from the arrow datatype.
datatype: DataTypeDatatype of the component.
Trait Implementations§
Source§impl Clone for ComponentReflection
impl Clone for ComponentReflection
Source§fn clone(&self) -> ComponentReflection
fn clone(&self) -> ComponentReflection
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 moreAuto Trait Implementations§
impl Freeze for ComponentReflection
impl !RefUnwindSafe for ComponentReflection
impl Send for ComponentReflection
impl Sync for ComponentReflection
impl Unpin for ComponentReflection
impl !UnwindSafe for ComponentReflection
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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