pub enum NonIntegerConstant {
Boolean(bool),
BigInteger(BigInt),
Float(OrderedFloat<f64>),
Text(ValueRc<String>),
Instant(DateTime<Utc>),
Uuid(Uuid),
}Expand description
These are the scalar values representable in EDN.
Variants§
Boolean(bool)
BigInteger(BigInt)
Float(OrderedFloat<f64>)
Text(ValueRc<String>)
Instant(DateTime<Utc>)
Uuid(Uuid)
Trait Implementations§
Source§impl Clone for NonIntegerConstant
impl Clone for NonIntegerConstant
Source§fn clone(&self) -> NonIntegerConstant
fn clone(&self) -> NonIntegerConstant
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 NonIntegerConstant
impl Debug for NonIntegerConstant
Source§impl Display for NonIntegerConstant
impl Display for NonIntegerConstant
impl Eq for NonIntegerConstant
Source§impl<'a> From<&'a str> for NonIntegerConstant
impl<'a> From<&'a str> for NonIntegerConstant
Source§fn from(val: &'a str) -> NonIntegerConstant
fn from(val: &'a str) -> NonIntegerConstant
Converts to this type from the input type.
Source§impl From<String> for NonIntegerConstant
impl From<String> for NonIntegerConstant
Source§fn from(val: String) -> NonIntegerConstant
fn from(val: String) -> NonIntegerConstant
Converts to this type from the input type.
Source§impl PartialEq for NonIntegerConstant
impl PartialEq for NonIntegerConstant
Source§fn eq(&self, other: &NonIntegerConstant) -> bool
fn eq(&self, other: &NonIntegerConstant) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NonIntegerConstant
Auto Trait Implementations§
impl Freeze for NonIntegerConstant
impl RefUnwindSafe for NonIntegerConstant
impl Send for NonIntegerConstant
impl Sync for NonIntegerConstant
impl Unpin for NonIntegerConstant
impl UnsafeUnpin for NonIntegerConstant
impl UnwindSafe for NonIntegerConstant
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: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more