Enum LogicErrorKind

Source
pub enum LogicErrorKind {
Show 46 variants CollectionUndefined, UncommitedDescriptor { identifier: Identifier, }, NoDesigner { identifier: Identifier, }, ErroneousDesign { identifier: Identifier, }, ErroneousChecks, UnavailableDesign { identifier: Identifier, }, LaunchExpectTreatment { wrong_identifier: Identifier, }, LaunchWrongParameter { parameter: String, }, 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: DescribedType, given: DescribedType, }, 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: IdentifierRequirement, }, UnexistingModel { scope: Identifier, claimed: IdentifierRequirement, }, UnexistingContext { scope: Identifier, claimed: IdentifierRequirement, }, UnexistingFunction { scope: Identifier, claimed: IdentifierRequirement, }, UnexistingData { scope: Identifier, claimed: IdentifierRequirement, }, UndeclaredModel { scope: Identifier, model: String, }, AlreadyDeclaredModel { scope: Identifier, model: String, }, UndeclaredTreatment { scope: Identifier, treatment: String, }, AlreadyDeclaredTreatment { scope: Identifier, treatment: String, }, UnexistingConnectionType { scope: Identifier, from: String, output: String, to: String, input: String, output_flow: Flow, output_type: DescribedType, input_flow: Flow, input_type: DescribedType, }, 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, }, UnexistingGeneric { scope: Identifier, element: Identifier, name: String, described_type: DescribedType, }, UndefinedGeneric { scope: Identifier, element: Identifier, described_type: DescribedType, }, UnsatisfiedTraits { scope: Identifier, element: Identifier, described_type: DescribedType, unsatisfied_traits: Vec<DataTrait>, },
}
Expand description

Kind of logic error that might happen.

Variants§

§

CollectionUndefined

Designer do not have collection defined.

§

UncommitedDescriptor

Descriptor has not been commited, no designer available yet.

Fields

§identifier: Identifier
§

NoDesigner

No designer to commit from.

Fields

§identifier: Identifier
§

ErroneousDesign

Design have some errors, while pure success is expected.

Fields

§identifier: Identifier
§

ErroneousChecks

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

§

UnavailableDesign

No design available.

Fields

§identifier: Identifier
§

LaunchExpectTreatment

The launch must be done using a treatment.

Fields

§wrong_identifier: Identifier
§

LaunchWrongParameter

A parameter with wrong or missing value was given for launch.

Fields

§parameter: String
§

UnexistingVariable

The referenced variable for value doesn’t exist.

Fields

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

UnexistingContextVariable

The referenced context variable for value doesn’t exist.

Fields

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

UnexistingParameter

The designated parameter doesn’t exist in descriptor.

Fields

§called: Identifier
§parameter: String
§

UnmatchingDataType

The value datatype doesn’t match the required one.

Fields

§called: Identifier
§parameter: String
§value: Value
§expected: DescribedType
§

UnsetParameter

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

Fields

§called: Identifier
§parameter: String
§

MultipleParameterAssignation

A parameter is assigned multiple times.

Fields

§called: Identifier
§parameter: String
§

NoValue

A parameter didn’t get any value.

Fields

§called: Identifier
§parameter: String
§

NoContext

No context reference is allowed there.

Fields

§name: String
§parameter: String
§

UnavailableContext

The context referenced is not available in this scope.

Fields

§context: Identifier
§

ConnectionInputNotFound

The connection input data is not provided by input treatment.

Fields

§input: String
§

ConnectionSelfInputNotFound

The connection input data is not provided in self inputs.

Fields

§input: String
§

ConnectionOutputNotFound

The connection output data is not provided by output treatment.

Fields

§output: String
§

ConnectionSelfOutputNotFound

The connection output data is not provided in self outputs.

Fields

§output: String
§

UnexistingTreatment

The treatment is not existing within current available treatments.

§

UnexistingModel

The model is not existing within current available models.

§

UnexistingContext

The context is not existing within current available contextes.

§

UnexistingFunction

The function is not existing within current available functions.

§

UnexistingData

The data type is not existing within current available data types.

§

UndeclaredModel

The model is not declared here.

Fields

§model: String
§

AlreadyDeclaredModel

The model name is already declared.

Fields

§model: String
§

UndeclaredTreatment

The treatment is not declared here.

Fields

§treatment: String
§

AlreadyDeclaredTreatment

The treatment name is already declared.

Fields

§treatment: String
§

UnexistingConnectionType

The connection type is not existing within current available connections.

Fields

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

UnsatisfiedOutput

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

Fields

§output: String
§

OverloadedOutput

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

Fields

§output: String
§

UnmatchingModelType

The (core) model type does not match.

Fields

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

UnexistingParametricModel

There are no matching pararmetric model.

Fields

§called: Identifier
§parametric_model: String
§

UnsetModel

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

Fields

§called: Identifier
§parametric_model: String
§

AlreadyIncludedBuildStep

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

Fields

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

UnsatisfiedInput

The treatment input in not satisfied

Fields

§treatment: String
§input: String
§

ConstRequiredVarProvided

A constant is required but the value assigned is variable

Fields

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

ConstRequiredContextProvided

A constant is required but a context is provided

Fields

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

ModelInstanciationConstOnly

A model instanciation can only have const assignations

Fields

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

ConstRequiredFunctionReturnsVar

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

Fields

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

UnmatchingNumberOfParameters

A function doesn’t get the right number of parameters

Fields

§function: Identifier
§

UnexistingGeneric

A value is setup for a generic that doesn’t exists

Fields

§element: Identifier
§name: String
§described_type: DescribedType
§

UndefinedGeneric

A generic value is not defined

Fields

§element: Identifier
§described_type: DescribedType
§

UnsatisfiedTraits

Traits are not satisfied

Fields

§element: Identifier
§described_type: DescribedType
§unsatisfied_traits: Vec<DataTrait>

Trait Implementations§

Source§

impl Clone for LogicErrorKind

Source§

fn clone(&self) -> LogicErrorKind

Returns a duplicate 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 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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> Downcast for T
where T: Any,

Source§

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

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>) -> Rc<dyn Any>

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 T
where T: Any + Send + Sync,

Source§

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

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 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> ToOwned for T
where T: Clone,

Source§

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 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.