pub enum MirConstant {
Number(String),
String(StringLiteral),
Symbol(SymbolName),
Bool(bool),
EmptyArray,
}Variants§
Trait Implementations§
Source§impl Clone for MirConstant
impl Clone for MirConstant
Source§fn clone(&self) -> MirConstant
fn clone(&self) -> MirConstant
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MirConstant
impl Debug for MirConstant
Source§impl<'de> Deserialize<'de> for MirConstant
impl<'de> Deserialize<'de> for MirConstant
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MirConstant
impl PartialEq for MirConstant
Source§fn eq(&self, other: &MirConstant) -> bool
fn eq(&self, other: &MirConstant) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MirConstant
impl Serialize for MirConstant
impl StructuralPartialEq for MirConstant
Auto Trait Implementations§
impl Freeze for MirConstant
impl RefUnwindSafe for MirConstant
impl Send for MirConstant
impl Sync for MirConstant
impl Unpin for MirConstant
impl UnsafeUnpin for MirConstant
impl UnwindSafe for MirConstant
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