Enum dae_parser::DefInstance
source · [−]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>)
An instantiation of a T
.
Trait Implementations
sourceimpl<T: Instantiate + Clone> Clone for DefInstance<T>where
T::Data: Clone,
impl<T: Instantiate + Clone> Clone for DefInstance<T>where
T::Data: Clone,
sourceimpl<T: Instantiate + Debug> Debug for DefInstance<T>where
T::Data: Debug,
impl<T: Instantiate + Debug> Debug for DefInstance<T>where
T::Data: Debug,
sourceimpl<T: Instantiate> From<Instance<T>> for DefInstance<T>
impl<T: Instantiate> From<Instance<T>> for DefInstance<T>
sourceimpl<T: Instantiate> From<T> for DefInstance<T>
impl<T: Instantiate> From<T> for DefInstance<T>
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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