pub enum StVarValue {
}Expand description
The value of a system variable in st_var.
Defined here because it is used in both the datastore and query.
Variants§
Bool(bool)
I8(i8)
U8(u8)
I16(i16)
U16(u16)
I32(i32)
U32(u32)
I64(i64)
U64(u64)
I128(i128)
U128(u128)
F32(f32)
F64(f64)
String(Box<str>)
Implementations§
Source§impl StVarValue
impl StVarValue
pub fn try_from_primitive(value: AlgebraicValue) -> Result<Self, AlgebraicValue>
pub fn try_from_sum(value: AlgebraicValue) -> Result<Self, AlgebraicValue>
Trait Implementations§
Source§impl Clone for StVarValue
impl Clone for StVarValue
Source§fn clone(&self) -> StVarValue
fn clone(&self) -> StVarValue
Returns a duplicate 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 Debug for StVarValue
impl Debug for StVarValue
Source§impl<'de> Deserialize<'de> for StVarValue
impl<'de> Deserialize<'de> for StVarValue
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given
deserializer.Source§impl From<StVarValue> for AlgebraicValue
impl From<StVarValue> for AlgebraicValue
Source§fn from(value: StVarValue) -> Self
fn from(value: StVarValue) -> Self
Converts to this type from the input type.
Source§impl From<StVarValue> for SumValue
impl From<StVarValue> for SumValue
Source§fn from(value: StVarValue) -> Self
fn from(value: StVarValue) -> Self
Converts to this type from the input type.
Source§impl From<bool> for StVarValue
impl From<bool> for StVarValue
Source§fn from(original: bool) -> StVarValue
fn from(original: bool) -> StVarValue
Converts to this type from the input type.
Source§impl From<f32> for StVarValue
impl From<f32> for StVarValue
Source§fn from(original: f32) -> StVarValue
fn from(original: f32) -> StVarValue
Converts to this type from the input type.
Source§impl From<f64> for StVarValue
impl From<f64> for StVarValue
Source§fn from(original: f64) -> StVarValue
fn from(original: f64) -> StVarValue
Converts to this type from the input type.
Source§impl From<i128> for StVarValue
impl From<i128> for StVarValue
Source§fn from(original: i128) -> StVarValue
fn from(original: i128) -> StVarValue
Converts to this type from the input type.
Source§impl From<i16> for StVarValue
impl From<i16> for StVarValue
Source§fn from(original: i16) -> StVarValue
fn from(original: i16) -> StVarValue
Converts to this type from the input type.
Source§impl From<i32> for StVarValue
impl From<i32> for StVarValue
Source§fn from(original: i32) -> StVarValue
fn from(original: i32) -> StVarValue
Converts to this type from the input type.
Source§impl From<i64> for StVarValue
impl From<i64> for StVarValue
Source§fn from(original: i64) -> StVarValue
fn from(original: i64) -> StVarValue
Converts to this type from the input type.
Source§impl From<i8> for StVarValue
impl From<i8> for StVarValue
Source§fn from(original: i8) -> StVarValue
fn from(original: i8) -> StVarValue
Converts to this type from the input type.
Source§impl From<u128> for StVarValue
impl From<u128> for StVarValue
Source§fn from(original: u128) -> StVarValue
fn from(original: u128) -> StVarValue
Converts to this type from the input type.
Source§impl From<u16> for StVarValue
impl From<u16> for StVarValue
Source§fn from(original: u16) -> StVarValue
fn from(original: u16) -> StVarValue
Converts to this type from the input type.
Source§impl From<u32> for StVarValue
impl From<u32> for StVarValue
Source§fn from(original: u32) -> StVarValue
fn from(original: u32) -> StVarValue
Converts to this type from the input type.
Source§impl From<u64> for StVarValue
impl From<u64> for StVarValue
Source§fn from(original: u64) -> StVarValue
fn from(original: u64) -> StVarValue
Converts to this type from the input type.
Source§impl From<u8> for StVarValue
impl From<u8> for StVarValue
Source§fn from(original: u8) -> StVarValue
fn from(original: u8) -> StVarValue
Converts to this type from the input type.
Source§impl Serialize for StVarValue
impl Serialize for StVarValue
Source§impl SpacetimeType for StVarValue
impl SpacetimeType for StVarValue
Source§fn make_type<S: TypespaceBuilder>(__typespace: &mut S) -> AlgebraicType
fn make_type<S: TypespaceBuilder>(__typespace: &mut S) -> AlgebraicType
Returns an
AlgebraicType representing the type for Self in SATS
and in the typing context in typespace. This is used by the
automatic type registration system in Rust modules. Read moreAuto Trait Implementations§
impl Freeze for StVarValue
impl RefUnwindSafe for StVarValue
impl Send for StVarValue
impl Sync for StVarValue
impl Unpin for StVarValue
impl UnsafeUnpin for StVarValue
impl UnwindSafe for StVarValue
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 moreSource§impl<T> Satn for T
impl<T> Satn for T
Source§fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>
fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>
Formats the value using the SATN data format into the formatter
f.Source§fn fmt_psql(
&self,
f: &mut Formatter<'_>,
ty: &PsqlType<'_>,
) -> Result<(), Error>
fn fmt_psql( &self, f: &mut Formatter<'_>, ty: &PsqlType<'_>, ) -> Result<(), Error>
Formats the value using the postgres SATN(PsqlFormatter { f }, /* PsqlType */) formatter
f.Source§fn to_satn(&self) -> String
fn to_satn(&self) -> String
Formats the value using the SATN data format into the returned
String.Source§fn to_satn_pretty(&self) -> String
fn to_satn_pretty(&self) -> String
Pretty prints the value using the SATN data format into the returned
String.