pub enum DataSelector {
Role(DataRole),
Named(String),
Reference(DataRoleRef),
}Expand description
Select a fixed role, an explicitly named input, or an actual bound reference.
Variants§
Role(DataRole)
A fixed native role.
Named(String)
An explicitly declared open input name.
Reference(DataRoleRef)
The actual declaration and binding identity.
Trait Implementations§
Source§impl Clone for DataSelector
impl Clone for DataSelector
Source§fn clone(&self) -> DataSelector
fn clone(&self) -> DataSelector
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DataSelector
impl Debug for DataSelector
Source§impl From<&DataRoleRef> for DataSelector
impl From<&DataRoleRef> for DataSelector
Source§fn from(reference: &DataRoleRef) -> DataSelector
fn from(reference: &DataRoleRef) -> DataSelector
Converts to this type from the input type.
Source§impl From<&str> for DataSelector
impl From<&str> for DataSelector
Source§fn from(name: &str) -> DataSelector
fn from(name: &str) -> DataSelector
Converts to this type from the input type.
Source§impl From<DataRole> for DataSelector
impl From<DataRole> for DataSelector
Source§fn from(role: DataRole) -> DataSelector
fn from(role: DataRole) -> DataSelector
Converts to this type from the input type.
Source§impl From<DataRoleRef> for DataSelector
impl From<DataRoleRef> for DataSelector
Source§fn from(reference: DataRoleRef) -> DataSelector
fn from(reference: DataRoleRef) -> DataSelector
Converts to this type from the input type.
Source§impl From<String> for DataSelector
impl From<String> for DataSelector
Source§fn from(name: String) -> DataSelector
fn from(name: String) -> DataSelector
Converts to this type from the input type.
Auto Trait Implementations§
impl Forget for DataSelector
impl Freeze for DataSelectorwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const ArcInner<()> is !null: Freeze,
PhantomData<ArcInner<()>>: Freeze,
PhantomData<PanelStep>: Freeze,
*const ArcInner<[RawKey]> is !null: Freeze,
PhantomData<ArcInner<[RawKey]>>: Freeze,
impl Move for DataSelector
impl RefUnwindSafe for DataSelector
impl Send for DataSelector
impl Sync for DataSelector
impl Unpin for DataSelector
impl UnsafeUnpin for DataSelectorwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ArcInner<()> is !null: UnsafeUnpin,
PhantomData<ArcInner<()>>: UnsafeUnpin,
PhantomData<PanelStep>: UnsafeUnpin,
*const ArcInner<[RawKey]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[RawKey]>>: UnsafeUnpin,
impl UnwindSafe for DataSelectorwhere
RawVecInner: UnwindSafe,
Arc<()>: UnwindSafe,
Arc<[u8]>: UnwindSafe,
BoxRaw<RawKey>: UnwindSafe,
Arc<str>: UnwindSafe,
Arc<[RawKey]>: UnwindSafe,
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.