Enum arithmetic_parser::LvalueType
source · #[non_exhaustive]pub enum LvalueType {
Variable,
Tuple,
Object,
}
Expand description
Type of an Lvalue
.
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.
Variable
Simple variable, e.g., x
.
Tuple
Tuple destructuring, e.g., (x, y)
.
Object
Object destructuring, e.g., { x, y }
.
Trait Implementations§
source§impl Clone for LvalueType
impl Clone for LvalueType
source§fn clone(&self) -> LvalueType
fn clone(&self) -> LvalueType
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 LvalueType
impl Debug for LvalueType
source§impl Display for LvalueType
impl Display for LvalueType
source§impl From<LvalueType> for UnsupportedType
impl From<LvalueType> for UnsupportedType
source§fn from(value: LvalueType) -> Self
fn from(value: LvalueType) -> Self
Converts to this type from the input type.
source§impl Hash for LvalueType
impl Hash for LvalueType
source§impl PartialEq for LvalueType
impl PartialEq for LvalueType
source§fn eq(&self, other: &LvalueType) -> bool
fn eq(&self, other: &LvalueType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for LvalueType
impl Eq for LvalueType
impl StructuralPartialEq for LvalueType
Auto Trait Implementations§
impl Freeze for LvalueType
impl RefUnwindSafe for LvalueType
impl Send for LvalueType
impl Sync for LvalueType
impl Unpin for LvalueType
impl UnwindSafe for LvalueType
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
)