Enum rtlola_frontend::mir::Constant
source · pub enum Constant {
Str(String),
Bool(bool),
UInt(u64),
Int(i64),
Float(f64),
}
Expand description
Represents a constant value of a certain kind.
Note the type of the constant might be more general than the type of the constant. For example, Constant::UInt(3u64)
represents an RTLola UInt8 constant.
Variants§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Constant
impl<'de> Deserialize<'de> for Constant
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more