pub enum WithUnresolvedTypeDefs<T> {
WithUnresolved(Box<dyn FnOnce(&HashMap<Name, Type>) -> Result<T>>),
WithoutUnresolved(T),
}
Expand description
Represent a type that might be defined in terms of some type definitions which are not necessarily available in the current namespace.
Variants§
Implementations§
Trait Implementations§
source§impl<T: Debug> Debug for WithUnresolvedTypeDefs<T>
impl<T: Debug> Debug for WithUnresolvedTypeDefs<T>
Auto Trait Implementations§
impl<T> Freeze for WithUnresolvedTypeDefs<T>where
T: Freeze,
impl<T> !RefUnwindSafe for WithUnresolvedTypeDefs<T>
impl<T> !Send for WithUnresolvedTypeDefs<T>
impl<T> !Sync for WithUnresolvedTypeDefs<T>
impl<T> Unpin for WithUnresolvedTypeDefs<T>where
T: Unpin,
impl<T> !UnwindSafe for WithUnresolvedTypeDefs<T>
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