pub_just::compile_error_kind

Enum CompileErrorKind

Source
pub enum CompileErrorKind<'src> {
Show 49 variants AttributeArgumentCountMismatch { attribute: &'src str, found: usize, min: usize, max: usize, }, BacktickShebang, CircularRecipeDependency { recipe: &'src str, circle: Vec<&'src str>, }, CircularVariableDependency { variable: &'src str, circle: Vec<&'src str>, }, DependencyArgumentCountMismatch { dependency: &'src str, found: usize, min: usize, max: usize, }, Redefinition { first: usize, first_type: &'static str, name: &'src str, second_type: &'static str, }, DuplicateAttribute { attribute: &'src str, first: usize, }, DuplicateParameter { recipe: &'src str, parameter: &'src str, }, DuplicateSet { setting: &'src str, first: usize, }, DuplicateVariable { variable: &'src str, }, DuplicateUnexport { variable: &'src str, }, ExpectedKeyword { expected: Vec<Keyword>, found: Token<'src>, }, ExportUnexported { variable: &'src str, }, ExtraLeadingWhitespace, ExtraneousAttributes { count: usize, }, FunctionArgumentCountMismatch { function: &'src str, found: usize, expected: RangeInclusive<usize>, }, Include, InconsistentLeadingWhitespace { expected: &'src str, found: &'src str, }, Internal { message: String, }, InvalidAttribute { item_kind: &'static str, item_name: &'src str, attribute: Attribute<'src>, }, InvalidEscapeSequence { character: char, }, MismatchedClosingDelimiter { close: Delimiter, open: Delimiter, open_line: usize, }, MixedLeadingWhitespace { whitespace: &'src str, }, ParameterFollowsVariadicParameter { parameter: &'src str, }, ParsingRecursionDepthExceeded, RequiredParameterFollowsDefaultParameter { parameter: &'src str, }, ShebangAndScriptAttribute { recipe: &'src str, }, ShellExpansion { err: LookupError<VarError>, }, UndefinedVariable { variable: &'src str, }, UnexpectedCharacter { expected: char, }, UnexpectedClosingDelimiter { close: Delimiter, }, UnexpectedEndOfToken { expected: char, }, UnexpectedToken { expected: Vec<TokenKind>, found: TokenKind, }, UnicodeEscapeCharacter { character: char, }, UnicodeEscapeDelimiter { character: char, }, UnicodeEscapeEmpty, UnicodeEscapeLength { hex: String, }, UnicodeEscapeRange { hex: String, }, UnicodeEscapeUnterminated, UnknownAliasTarget { alias: &'src str, target: &'src str, }, UnknownAttribute { attribute: &'src str, }, UnknownDependency { recipe: &'src str, unknown: &'src str, }, UnknownFunction { function: &'src str, }, UnknownSetting { setting: &'src str, }, UnknownStartOfToken, UnpairedCarriageReturn, UnterminatedBacktick, UnterminatedInterpolation, UnterminatedString,
}

Variantsยง

ยง

AttributeArgumentCountMismatch

Fields

ยงattribute: &'src str
ยง

BacktickShebang

ยง

CircularRecipeDependency

Fields

ยงrecipe: &'src str
ยงcircle: Vec<&'src str>
ยง

CircularVariableDependency

Fields

ยงvariable: &'src str
ยงcircle: Vec<&'src str>
ยง

DependencyArgumentCountMismatch

Fields

ยงdependency: &'src str
ยง

Redefinition

Fields

ยงfirst_type: &'static str
ยงname: &'src str
ยงsecond_type: &'static str
ยง

DuplicateAttribute

Fields

ยงattribute: &'src str
ยง

DuplicateParameter

Fields

ยงrecipe: &'src str
ยงparameter: &'src str
ยง

DuplicateSet

Fields

ยงsetting: &'src str
ยง

DuplicateVariable

Fields

ยงvariable: &'src str
ยง

DuplicateUnexport

Fields

ยงvariable: &'src str
ยง

ExpectedKeyword

Fields

ยงexpected: Vec<Keyword>
ยงfound: Token<'src>
ยง

ExportUnexported

Fields

ยงvariable: &'src str
ยง

ExtraLeadingWhitespace

ยง

ExtraneousAttributes

Fields

ยง

FunctionArgumentCountMismatch

Fields

ยงfunction: &'src str
ยง

Include

ยง

InconsistentLeadingWhitespace

Fields

ยงexpected: &'src str
ยงfound: &'src str
ยง

Internal

Fields

ยงmessage: String
ยง

InvalidAttribute

Fields

ยงitem_kind: &'static str
ยงitem_name: &'src str
ยงattribute: Attribute<'src>
ยง

InvalidEscapeSequence

Fields

ยงcharacter: char
ยง

MismatchedClosingDelimiter

Fields

ยงopen_line: usize
ยง

MixedLeadingWhitespace

Fields

ยงwhitespace: &'src str
ยง

ParameterFollowsVariadicParameter

Fields

ยงparameter: &'src str
ยง

ParsingRecursionDepthExceeded

ยง

RequiredParameterFollowsDefaultParameter

Fields

ยงparameter: &'src str
ยง

ShebangAndScriptAttribute

Fields

ยงrecipe: &'src str
ยง

ShellExpansion

ยง

UndefinedVariable

Fields

ยงvariable: &'src str
ยง

UnexpectedCharacter

Fields

ยงexpected: char
ยง

UnexpectedClosingDelimiter

Fields

ยง

UnexpectedEndOfToken

Fields

ยงexpected: char
ยง

UnexpectedToken

Fields

ยงexpected: Vec<TokenKind>
ยง

UnicodeEscapeCharacter

Fields

ยงcharacter: char
ยง

UnicodeEscapeDelimiter

Fields

ยงcharacter: char
ยง

UnicodeEscapeEmpty

ยง

UnicodeEscapeLength

Fields

ยง

UnicodeEscapeRange

Fields

ยง

UnicodeEscapeUnterminated

ยง

UnknownAliasTarget

Fields

ยงalias: &'src str
ยงtarget: &'src str
ยง

UnknownAttribute

Fields

ยงattribute: &'src str
ยง

UnknownDependency

Fields

ยงrecipe: &'src str
ยงunknown: &'src str
ยง

UnknownFunction

Fields

ยงfunction: &'src str
ยง

UnknownSetting

Fields

ยงsetting: &'src str
ยง

UnknownStartOfToken

ยง

UnpairedCarriageReturn

ยง

UnterminatedBacktick

ยง

UnterminatedInterpolation

ยง

UnterminatedString

Trait Implementationsยง

Sourceยง

impl<'src> Debug for CompileErrorKind<'src>

Sourceยง

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

Formats the value using the given formatter. Read more
Sourceยง

impl<'src> PartialEq for CompileErrorKind<'src>

Sourceยง

fn eq(&self, other: &CompileErrorKind<'src>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 ยท Sourceยง

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Sourceยง

impl<'src> StructuralPartialEq for CompileErrorKind<'src>

Auto Trait Implementationsยง

ยง

impl<'src> Freeze for CompileErrorKind<'src>

ยง

impl<'src> RefUnwindSafe for CompileErrorKind<'src>

ยง

impl<'src> Send for CompileErrorKind<'src>

ยง

impl<'src> Sync for CompileErrorKind<'src>

ยง

impl<'src> Unpin for CompileErrorKind<'src>

ยง

impl<'src> UnwindSafe for CompileErrorKind<'src>

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> Pointable for T

Sourceยง

const ALIGN: usize = _

The alignment of pointer.
Sourceยง

type Init = T

The type for initializers.
Sourceยง

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Sourceยง

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Sourceยง

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Sourceยง

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Sourceยง

impl<T> Same for T

Sourceยง

type Output = T

Should always be Self
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.
Sourceยง

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Sourceยง

fn vzip(self) -> V