Error

Enum Error 

Source
#[non_exhaustive]
pub enum Error {
Show 34 variants ConstIntNotFound(ConstIntNotFound), DuplicateDefinition(DuplicateDefinition), DuplicateEnumVariant(DuplicateEnumVariant), DuplicateEnumVariantId(DuplicateEnumVariantId), DuplicateEventId(DuplicateEventId), DuplicateFunctionId(DuplicateFunctionId), DuplicateServiceItem(DuplicateServiceItem), DuplicateServiceUuid(DuplicateServiceUuid), DuplicateStructField(DuplicateStructField), DuplicateStructFieldId(DuplicateStructFieldId), EmptyEnum(EmptyEnum), ExpectedConstIntFoundService(ExpectedConstIntFoundService), ExpectedConstIntFoundString(ExpectedConstIntFoundString), ExpectedConstIntFoundType(ExpectedConstIntFoundType), ExpectedConstIntFoundUuid(ExpectedConstIntFoundUuid), ExpectedIdentFoundReserved(ExpectedIdentFoundReserved), ExpectedTypeFoundConst(ExpectedTypeFoundConst), ExpectedTypeFoundService(ExpectedTypeFoundService), ImportNotFound(ImportNotFound), InvalidArrayLen(InvalidArrayLen), InvalidConstValue(InvalidConstValue), InvalidEnumVariantId(InvalidEnumVariantId), InvalidEventId(InvalidEventId), InvalidFunctionId(InvalidFunctionId), InvalidSchemaName(InvalidSchemaName), InvalidServiceUuid(InvalidServiceUuid), InvalidServiceVersion(InvalidServiceVersion), InvalidStructFieldId(InvalidStructFieldId), InvalidSyntax(InvalidSyntax), IoError(IoError), MissingImport(MissingImport), RecursiveEnum(RecursiveEnum), RecursiveStruct(RecursiveStruct), TypeNotFound(TypeNotFound),
}

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

ConstIntNotFound(ConstIntNotFound)

§

DuplicateDefinition(DuplicateDefinition)

§

DuplicateEnumVariant(DuplicateEnumVariant)

§

DuplicateEnumVariantId(DuplicateEnumVariantId)

§

DuplicateEventId(DuplicateEventId)

§

DuplicateFunctionId(DuplicateFunctionId)

§

DuplicateServiceItem(DuplicateServiceItem)

§

DuplicateServiceUuid(DuplicateServiceUuid)

§

DuplicateStructField(DuplicateStructField)

§

DuplicateStructFieldId(DuplicateStructFieldId)

§

EmptyEnum(EmptyEnum)

§

ExpectedConstIntFoundService(ExpectedConstIntFoundService)

§

ExpectedConstIntFoundString(ExpectedConstIntFoundString)

§

ExpectedConstIntFoundType(ExpectedConstIntFoundType)

§

ExpectedConstIntFoundUuid(ExpectedConstIntFoundUuid)

§

ExpectedIdentFoundReserved(ExpectedIdentFoundReserved)

§

ExpectedTypeFoundConst(ExpectedTypeFoundConst)

§

ExpectedTypeFoundService(ExpectedTypeFoundService)

§

ImportNotFound(ImportNotFound)

§

InvalidArrayLen(InvalidArrayLen)

§

InvalidConstValue(InvalidConstValue)

§

InvalidEnumVariantId(InvalidEnumVariantId)

§

InvalidEventId(InvalidEventId)

§

InvalidFunctionId(InvalidFunctionId)

§

InvalidSchemaName(InvalidSchemaName)

§

InvalidServiceUuid(InvalidServiceUuid)

§

InvalidServiceVersion(InvalidServiceVersion)

§

InvalidStructFieldId(InvalidStructFieldId)

§

InvalidSyntax(InvalidSyntax)

§

IoError(IoError)

§

MissingImport(MissingImport)

§

RecursiveEnum(RecursiveEnum)

§

RecursiveStruct(RecursiveStruct)

§

TypeNotFound(TypeNotFound)

Trait Implementations§

Source§

impl Debug for Error

Source§

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

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

impl Diagnostic for Error

Source§

fn kind(&self) -> DiagnosticKind

Kind of the diagnostic; either an error or a warning.
Source§

fn schema_name(&self) -> &str

Name of the schema this diagnostic originated from. Read more
Source§

fn format<'a>(&'a self, parsed: &'a Parsed) -> Formatted<'a>

Formats the diagnostic for printing.
Source§

impl From<ConstIntNotFound> for Error

Source§

fn from(e: ConstIntNotFound) -> Self

Converts to this type from the input type.
Source§

impl From<DuplicateDefinition> for Error

Source§

fn from(e: DuplicateDefinition) -> Self

Converts to this type from the input type.
Source§

impl From<DuplicateEnumVariant> for Error

Source§

fn from(e: DuplicateEnumVariant) -> Self

Converts to this type from the input type.
Source§

impl From<DuplicateEnumVariantId> for Error

Source§

fn from(e: DuplicateEnumVariantId) -> Self

Converts to this type from the input type.
Source§

impl From<DuplicateEventId> for Error

Source§

fn from(e: DuplicateEventId) -> Self

Converts to this type from the input type.
Source§

impl From<DuplicateFunctionId> for Error

Source§

fn from(e: DuplicateFunctionId) -> Self

Converts to this type from the input type.
Source§

impl From<DuplicateServiceItem> for Error

Source§

fn from(e: DuplicateServiceItem) -> Self

Converts to this type from the input type.
Source§

impl From<DuplicateServiceUuid> for Error

Source§

fn from(e: DuplicateServiceUuid) -> Self

Converts to this type from the input type.
Source§

impl From<DuplicateStructField> for Error

Source§

fn from(e: DuplicateStructField) -> Self

Converts to this type from the input type.
Source§

impl From<DuplicateStructFieldId> for Error

Source§

fn from(e: DuplicateStructFieldId) -> Self

Converts to this type from the input type.
Source§

impl From<EmptyEnum> for Error

Source§

fn from(e: EmptyEnum) -> Self

Converts to this type from the input type.
Source§

impl From<ExpectedConstIntFoundService> for Error

Source§

fn from(e: ExpectedConstIntFoundService) -> Self

Converts to this type from the input type.
Source§

impl From<ExpectedConstIntFoundString> for Error

Source§

fn from(e: ExpectedConstIntFoundString) -> Self

Converts to this type from the input type.
Source§

impl From<ExpectedConstIntFoundType> for Error

Source§

fn from(e: ExpectedConstIntFoundType) -> Self

Converts to this type from the input type.
Source§

impl From<ExpectedConstIntFoundUuid> for Error

Source§

fn from(e: ExpectedConstIntFoundUuid) -> Self

Converts to this type from the input type.
Source§

impl From<ExpectedIdentFoundReserved> for Error

Source§

fn from(e: ExpectedIdentFoundReserved) -> Self

Converts to this type from the input type.
Source§

impl From<ExpectedTypeFoundConst> for Error

Source§

fn from(e: ExpectedTypeFoundConst) -> Self

Converts to this type from the input type.
Source§

impl From<ExpectedTypeFoundService> for Error

Source§

fn from(e: ExpectedTypeFoundService) -> Self

Converts to this type from the input type.
Source§

impl From<ImportNotFound> for Error

Source§

fn from(e: ImportNotFound) -> Self

Converts to this type from the input type.
Source§

impl From<InvalidArrayLen> for Error

Source§

fn from(e: InvalidArrayLen) -> Self

Converts to this type from the input type.
Source§

impl From<InvalidConstValue> for Error

Source§

fn from(e: InvalidConstValue) -> Self

Converts to this type from the input type.
Source§

impl From<InvalidEnumVariantId> for Error

Source§

fn from(e: InvalidEnumVariantId) -> Self

Converts to this type from the input type.
Source§

impl From<InvalidEventId> for Error

Source§

fn from(e: InvalidEventId) -> Self

Converts to this type from the input type.
Source§

impl From<InvalidFunctionId> for Error

Source§

fn from(e: InvalidFunctionId) -> Self

Converts to this type from the input type.
Source§

impl From<InvalidSchemaName> for Error

Source§

fn from(e: InvalidSchemaName) -> Self

Converts to this type from the input type.
Source§

impl From<InvalidServiceUuid> for Error

Source§

fn from(e: InvalidServiceUuid) -> Self

Converts to this type from the input type.
Source§

impl From<InvalidServiceVersion> for Error

Source§

fn from(e: InvalidServiceVersion) -> Self

Converts to this type from the input type.
Source§

impl From<InvalidStructFieldId> for Error

Source§

fn from(e: InvalidStructFieldId) -> Self

Converts to this type from the input type.
Source§

impl From<InvalidSyntax> for Error

Source§

fn from(e: InvalidSyntax) -> Self

Converts to this type from the input type.
Source§

impl From<IoError> for Error

Source§

fn from(e: IoError) -> Self

Converts to this type from the input type.
Source§

impl From<MissingImport> for Error

Source§

fn from(e: MissingImport) -> Self

Converts to this type from the input type.
Source§

impl From<RecursiveEnum> for Error

Source§

fn from(e: RecursiveEnum) -> Self

Converts to this type from the input type.
Source§

impl From<RecursiveStruct> for Error

Source§

fn from(e: RecursiveStruct) -> Self

Converts to this type from the input type.
Source§

impl From<TypeNotFound> for Error

Source§

fn from(e: TypeNotFound) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl Freeze for Error

§

impl !RefUnwindSafe for Error

§

impl Send for Error

§

impl Sync for Error

§

impl Unpin for Error

§

impl !UnwindSafe for Error

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