[−][src]Enum sdlang::Value
The value type encasing all possible SDLang value types.
This covers every single SDLang value there is. It forms a shell around any of them, allowing them to stored and used easily.
It implements FromStr
to allow direct parsing, as well as From
for all
its subtypes (except Null
).
Variants
String(String)
Text types. Both normal and raw strings come under this.
Base64(Vec<u8>)
Base64 binary data, in the form of a series of bytes.
Date(Date)
Date. Not timezone-aware.
DateTime(DateTime)
Date and time, timezone-aware.
Duration(Duration)
Durations of time.
Number(i128)
Integers.
Decimal(f64)
Decimals (floating-point).
Boolean(bool)
Boolean values.
Null
Null.
Trait Implementations
impl PartialEq<Value> for Value
[src]
impl From<String> for Value
[src]
impl<'_> From<&'_ str> for Value
[src]
impl From<Vec<u8>> for Value
[src]
impl From<NaiveDate> for Value
[src]
impl From<DateTime<FixedOffset>> for Value
[src]
impl From<Duration> for Value
[src]
impl From<i128> for Value
[src]
impl From<f64> for Value
[src]
impl From<bool> for Value
[src]
impl Display for Value
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Displays the value in a human-readable format.
The type of the result is (should be) always distinguishable based on the format used.
impl Debug for Value
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the same way as fmt::Display
.
This is done so that excessive output is not shown in any debug output,
since no information is lost in using the typical format.
impl FromStr for Value
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,