rascal_bytecode 0.1.2

Rascal programming language bytecode.
Documentation
use core::ops::Deref;

#[derive(Debug, Copy, Clone)]
pub struct Value(pub f64);
impl Deref for Value {
    type Target = f64;
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl From<f64> for Value {
    fn from(item: f64) -> Self {
        Value(item)
    }
}
impl From<Value> for [u8; 8] {
    fn from(item: Value) -> Self {
        item.to_be_bytes()
    }
}