Enum nb2nl::xml2nl::Error[][src]

pub enum Error {
Show 15 variants InvalidXml { error: Error, }, InvalidProject, MultipleRoles, SpritesWithSameName(String), CreateOutsideOfTell, UseOfInternalBlock(String), NonConstantBreedName, NonConstantCodeBlock, NonConstantPatchProp, NonConstantColor, SetTicksToNonZero, ChangeTicksByNonOne, UnknownBlockType(String), NonConstantOperator, EmptyReportRing,
}
Expand description

Possible errors for the NetsBlox to Netlogo conversion.

Variants

InvalidXml

The input was not valid xml. Impossible for a valid NetsBlox xml file.

Fields of InvalidXml

error: Error
InvalidProject

The input was not a valid NetsBlox project. Impossible for a valid NetsBlox xml file.

MultipleRoles

The input project had multiple roles defined, which is not currently supported.

SpritesWithSameName(String)

The project had two or more sprites that share a single (case insensitive) name.

Tuple Fields of SpritesWithSameName

0: String
CreateOutsideOfTell

The project had a block that created turtles outside of a tell block (not supported).

UseOfInternalBlock(String)

The project used a block which was only intended for core behavior (not user-level code).

Tuple Fields of UseOfInternalBlock

0: String
NonConstantBreedName

The project refered to a breed name indirectly, which is not currently supported.

NonConstantCodeBlock

The project had a code block which was non-constant or non-inlined (e.g. a lambda function).

NonConstantPatchProp

The project refered to a patch prop indirectly (not by-name)

NonConstantColor

The project refered to a color indirectly (not by-name)

SetTicksToNonZero

A set block was used to set the builtin ticks variable to a non-zero value (not allowed).

ChangeTicksByNonOne

A change block was used to change the builtin ticks variable by a non-one amount (not allowed).

UnknownBlockType(String)

The given block type was not recognized or not supported.

Tuple Fields of UnknownBlockType

0: String
NonConstantOperator

A general operator block contained a non-constant operator name, which is currently not supported.

EmptyReportRing

A ringified reporter was empty.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.