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.
No design available.
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.
UnexistingVariable
The referenced variable for value doesn’t exist.
UnexistingContextVariable
The referenced context variable for value doesn’t exist.
UnexistingParameter
The designated parameter doesn’t exist in descriptor.
UnmatchingDataType
The value datatype doesn’t match the required one.
UnsetParameter
A parameter hasn’t been set up compared to descriptor.
MultipleParameterAssignation
A parameter is assigned multiple times.
NoValue
A parameter didn’t get any value.
NoContext
No context reference is allowed there.
The context referenced is not available in this scope.
ConnectionInputNotFound
The connection input data is not provided by input treatment.
ConnectionSelfInputNotFound
The connection input data is not provided in self inputs.
ConnectionOutputNotFound
The connection output data is not provided by output treatment.
ConnectionSelfOutputNotFound
The connection output data is not provided in self outputs.
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.
AlreadyDeclaredModel
The model name is already declared.
UndeclaredTreatment
The treatment is not declared here.
AlreadyDeclaredTreatment
The treatment name is already declared.
UnexistingConnectionType
The connection type is not existing within current available connections.
UnsatisfiedOutput
The sequence output is not currently satisfied, not connected to any treatment output.
OverloadedOutput
The sequence output is overloaded, having multiple treatment outputs connected to.
UnmatchingModelType
The (core) model type does not match.
UnexistingParametricModel
There are no matching pararmetric model.
UnsetModel
A model hasn’t been set up compared to descriptor.
AlreadyIncludedBuildStep
The build step is already included in the call stack, meaning there is an infinite call loop.
UnsatisfiedInput
The treatment input in not satisfied
ConstRequiredVarProvided
A constant is required but the value assigned is variable
ConstRequiredContextProvided
A constant is required but a context is provided
ModelInstanciationConstOnly
A model instanciation can only have const assignations
ConstRequiredFunctionReturnsVar
A function returns var when const is expected, due to a var parameter
UnmatchingNumberOfParameters
A function doesn’t get the right number of parameters
UnexistingGeneric
A value is setup for a generic that doesn’t exists
UndefinedGeneric
A generic value is not defined
UnsatisfiedTraits
Traits are not satisfied
Trait Implementations§
Source§impl Clone for LogicErrorKind
impl Clone for LogicErrorKind
Source§fn clone(&self) -> LogicErrorKind
fn clone(&self) -> LogicErrorKind
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for LogicErrorKind
impl Debug for LogicErrorKind
Auto Trait Implementations§
impl Freeze for LogicErrorKind
impl !RefUnwindSafe for LogicErrorKind
impl Send for LogicErrorKind
impl Sync for LogicErrorKind
impl Unpin for LogicErrorKind
impl !UnwindSafe for LogicErrorKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
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>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
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)
fn as_any(&self) -> &(dyn Any + 'static)
&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)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.