pub enum LogicErrorKind {
Show 38 variants CollectionUndefined, UncommitedDescriptor { identifier: Identifier, }, NoDesigner { identifier: Identifier, }, ErroneousDesign { identifier: Identifier, }, ErroneousChecks, UnavailableDesign { identifier: Identifier, }, UnexistingVariable { identifier: Identifier, parameter: String, variable: String, }, UnexistingContextVariable { identifier: Identifier, parameter: String, context: Identifier, variable: String, }, UnexistingParameter { scope: Identifier, called: Identifier, parameter: String, }, UnmatchingDataType { scope: Identifier, called: Identifier, parameter: String, value: Value, expected: DataType, given: DataType, }, UnsetParameter { scope: Identifier, called: Identifier, parameter: String, }, MultipleParameterAssignation { scope: Identifier, called: Identifier, parameter: String, }, NoValue { scope: Identifier, called: Identifier, parameter: String, }, NoContext { scope: Identifier, model: Identifier, name: String, parameter: String, }, UnavailableContext { scope: Identifier, context: Identifier, }, ConnectionInputNotFound { scope: Identifier, to: Identifier, input: String, }, ConnectionSelfInputNotFound { scope: Identifier, input: String, }, ConnectionOutputNotFound { scope: Identifier, from: Identifier, output: String, }, ConnectionSelfOutputNotFound { scope: Identifier, output: String, }, UnexistingTreatment { scope: Identifier, claimed: Identifier, }, UnexistingModel { scope: Identifier, claimed: Identifier, }, UnexistingContext { scope: Identifier, claimed: Identifier, }, UnexistingFunction { scope: Identifier, claimed: Identifier, }, UndeclaredModel { scope: Identifier, model: String, }, UndeclaredTreatment { scope: Identifier, treatment: String, }, UnexistingConnectionType { scope: Identifier, from: String, output: String, to: String, input: String, output_flow: Flow, output_type: DataType, input_flow: Flow, input_type: DataType, }, UnsatisfiedOutput { scope: Identifier, output: String, }, OverloadedOutput { scope: Identifier, output: String, }, UnmatchingModelType { scope: Identifier, called: Identifier, name: String, expected: Identifier, given_name: String, given: Identifier, }, UnexistingParametricModel { scope: Identifier, called: Identifier, parametric_model: String, }, UnsetModel { scope: Identifier, called: Identifier, parametric_model: String, }, AlreadyIncludedBuildStep { treatment: Identifier, cause_step: CheckStep, check_steps: Vec<CheckStep>, }, UnsatisfiedInput { scope: Option<Identifier>, treatment: String, input: String, }, ConstRequiredVarProvided { scope: Identifier, called: Identifier, parameter: String, variable: String, }, ConstRequiredContextProvided { scope: Identifier, called: Identifier, parameter: String, context: Identifier, entry: String, }, ModelInstanciationConstOnly { scope: Identifier, called: Identifier, name: String, parameter: String, }, ConstRequiredFunctionReturnsVar { scope: Identifier, called: Identifier, parameter: String, function: Identifier, }, UnmatchingNumberOfParameters { scope: Identifier, function: Identifier, },
}
Expand description

Kind of logic error that might happen.

Variants§

§

CollectionUndefined

Designer do not have collection defined.

§

UncommitedDescriptor

Fields

§identifier: Identifier

Descriptor has not been commited, no designer available yet.

§

NoDesigner

Fields

§identifier: Identifier

No designer to commit from.

§

ErroneousDesign

Fields

§identifier: Identifier

Design have some errors, while pure success is expected.

§

ErroneousChecks

Checks hasn’t all been sucessful, while pure sucess is expected.

§

UnavailableDesign

Fields

§identifier: Identifier

No design available.

§

UnexistingVariable

Fields

§identifier: Identifier
§parameter: String
§variable: String

The referenced variable for value doesn’t exist.

§

UnexistingContextVariable

Fields

§identifier: Identifier
§parameter: String
§context: Identifier
§variable: String

The referenced context variable for value doesn’t exist.

§

UnexistingParameter

Fields

§called: Identifier
§parameter: String

The designated parameter doesn’t exist in descriptor.

§

UnmatchingDataType

Fields

§called: Identifier
§parameter: String
§value: Value
§expected: DataType
§given: DataType

The value datatype doesn’t match the required one.

§

UnsetParameter

Fields

§called: Identifier
§parameter: String

A parameter hasn’t been set up compared to descriptor.

§

MultipleParameterAssignation

Fields

§called: Identifier
§parameter: String

A parameter is assigned multiple times.

§

NoValue

Fields

§called: Identifier
§parameter: String

A parameter didn’t get any value.

§

NoContext

Fields

§name: String
§parameter: String

No context reference is allowed there.

§

UnavailableContext

Fields

§context: Identifier

The context referenced is not available in this scope.

§

ConnectionInputNotFound

Fields

§input: String

The connection input data is not provided by input treatment.

§

ConnectionSelfInputNotFound

Fields

§input: String

The connection input data is not provided in self inputs.

§

ConnectionOutputNotFound

Fields

§output: String

The connection output data is not provided by output treatment.

§

ConnectionSelfOutputNotFound

Fields

§output: String

The connection output data is not provided in self outputs.

§

UnexistingTreatment

Fields

§claimed: Identifier

The treatment is not existing within current available treatments.

§

UnexistingModel

Fields

§claimed: Identifier

The model is not existing within current available models.

§

UnexistingContext

Fields

§claimed: Identifier

The context is not existing within current available contextes.

§

UnexistingFunction

Fields

§claimed: Identifier

The function is not existing within current available functions.

§

UndeclaredModel

Fields

§model: String

The model is not declared here.

§

UndeclaredTreatment

Fields

§treatment: String

The treatment is not declared here.

§

UnexistingConnectionType

Fields

§from: String
§output: String
§input: String
§output_flow: Flow
§output_type: DataType
§input_flow: Flow
§input_type: DataType

The connection type is not existing within current available connections.

§

UnsatisfiedOutput

Fields

§output: String

The sequence output is not currently satisfied, not connected to any treatment output.

§

OverloadedOutput

Fields

§output: String

The sequence output is overloaded, having multiple treatment outputs connected to.

§

UnmatchingModelType

Fields

§called: Identifier
§name: String
§expected: Identifier
§given_name: String

The (core) model type does not match.

§

UnexistingParametricModel

Fields

§called: Identifier
§parametric_model: String

There are no matching pararmetric model.

§

UnsetModel

Fields

§called: Identifier
§parametric_model: String

A model hasn’t been set up compared to descriptor.

§

AlreadyIncludedBuildStep

Fields

§treatment: Identifier
§cause_step: CheckStep
§check_steps: Vec<CheckStep>

The build step is already included in the call stack, meaning there is an infinite call loop.

§

UnsatisfiedInput

Fields

§treatment: String
§input: String

The treatment input in not satisfied

§

ConstRequiredVarProvided

Fields

§called: Identifier
§parameter: String
§variable: String

A constant is required but the value assigned is variable

§

ConstRequiredContextProvided

Fields

§called: Identifier
§parameter: String
§context: Identifier
§entry: String

A constant is required but a context is provided

§

ModelInstanciationConstOnly

Fields

§called: Identifier
§name: String
§parameter: String

A model instanciation can only have const assignations

§

ConstRequiredFunctionReturnsVar

Fields

§called: Identifier
§parameter: String
§function: Identifier

A function returns var when const is expected, due to a var parameter

§

UnmatchingNumberOfParameters

Fields

§function: Identifier

A function doesn’t get the right number of parameters

Trait Implementations§

source§

impl Clone for LogicErrorKind

source§

fn clone(&self) -> LogicErrorKind

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for LogicErrorKind

source§

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

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

impl Display for LogicErrorKind

source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> Downcast for Twhere T: Any,

source§

fn into_any(self: Box<T, Global>) -> Box<dyn Any, Global>

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.
source§

fn into_any_rc(self: Rc<T, Global>) -> Rc<dyn Any, Global>

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
source§

fn as_any(&self) -> &(dyn Any + 'static)

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s.
source§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
source§

impl<T> DowncastSync for Twhere T: Any + Send + Sync,

source§

fn into_any_arc(self: Arc<T, Global>) -> Arc<dyn Any + Send + Sync, Global>

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere 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> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

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

source§

default fn to_string(&self) -> String

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

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

§

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 Twhere U: TryFrom<T>,

§

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.