pub enum CompileError {
Show 25 variants AutofillGenerateError { input: usize, }, NameTransformError { name: String, }, UnknownBlockType, DerefAssignment, UndefinedVariable { name: String, }, UndefinedFn { name: String, }, BlockOptionNotConst, BlockOptionNotSelected, UnknownEntity { unknown: String, }, UnknownEffect { effect: String, }, UnknownPenAttr { attr: String, }, UnknownMessageType { msg_type: String, }, MessageTypeWrongNumberArgs { msg_type: String, got: usize, expected: usize, }, UnknownService { service: String, }, UnknownRPC { service: String, rpc: String, }, GlobalsWithSameTransName { trans_name: String, names: (String, String), }, EntitiesWithSameTransName { trans_name: String, names: (String, String), }, FieldsWithSameTransName { trans_name: String, names: (String, String), }, LocalsWithSameTransName { trans_name: String, names: (String, String), }, CostumesWithSameTransName { trans_name: String, names: (String, String), }, SoundsWithSameTransName { trans_name: String, names: (String, String), }, BlocksWithSameTransName { trans_name: String, names: (String, String), }, InputsWithSameName { name: String, }, BlocksWithSameName { name: String, sigs: (String, String), }, CurrentlyUnsupported { msg: String, },
}

Variants§

§

AutofillGenerateError

Fields

§input: usize
§

NameTransformError

Fields

§name: String
§

UnknownBlockType

§

DerefAssignment

§

UndefinedVariable

Fields

§name: String
§

UndefinedFn

Fields

§name: String
§

BlockOptionNotConst

§

BlockOptionNotSelected

§

UnknownEntity

Fields

§unknown: String
§

UnknownEffect

Fields

§effect: String
§

UnknownPenAttr

Fields

§attr: String
§

UnknownMessageType

Fields

§msg_type: String
§

MessageTypeWrongNumberArgs

Fields

§msg_type: String
§got: usize
§expected: usize
§

UnknownService

Fields

§service: String
§

UnknownRPC

Fields

§service: String
§

GlobalsWithSameTransName

Fields

§trans_name: String
§names: (String, String)
§

EntitiesWithSameTransName

Fields

§trans_name: String
§names: (String, String)
§

FieldsWithSameTransName

Fields

§trans_name: String
§names: (String, String)
§

LocalsWithSameTransName

Fields

§trans_name: String
§names: (String, String)
§

CostumesWithSameTransName

Fields

§trans_name: String
§names: (String, String)
§

SoundsWithSameTransName

Fields

§trans_name: String
§names: (String, String)
§

BlocksWithSameTransName

Fields

§trans_name: String
§names: (String, String)
§

InputsWithSameName

Fields

§name: String
§

BlocksWithSameName

Fields

§name: String
§sigs: (String, String)
§

CurrentlyUnsupported

Fields

Trait Implementations§

source§

impl Debug for CompileError

source§

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

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

impl From<CompileError> for ErrorKind

source§

fn from(e: CompileError) -> Self

Converts to this type from the input type.

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