pub enum Resource<T> {
Global {
index: usize,
},
Immediate(Box<T>),
}Expand description
This enum represents a resource of type T for use in a dictionary.
It does not implement serialize, because it’s possible that an index needs to be resolved
Variants§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Resource<T>
impl<T> RefUnwindSafe for Resource<T>where
T: RefUnwindSafe,
impl<T> Send for Resource<T>where
T: Send,
impl<T> Sync for Resource<T>where
T: Sync,
impl<T> Unpin for Resource<T>
impl<T> UnwindSafe for Resource<T>where
T: UnwindSafe,
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
Mutably borrows from an owned value. Read more