Enum rustc_const_eval::const_eval::error::ConstEvalErrKind [−][src]
pub enum ConstEvalErrKind {
NeedsRfc(String),
ConstAccessesStatic,
ModifiedGlobal,
AssertFailure(AssertKind<ConstInt>),
Panic {
msg: Symbol,
line: u32,
col: u32,
file: Symbol,
},
Abort(String),
}
Expand description
The CTFE machine has some custom error kinds.
Variants
NeedsRfc(String)
Tuple Fields of NeedsRfc
0: String
AssertFailure(AssertKind<ConstInt>)
Tuple Fields of AssertFailure
0: AssertKind<ConstInt>
Abort(String)
Tuple Fields of Abort
0: String
Trait Implementations
Performs the conversion.
If true
, emit a hard error instead of going through the CONST_ERR
lint
Auto Trait Implementations
impl RefUnwindSafe for ConstEvalErrKind
impl Send for ConstEvalErrKind
impl Sync for ConstEvalErrKind
impl Unpin for ConstEvalErrKind
impl UnwindSafe for ConstEvalErrKind
Blanket Implementations
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 48 bytes
Size for each variant:
NeedsRfc
: 31 bytesConstAccessesStatic
: 0 bytesModifiedGlobal
: 0 bytesAssertFailure
: 40 bytesPanic
: 19 bytesAbort
: 31 bytes