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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more