pub enum TealResolveError {
TypeCheck {
module: String,
errors: Vec<String>,
},
Expectation {
module: String,
expected: String,
errors: Vec<String>,
},
MissingFields {
module: String,
expected: String,
fields: Vec<String>,
},
Read {
module: String,
source: ReadError,
},
}Expand description
Error raised when a .tl module fails the type check at require time.
Variants§
TypeCheck
Expectation
The module type-checks on its own but is not assignable to the resolver’s
expect_type.
MissingFields
require_fields: declared fields absent at run time.
Read
Trait Implementations§
Source§impl Debug for TealResolveError
impl Debug for TealResolveError
Source§impl Display for TealResolveError
impl Display for TealResolveError
Source§impl Error for TealResolveError
impl Error for TealResolveError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for TealResolveError
impl !UnwindSafe for TealResolveError
impl Freeze for TealResolveError
impl Send for TealResolveError
impl Sync for TealResolveError
impl Unpin for TealResolveError
impl UnsafeUnpin for TealResolveError
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<E> ExternalError for E
impl<E> ExternalError for E
fn into_lua_err(self) -> Error
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