Enum rustc_const_eval::ErrKind [] [src]

pub enum ErrKind {
    CannotCast,
    CannotCastTo(&'static str),
    InvalidOpForInts(BinOp_),
    InvalidOpForBools(BinOp_),
    InvalidOpForFloats(BinOp_),
    InvalidOpForIntUint(BinOp_),
    InvalidOpForUintInt(BinOp_),
    NegateOn(ConstVal),
    NotOn(ConstVal),
    CallOn(ConstVal),
    DivideByZero,
    DivideWithOverflow,
    ModuloByZero,
    ModuloWithOverflow,
    ShiftLeftWithOverflow,
    ShiftRightWithOverflow,
    MissingStructField,
    NonConstPath,
    UnimplementedConstVal(&'static str),
    UnresolvedPath,
    ExpectedConstTuple,
    ExpectedConstStruct,
    TupleIndexOutOfBounds,
    IndexedNonVec,
    IndexNegative,
    IndexNotInt,
    IndexOutOfBounds,
    RepeatCountNotNatural,
    RepeatCountNotInt,
    MiscBinaryOp,
    MiscCatchAll,
    IndexOpFeatureGated,
    Math(ConstMathErr),
    IntermediateUnsignedNegative,
    TypeMismatch(StringConstInt),
    BadType(ConstVal),
    ErroneousReferencedConstant(Box<ConstEvalErr>),
    CharCast(ConstInt),
}
Unstable (rustc_private)

Variants

CannotCast
Unstable (rustc_private)
CannotCastTo(&'static str)
Unstable (rustc_private)
InvalidOpForInts(BinOp_)
Unstable (rustc_private)
InvalidOpForBools(BinOp_)
Unstable (rustc_private)
InvalidOpForFloats(BinOp_)
Unstable (rustc_private)
InvalidOpForIntUint(BinOp_)
Unstable (rustc_private)
InvalidOpForUintInt(BinOp_)
Unstable (rustc_private)
NegateOn(ConstVal)
Unstable (rustc_private)
NotOn(ConstVal)
Unstable (rustc_private)
CallOn(ConstVal)
Unstable (rustc_private)
DivideByZero
Unstable (rustc_private)
DivideWithOverflow
Unstable (rustc_private)
ModuloByZero
Unstable (rustc_private)
ModuloWithOverflow
Unstable (rustc_private)
ShiftLeftWithOverflow
Unstable (rustc_private)
ShiftRightWithOverflow
Unstable (rustc_private)
MissingStructField
Unstable (rustc_private)
NonConstPath
Unstable (rustc_private)
UnimplementedConstVal(&'static str)
Unstable (rustc_private)
UnresolvedPath
Unstable (rustc_private)
ExpectedConstTuple
Unstable (rustc_private)
ExpectedConstStruct
Unstable (rustc_private)
TupleIndexOutOfBounds
Unstable (rustc_private)
IndexedNonVec
Unstable (rustc_private)
IndexNegative
Unstable (rustc_private)
IndexNotInt
Unstable (rustc_private)
IndexOutOfBounds
Unstable (rustc_private)
RepeatCountNotNatural
Unstable (rustc_private)
RepeatCountNotInt
Unstable (rustc_private)
MiscBinaryOp
Unstable (rustc_private)
MiscCatchAll
Unstable (rustc_private)
IndexOpFeatureGated
Unstable (rustc_private)
Math(ConstMathErr)
Unstable (rustc_private)
IntermediateUnsignedNegative
Unstable (rustc_private)
TypeMismatch(StringConstInt)
Unstable (rustc_private)
[]

Expected, Got

BadType(ConstVal)
Unstable (rustc_private)
ErroneousReferencedConstant(Box<ConstEvalErr>)
Unstable (rustc_private)
CharCast(ConstInt)
Unstable (rustc_private)

Trait Implementations

impl From<ConstMathErr> for ErrKind
[src]

fn from(err: ConstMathErr) -> ErrKind[]

Performs the conversion.

Derived Implementations

impl Clone for ErrKind
[src]

fn clone(&self) -> ErrKind[]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0
[]

Performs copy-assignment from source. Read more