datex-core 0.0.14

The DATEX Core Rust implementation
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::{
    core_compiler::into_regular_instruction::ToRegularInstruction,
    instruction::regular_instruction::RegularInstruction,
};

impl ToRegularInstruction for f32 {
    fn to_regular_instruction(&self) -> RegularInstruction {
        RegularInstruction::decimal_f32(*self)
    }
}

impl ToRegularInstruction for f64 {
    fn to_regular_instruction(&self) -> RegularInstruction {
        RegularInstruction::decimal_f64(*self)
    }
}