pub enum ClosingError {
UnknownVar(bool, u32),
UnimportedVar(u32),
}Expand description
Closing can fail for a few reasons:
Variants§
UnknownVar(bool, u32)
A variable was encountered that isn’t currently being moved to a bound variable. This is an internal invariant violation in the typechecker, not an issue of a malformed input type.
UnimportedVar(u32)
A universal variable wasn’t imported. This is probably an internal invariant violation in the typechecker.
Trait Implementations§
Source§impl Debug for ClosingError
impl Debug for ClosingError
Source§impl<'a> From<ClosingError> for Error<'a>
impl<'a> From<ClosingError> for Error<'a>
Source§fn from(e: ClosingError) -> Error<'a>
fn from(e: ClosingError) -> Error<'a>
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ClosingError
impl RefUnwindSafe for ClosingError
impl Send for ClosingError
impl Sync for ClosingError
impl Unpin for ClosingError
impl UnsafeUnpin for ClosingError
impl UnwindSafe for ClosingError
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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