Enum rustc_const_math::ConstMathErr
[−]
[src]
pub enum ConstMathErr {
NotInRange,
CmpBetweenUnequalTypes,
UnequalTypes(Op),
Overflow(Op),
ShiftNegative,
DivisionByZero,
RemainderByZero,
UnsignedNegation,
ULitOutOfRange(UintTy),
LitOutOfRange(IntTy),
}🔬 This is a nightly-only experimental API. (
rustc_private)Variants
NotInRange🔬 This is a nightly-only experimental API. (
rustc_private)CmpBetweenUnequalTypes🔬 This is a nightly-only experimental API. (
rustc_private)UnequalTypes(Op)🔬 This is a nightly-only experimental API. (
rustc_private)Overflow(Op)🔬 This is a nightly-only experimental API. (
rustc_private)ShiftNegative🔬 This is a nightly-only experimental API. (
rustc_private)DivisionByZero🔬 This is a nightly-only experimental API. (
rustc_private)RemainderByZero🔬 This is a nightly-only experimental API. (
rustc_private)UnsignedNegation🔬 This is a nightly-only experimental API. (
rustc_private)ULitOutOfRange(UintTy)🔬 This is a nightly-only experimental API. (
rustc_private)LitOutOfRange(IntTy)🔬 This is a nightly-only experimental API. (
rustc_private)Methods
impl ConstMathErr[src]
fn description(&self) -> &'static str
🔬 This is a nightly-only experimental API. (
rustc_private)Trait Implementations
impl Debug for ConstMathErr[src]
impl PartialEq for ConstMathErr[src]
fn eq(&self, __arg_0: &ConstMathErr) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &ConstMathErr) -> bool
This method tests for !=.
impl Eq for ConstMathErr[src]
impl Clone for ConstMathErr[src]
fn clone(&self) -> ConstMathErr
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
impl Encodable for ConstMathErr[src]
fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>
🔬 This is a nightly-only experimental API. (rustc_private)
deprecated in favor of rustc-serialize on crates.io
impl Decodable for ConstMathErr[src]
fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<ConstMathErr, __D::Error>
🔬 This is a nightly-only experimental API. (rustc_private)
deprecated in favor of rustc-serialize on crates.io