pub struct Reference<T> {
pub name: Arc<NamedReference>,
pub uri: Arc<NamedReference>,
pub definition: Option<Arc<T>>,
}Expand description
Named/namespaced reference to a particular extension definition.
Fields
name: Arc<NamedReference>The name of the type, type variation, or function.
uri: Arc<NamedReference>The URI of the YAML file that defined this extension.
definition: Option<Arc<T>>Extension definition information, specific to this type of extension, if we managed to resolve the reference.
Trait Implementations
sourceimpl From<&'_ Reference<DataType>> for UserDefinedType
impl From<&'_ Reference<DataType>> for UserDefinedType
sourceimpl From<&'_ Reference<TypeVariation>> for Variation
impl From<&'_ Reference<TypeVariation>> for Variation
sourcefn from(node: &Reference<TypeVariation>) -> Self
fn from(node: &Reference<TypeVariation>) -> Self
Converts to this type from the input type.
sourceimpl<T> PartialEq<Reference<T>> for Reference<T>
impl<T> PartialEq<Reference<T>> for Reference<T>
impl<T> Eq for Reference<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for Reference<T> where
T: RefUnwindSafe,
impl<T> Send for Reference<T> where
T: Send + Sync,
impl<T> Sync for Reference<T> where
T: Send + Sync,
impl<T> Unpin for Reference<T>
impl<T> UnwindSafe for Reference<T> where
T: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more