Enum arithmetic_eval::error::UnsupportedType
source · #[non_exhaustive]pub enum UnsupportedType {
UnaryOp(UnaryOp),
BinaryOp(BinaryOp),
Expr(ExprType),
Statement(StatementType),
Lvalue(LvalueType),
}
Expand description
Description of a construct not supported by a certain module (e.g., interpreter or type inference).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
UnaryOp(UnaryOp)
Unary operation.
BinaryOp(BinaryOp)
Binary operation.
Expr(ExprType)
Expression.
Statement(StatementType)
Statement.
Lvalue(LvalueType)
Lvalue.
Trait Implementations§
source§impl Clone for UnsupportedType
impl Clone for UnsupportedType
source§fn clone(&self) -> UnsupportedType
fn clone(&self) -> UnsupportedType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for UnsupportedType
impl Debug for UnsupportedType
source§impl Display for UnsupportedType
impl Display for UnsupportedType
source§impl From<BinaryOp> for UnsupportedType
impl From<BinaryOp> for UnsupportedType
source§fn from(value: BinaryOp) -> UnsupportedType
fn from(value: BinaryOp) -> UnsupportedType
Converts to this type from the input type.
source§impl From<ExprType> for UnsupportedType
impl From<ExprType> for UnsupportedType
source§fn from(value: ExprType) -> UnsupportedType
fn from(value: ExprType) -> UnsupportedType
Converts to this type from the input type.
source§impl From<LvalueType> for UnsupportedType
impl From<LvalueType> for UnsupportedType
source§fn from(value: LvalueType) -> UnsupportedType
fn from(value: LvalueType) -> UnsupportedType
Converts to this type from the input type.
source§impl From<StatementType> for UnsupportedType
impl From<StatementType> for UnsupportedType
source§fn from(value: StatementType) -> UnsupportedType
fn from(value: StatementType) -> UnsupportedType
Converts to this type from the input type.
source§impl From<UnaryOp> for UnsupportedType
impl From<UnaryOp> for UnsupportedType
source§fn from(value: UnaryOp) -> UnsupportedType
fn from(value: UnaryOp) -> UnsupportedType
Converts to this type from the input type.
source§impl Hash for UnsupportedType
impl Hash for UnsupportedType
source§impl PartialEq for UnsupportedType
impl PartialEq for UnsupportedType
source§fn eq(&self, other: &UnsupportedType) -> bool
fn eq(&self, other: &UnsupportedType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for UnsupportedType
impl Eq for UnsupportedType
impl StructuralPartialEq for UnsupportedType
Auto Trait Implementations§
impl Freeze for UnsupportedType
impl RefUnwindSafe for UnsupportedType
impl Send for UnsupportedType
impl Sync for UnsupportedType
impl Unpin for UnsupportedType
impl UnwindSafe for UnsupportedType
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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more