Enum rune::QueryErrorKind[][src]

pub enum QueryErrorKind {
Show 17 variants Custom { message: &'static str, }, InsertMetaError { error: InsertMetaError, }, IrError { error: IrErrorKind, }, ParseError { error: ParseErrorKind, }, ResolveError { error: ResolveErrorKind, }, MissingId { what: &'static str, id: Option<Id>, }, ItemConflict { item: Item, other: Location, }, AmbiguousItem { item: Item, locations: Vec<(Location, Item)>, }, NotVisible { chain: Vec<Location>, location: Location, visibility: Visibility, item: Item, from: Item, }, NotVisibleMod { chain: Vec<Location>, location: Location, visibility: Visibility, item: Item, from: Item, }, MissingRevId { id: Id, }, MissingMod { item: Item, }, ImportCycle { path: Vec<ImportEntryStep>, }, LastUseComponent, NotIndexedImport { item: Item, }, UnsupportedImportMeta { meta: CompileMeta, }, MetaConflict { current: CompileMeta, existing: CompileMeta, },
}
Expand description

Error raised during queries.

Variants

Custom

Fields of Custom

message: &'static str
InsertMetaError

Fields of InsertMetaError

error: InsertMetaError
IrError

Fields of IrError

error: IrErrorKind
ParseError

Fields of ParseError

error: ParseErrorKind
ResolveError

Fields of ResolveError

error: ResolveErrorKind
MissingId

Fields of MissingId

what: &'static strid: Option<Id>
ItemConflict

Fields of ItemConflict

item: Itemother: Location
AmbiguousItem

Fields of AmbiguousItem

item: Itemlocations: Vec<(Location, Item)>
NotVisible

Fields of NotVisible

chain: Vec<Location>location: Locationvisibility: Visibilityitem: Itemfrom: Item
NotVisibleMod

Fields of NotVisibleMod

chain: Vec<Location>location: Locationvisibility: Visibilityitem: Itemfrom: Item
MissingRevId

Fields of MissingRevId

id: Id
MissingMod

Fields of MissingMod

item: Item
ImportCycle

Fields of ImportCycle

path: Vec<ImportEntryStep>
LastUseComponent
NotIndexedImport

Fields of NotIndexedImport

item: Item
UnsupportedImportMeta

Fields of UnsupportedImportMeta

meta: CompileMeta
MetaConflict

Tried to add an item that already exists.

Fields of MetaConflict

current: CompileMeta

The meta we tried to insert.

existing: CompileMeta

The existing item.

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

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.

Converts the given value to a String. Read more

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.