pub enum ConstValue<'a> {
Boolean(BooleanLit),
Float(FloatLit<'a>),
Integer(IntegerLit<'a>),
Null(Null),
}
Expand description
Represents true
, false
, 34.23
, null
, 56
, …
Variants§
Trait Implementations§
Source§impl<'a> Clone for ConstValue<'a>
impl<'a> Clone for ConstValue<'a>
Source§fn clone(&self) -> ConstValue<'a>
fn clone(&self) -> ConstValue<'a>
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<'a> Debug for ConstValue<'a>
impl<'a> Debug for ConstValue<'a>
Source§impl<'a> From<BooleanLit> for ConstValue<'a>
impl<'a> From<BooleanLit> for ConstValue<'a>
Source§fn from(x: BooleanLit) -> Self
fn from(x: BooleanLit) -> Self
Converts to this type from the input type.
Source§impl<'a> From<FloatLit<'a>> for ConstValue<'a>
impl<'a> From<FloatLit<'a>> for ConstValue<'a>
Source§impl<'a> From<IntegerLit<'a>> for ConstValue<'a>
impl<'a> From<IntegerLit<'a>> for ConstValue<'a>
Source§fn from(x: IntegerLit<'a>) -> Self
fn from(x: IntegerLit<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<Null> for ConstValue<'a>
impl<'a> From<Null> for ConstValue<'a>
Source§impl<'a> Hash for ConstValue<'a>
impl<'a> Hash for ConstValue<'a>
Source§impl<'a> Ord for ConstValue<'a>
impl<'a> Ord for ConstValue<'a>
Source§fn cmp(&self, other: &ConstValue<'a>) -> Ordering
fn cmp(&self, other: &ConstValue<'a>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'a> Parse<'a> for ConstValue<'a>
impl<'a> Parse<'a> for ConstValue<'a>
Source§impl<'a> PartialEq for ConstValue<'a>
impl<'a> PartialEq for ConstValue<'a>
Source§impl<'a> PartialOrd for ConstValue<'a>
impl<'a> PartialOrd for ConstValue<'a>
impl<'a> Copy for ConstValue<'a>
impl<'a> Eq for ConstValue<'a>
impl<'a> StructuralPartialEq for ConstValue<'a>
Auto Trait Implementations§
impl<'a> Freeze for ConstValue<'a>
impl<'a> RefUnwindSafe for ConstValue<'a>
impl<'a> Send for ConstValue<'a>
impl<'a> Sync for ConstValue<'a>
impl<'a> Unpin for ConstValue<'a>
impl<'a> UnwindSafe for ConstValue<'a>
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