pub enum DamlPrimLit<'a> {
Int64(i64),
Text(Cow<'a, str>),
Party(Cow<'a, str>),
Date(i32),
Timestamp(i64),
Numeric(Cow<'a, str>),
RoundingMode(RoundingMode),
}Expand description
A Daml expression primitive literal.
Variants§
Int64(i64)
Represents a standard signed 64-bit integer (integer between −2⁶³ to 2⁶³−1).
Text(Cow<'a, str>)
Represents a UTF8 string.
Party(Cow<'a, str>)
A LitParty represents a party.
Date(i32)
Represents the number of day since 1970-01-01 with allowed range from 0001-01-01 to 9999-12-31 and using a year-month-day format.
Timestamp(i64)
Represents the number of microseconds since 1970-01-01T00:00:00.000000Z with allowed range 0001-01-01T00:00:00.000000Z to 9999-12-31T23:59:59.999999Z using a year-month-day-hour-minute-second-microsecond format.
Numeric(Cow<'a, str>)
Represents a signed number that can be represented in base-10 without loss of precision with at most 38 digits (ignoring possible leading 0 and with a scale (the number of significant digits on the right of the decimal point) between 0 and 37 (bounds inclusive). In the following, we will use scale(LitNumeric) to denote the scale of the decimal number.
RoundingMode(RoundingMode)
Trait Implementations§
Source§impl<'a> Clone for DamlPrimLit<'a>
impl<'a> Clone for DamlPrimLit<'a>
Source§fn clone(&self) -> DamlPrimLit<'a>
fn clone(&self) -> DamlPrimLit<'a>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<'a> DamlVisitableElement<'a> for DamlPrimLit<'a>
impl<'a> DamlVisitableElement<'a> for DamlPrimLit<'a>
fn accept(&'a self, visitor: &'a mut impl DamlElementVisitor)
Source§impl<'a> Debug for DamlPrimLit<'a>
impl<'a> Debug for DamlPrimLit<'a>
Source§impl<'a> IntoBoundedStatic for DamlPrimLit<'a>
impl<'a> IntoBoundedStatic for DamlPrimLit<'a>
Source§type Static = DamlPrimLit<'static>
type Static = DamlPrimLit<'static>
'static lifetime.Source§fn into_static(self) -> Self::Static
fn into_static(self) -> Self::Static
T into an owned T such that T: 'static.Source§impl<'a> Serialize for DamlPrimLit<'a>
impl<'a> Serialize for DamlPrimLit<'a>
Source§impl<'a> ToBoundedStatic for DamlPrimLit<'a>
impl<'a> ToBoundedStatic for DamlPrimLit<'a>
Auto Trait Implementations§
impl<'a> Freeze for DamlPrimLit<'a>
impl<'a> RefUnwindSafe for DamlPrimLit<'a>
impl<'a> Send for DamlPrimLit<'a>
impl<'a> Sync for DamlPrimLit<'a>
impl<'a> Unpin for DamlPrimLit<'a>
impl<'a> UnwindSafe for DamlPrimLit<'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
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>
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>
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