Enum dae_parser::DefInstance [−][src]
pub enum DefInstance<T: Instantiate> {
Def(T),
Ref(Instance<T>),
}
Expand description
Either an instance of a T
, or a directly inlined T
object.
Variants
Def(T)
A definition of a T
.
Ref(Instance<T>)
Tuple Fields
0: Instance<T>
An instantiation of a T
.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for DefInstance<T> where
T: RefUnwindSafe,
<T as Instantiate>::Data: RefUnwindSafe,
impl<T> Send for DefInstance<T> where
T: Send,
<T as Instantiate>::Data: Send,
impl<T> Sync for DefInstance<T> where
T: Sync,
<T as Instantiate>::Data: Sync,
impl<T> Unpin for DefInstance<T> where
T: Unpin,
<T as Instantiate>::Data: Unpin,
impl<T> UnwindSafe for DefInstance<T> where
T: UnwindSafe,
<T as Instantiate>::Data: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more