pub enum ConstantError {
DivisionByZero {
span: Span,
},
Overflow {
span: Span,
value: Box<Value>,
kind: SimpleKind,
in_conversion: bool,
},
Truncated {
span: Span,
},
ShiftCount {
span: Span,
},
TooLarge {
span: Span,
},
}Variants§
Trait Implementations§
Source§impl Clone for ConstantError
impl Clone for ConstantError
Source§impl Debug for ConstantError
impl Debug for ConstantError
Source§impl PartialEq for ConstantError
impl PartialEq for ConstantError
impl StructuralPartialEq for ConstantError
Auto Trait Implementations§
impl Forget for ConstantError
impl Freeze for ConstantError
impl Move for ConstantError
impl RefUnwindSafe for ConstantError
impl Send for ConstantError
impl Sync for ConstantError
impl Unpin for ConstantError
impl UnsafeUnpin for ConstantError
impl UnwindSafe for ConstantErrorwhere
BoxRaw<Value>: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more