tools/rc/to_f64.rs
author unC0Rr
Tue, 10 Sep 2024 18:21:31 +0200
branchtransitional_engine
changeset 16033 1860852892c0
parent 15951 5aed6c0b63e2
permissions -rw-r--r--
Use rust implementation of maze generator in engine
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
15951
5aed6c0b63e2 Start PoC of pas2rust conversion routine
unc0rr
parents:
diff changeset
     1
pub fn to_f64<T: Into<f64>>(v: T) -> f64 {
5aed6c0b63e2 Start PoC of pas2rust conversion routine
unc0rr
parents:
diff changeset
     2
    v.into()
5aed6c0b63e2 Start PoC of pas2rust conversion routine
unc0rr
parents:
diff changeset
     3
}
5aed6c0b63e2 Start PoC of pas2rust conversion routine
unc0rr
parents:
diff changeset
     4