pub enum DefaultValue<'a> {
Boolean(BooleanLit),
EmptyArray(EmptyArrayLit),
EmptyDictionary(EmptyDictionaryLit),
Float(FloatLit<'a>),
Integer(IntegerLit<'a>),
Null(Null),
String(StringLit<'a>),
}
Expand description
Represents a default literal value. Ex: 34|34.23|"value"|[ ]|true|false|null
Variants§
Boolean(BooleanLit)
EmptyArray(EmptyArrayLit)
EmptyDictionary(EmptyDictionaryLit)
Float(FloatLit<'a>)
Integer(IntegerLit<'a>)
Null(Null)
String(StringLit<'a>)
Trait Implementations§
Source§impl<'a> Clone for DefaultValue<'a>
impl<'a> Clone for DefaultValue<'a>
Source§fn clone(&self) -> DefaultValue<'a>
fn clone(&self) -> DefaultValue<'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 DefaultValue<'a>
impl<'a> Debug for DefaultValue<'a>
Source§impl<'a> From<BooleanLit> for DefaultValue<'a>
impl<'a> From<BooleanLit> for DefaultValue<'a>
Source§fn from(x: BooleanLit) -> Self
fn from(x: BooleanLit) -> Self
Converts to this type from the input type.
Source§impl<'a> From<EmptyArrayLit> for DefaultValue<'a>
impl<'a> From<EmptyArrayLit> for DefaultValue<'a>
Source§fn from(x: EmptyArrayLit) -> Self
fn from(x: EmptyArrayLit) -> Self
Converts to this type from the input type.
Source§impl<'a> From<EmptyDictionaryLit> for DefaultValue<'a>
impl<'a> From<EmptyDictionaryLit> for DefaultValue<'a>
Source§fn from(x: EmptyDictionaryLit) -> Self
fn from(x: EmptyDictionaryLit) -> Self
Converts to this type from the input type.
Source§impl<'a> From<FloatLit<'a>> for DefaultValue<'a>
impl<'a> From<FloatLit<'a>> for DefaultValue<'a>
Source§impl<'a> From<IntegerLit<'a>> for DefaultValue<'a>
impl<'a> From<IntegerLit<'a>> for DefaultValue<'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 DefaultValue<'a>
impl<'a> From<Null> for DefaultValue<'a>
Source§impl<'a> From<StringLit<'a>> for DefaultValue<'a>
impl<'a> From<StringLit<'a>> for DefaultValue<'a>
Source§impl<'a> Hash for DefaultValue<'a>
impl<'a> Hash for DefaultValue<'a>
Source§impl<'a> Ord for DefaultValue<'a>
impl<'a> Ord for DefaultValue<'a>
Source§fn cmp(&self, other: &DefaultValue<'a>) -> Ordering
fn cmp(&self, other: &DefaultValue<'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 DefaultValue<'a>
impl<'a> Parse<'a> for DefaultValue<'a>
Source§impl<'a> PartialEq for DefaultValue<'a>
impl<'a> PartialEq for DefaultValue<'a>
Source§impl<'a> PartialOrd for DefaultValue<'a>
impl<'a> PartialOrd for DefaultValue<'a>
impl<'a> Copy for DefaultValue<'a>
impl<'a> Eq for DefaultValue<'a>
impl<'a> StructuralPartialEq for DefaultValue<'a>
Auto Trait Implementations§
impl<'a> Freeze for DefaultValue<'a>
impl<'a> RefUnwindSafe for DefaultValue<'a>
impl<'a> Send for DefaultValue<'a>
impl<'a> Sync for DefaultValue<'a>
impl<'a> Unpin for DefaultValue<'a>
impl<'a> UnwindSafe for DefaultValue<'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