Skip to main content

ResolveError

Enum ResolveError 

Source
pub enum ResolveError {
Show 26 variants UndefinedType { name: String, line: usize, suggestions: Vec<String>, }, GenericArityMismatch { name: String, expected: usize, actual: usize, line: usize, }, UndefinedCell { name: String, line: usize, suggestions: Vec<String>, }, UndefinedTrait { name: String, line: usize, }, UndefinedTool { name: String, line: usize, }, Duplicate { name: String, line: usize, }, MissingEffectGrant { cell: String, effect: String, line: usize, }, UndeclaredEffect { cell: String, effect: String, line: usize, cause: String, }, EffectContractViolation { caller: String, callee: String, effect: String, line: usize, }, NondeterministicOperation { cell: String, operation: String, line: usize, }, MachineUnknownInitial { machine: String, state: String, line: usize, }, MachineUnknownTransition { machine: String, state: String, target: String, line: usize, }, MachineUnreachableState { machine: String, state: String, initial: String, line: usize, }, MachineMissingTerminal { machine: String, line: usize, }, MachineTransitionArgCount { machine: String, state: String, target: String, expected: usize, actual: usize, line: usize, }, MachineTransitionArgType { machine: String, state: String, target: String, expected: String, actual: String, line: usize, }, MachineUnsupportedExpr { machine: String, state: String, context: String, line: usize, }, MachineGuardType { machine: String, state: String, actual: String, line: usize, }, PipelineUnknownStage { pipeline: String, stage: String, line: usize, }, PipelineStageArity { pipeline: String, stage: String, line: usize, }, PipelineStageTypeMismatch { pipeline: String, from_stage: String, to_stage: String, expected: String, actual: String, line: usize, }, CircularImport { module: String, chain: String, }, ModuleNotFound { module: String, line: usize, }, ImportedSymbolNotFound { symbol: String, module: String, line: usize, }, TraitMissingMethods { trait_name: String, target_type: String, missing: Vec<String>, line: usize, }, TraitMethodSignatureMismatch { trait_name: String, target_type: String, method: String, reason: String, expected: String, actual: String, line: usize, },
}

Variants§

§

UndefinedType

Fields

§name: String
§line: usize
§suggestions: Vec<String>
§

GenericArityMismatch

Fields

§name: String
§expected: usize
§actual: usize
§line: usize
§

UndefinedCell

Fields

§name: String
§line: usize
§suggestions: Vec<String>
§

UndefinedTrait

Fields

§name: String
§line: usize
§

UndefinedTool

Fields

§name: String
§line: usize
§

Duplicate

Fields

§name: String
§line: usize
§

MissingEffectGrant

Fields

§cell: String
§effect: String
§line: usize
§

UndeclaredEffect

Fields

§cell: String
§effect: String
§line: usize
§cause: String
§

EffectContractViolation

Fields

§caller: String
§callee: String
§effect: String
§line: usize
§

NondeterministicOperation

Fields

§cell: String
§operation: String
§line: usize
§

MachineUnknownInitial

Fields

§machine: String
§state: String
§line: usize
§

MachineUnknownTransition

Fields

§machine: String
§state: String
§target: String
§line: usize
§

MachineUnreachableState

Fields

§machine: String
§state: String
§initial: String
§line: usize
§

MachineMissingTerminal

Fields

§machine: String
§line: usize
§

MachineTransitionArgCount

Fields

§machine: String
§state: String
§target: String
§expected: usize
§actual: usize
§line: usize
§

MachineTransitionArgType

Fields

§machine: String
§state: String
§target: String
§expected: String
§actual: String
§line: usize
§

MachineUnsupportedExpr

Fields

§machine: String
§state: String
§context: String
§line: usize
§

MachineGuardType

Fields

§machine: String
§state: String
§actual: String
§line: usize
§

PipelineUnknownStage

Fields

§pipeline: String
§stage: String
§line: usize
§

PipelineStageArity

Fields

§pipeline: String
§stage: String
§line: usize
§

PipelineStageTypeMismatch

Fields

§pipeline: String
§from_stage: String
§to_stage: String
§expected: String
§actual: String
§line: usize
§

CircularImport

Fields

§module: String
§chain: String
§

ModuleNotFound

Fields

§module: String
§line: usize
§

ImportedSymbolNotFound

Fields

§symbol: String
§module: String
§line: usize
§

TraitMissingMethods

Fields

§trait_name: String
§target_type: String
§missing: Vec<String>
§line: usize
§

TraitMethodSignatureMismatch

Fields

§trait_name: String
§target_type: String
§method: String
§reason: String
§expected: String
§actual: String
§line: usize

Trait Implementations§

Source§

impl Debug for ResolveError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for ResolveError

Source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for ResolveError

1.30.0 · Source§

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

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.