pub enum AnyRef<'a> {
Named(&'a Name),
Parent,
Framework,
Debug,
Self_,
Void,
Dictionary(&'a DictionaryRef),
OwnDictionary(&'a Name),
}
Expand description
A relative reference to another object. This is a generic type that can encode any supported reference subtype. For named references, it holds a reference to the name instead of the name itself.
Objects of this type are usually derived from conversions of context-specific reference
types that #[derive(Reference)]
. This type makes it easy to write helper functions that operate on
generic references.
Variants§
Named(&'a Name)
A named reference. Parsed as #name
.
Parent
A reference to the parent. Parsed as parent
.
Framework
A reference to the framework (component manager). Parsed as framework
.
Debug
A reference to the debug. Parsed as debug
.
Self_
A reference to this component. Parsed as self
.
Void
An intentionally omitted reference.
Dictionary(&'a DictionaryRef)
A reference to a dictionary. Parsed as a dictionary path.
OwnDictionary(&'a Name)
A reference to a dictionary defined by this component. Parsed as
self/<dictionary>
.
Trait Implementations§
Source§impl<'a> From<&'a CapabilityFromRef> for AnyRef<'a>
impl<'a> From<&'a CapabilityFromRef> for AnyRef<'a>
Source§fn from(r: &'a CapabilityFromRef) -> Self
fn from(r: &'a CapabilityFromRef) -> Self
Source§impl<'a> From<&'a DictionaryRef> for AnyRef<'a>
impl<'a> From<&'a DictionaryRef> for AnyRef<'a>
Source§fn from(r: &'a DictionaryRef) -> Self
fn from(r: &'a DictionaryRef) -> Self
Source§impl<'a> From<&'a EnvironmentRef> for AnyRef<'a>
impl<'a> From<&'a EnvironmentRef> for AnyRef<'a>
Source§fn from(r: &'a EnvironmentRef) -> Self
fn from(r: &'a EnvironmentRef) -> Self
Source§impl<'a> From<&'a EventScope> for AnyRef<'a>
impl<'a> From<&'a EventScope> for AnyRef<'a>
Source§fn from(r: &'a EventScope) -> Self
fn from(r: &'a EventScope) -> Self
Source§impl<'a> From<&'a ExposeFromRef> for AnyRef<'a>
impl<'a> From<&'a ExposeFromRef> for AnyRef<'a>
Source§fn from(r: &'a ExposeFromRef) -> Self
fn from(r: &'a ExposeFromRef) -> Self
Source§impl<'a> From<&'a ExposeToRef> for AnyRef<'a>
impl<'a> From<&'a ExposeToRef> for AnyRef<'a>
Source§fn from(r: &'a ExposeToRef) -> Self
fn from(r: &'a ExposeToRef) -> Self
Source§impl<'a> From<&'a OfferFromRef> for AnyRef<'a>
impl<'a> From<&'a OfferFromRef> for AnyRef<'a>
Source§fn from(r: &'a OfferFromRef) -> Self
fn from(r: &'a OfferFromRef) -> Self
Source§impl<'a> From<&'a OfferToRef> for AnyRef<'a>
impl<'a> From<&'a OfferToRef> for AnyRef<'a>
Source§fn from(r: &'a OfferToRef) -> Self
fn from(r: &'a OfferToRef) -> Self
Source§impl<'a> From<&'a RegistrationRef> for AnyRef<'a>
impl<'a> From<&'a RegistrationRef> for AnyRef<'a>
Source§fn from(r: &'a RegistrationRef) -> Self
fn from(r: &'a RegistrationRef) -> Self
Source§impl<'a> From<&'a RootDictionaryRef> for AnyRef<'a>
impl<'a> From<&'a RootDictionaryRef> for AnyRef<'a>
Source§fn from(r: &'a RootDictionaryRef) -> Self
fn from(r: &'a RootDictionaryRef) -> Self
Source§impl<'a> From<&'a UseFromRef> for AnyRef<'a>
impl<'a> From<&'a UseFromRef> for AnyRef<'a>
Source§fn from(r: &'a UseFromRef) -> Self
fn from(r: &'a UseFromRef) -> Self
impl<'a> Eq for AnyRef<'a>
impl<'a> StructuralPartialEq for AnyRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for AnyRef<'a>
impl<'a> RefUnwindSafe for AnyRef<'a>
impl<'a> Send for AnyRef<'a>
impl<'a> Sync for AnyRef<'a>
impl<'a> Unpin for AnyRef<'a>
impl<'a> UnwindSafe for AnyRef<'a>
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
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.