pub struct InfoRef<'a, S> {
pub unique_id: &'a str,
pub title: &'a str,
pub short_title: &'a str,
pub flags: Flags,
pub type_specific: TypeSpecificInfoRef<'a, S>,
}
Expand description
Information about a parameter.
This is a non-owning reference type.
If you are referencing static data, use StaticInfoRef
below for simplicity.
This references data with lifetime 'a
.
Here the S
represents the type of strings, this generally will be
either &'a str
or String
.
Fields§
§unique_id: &'a str
The unique ID of the parameter.
As the name implies, each parameter’s id must be unique within the comonent’s parameters.
Note that this ID will not be presented to the user, it is only used to refer to the parameter in code.
The ID must not begin with the prefix _conformal_internal
, as
this is reserved for use by the Conformal library itself.
title: &'a str
Human-readable title of the parameter.
short_title: &'a str
A short title of the parameter.
In some hosting applications, this may appear as an
abbreviated version of the title. If the title is already
short, it’s okay to use the same value for title
and short_title
.
flags: Flags
Metadata about the parameter
type_specific: TypeSpecificInfoRef<'a, S>
Information specific to the type of parameter.
Trait Implementations§
impl<'a, S> StructuralPartialEq for InfoRef<'a, S>
Auto Trait Implementations§
impl<'a, S> Freeze for InfoRef<'a, S>
impl<'a, S> RefUnwindSafe for InfoRef<'a, S>where
S: RefUnwindSafe,
impl<'a, S> Send for InfoRef<'a, S>where
S: Sync,
impl<'a, S> Sync for InfoRef<'a, S>where
S: Sync,
impl<'a, S> Unpin for InfoRef<'a, S>
impl<'a, S> UnwindSafe for InfoRef<'a, S>where
S: RefUnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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