This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::f64; | |
static TILE_SIZE: i32 = 32; | |
pub struct Game(f64); | |
pub struct Pixel(i32); | |
pub struct Tile(uint); | |
pub struct Frame(uint); | |
pub trait AsGame {fn to_game(&self) -> Game;} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pub mod units; | |
/// A main() outside the module does not work, #to_pixel() not in scope? | |
fn main() { | |
let mut gs: units::Game = units::Game(640.0) * units::Game(480.0); | |
println!("gs->pix, outside mod: {:?}", gs.to_pixel()); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::f64; | |
static TILE_SIZE: i32 = 32; | |
pub struct Game(f64); | |
pub struct Pixel(i32); | |
pub struct Tile(uint); | |
pub struct Frame(uint); | |
trait AsGame {fn to_game(&self) -> Game;} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--summary-- | |
--KOEO SELF TEST-- | |
118 O,C Coolant Temp (EdT) Sensor circuit above maximum voitage/ -40 F | |
113 O,C Air Charge Temp (ACT) Sensor circuit above maximum voltagE/ -40 F | |
327 O,R,C EVP circuit below minimum voltage | |
--CONTINUOUS MEMORY-- | |
113 O,C Air Charge Temp (ACT) Sensor circuit above maximum voltagE/ -40 F | |
118 O,C Coolant Temp (EdT) Sensor circuit above maximum voitage/ -40 F | |
157 C Mass Air Flow (MAE) Sensor circuit below minimum voltage | |
158 O,C Mass Air Flow (MAE) Sensor circuit above maximum voltage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern mod std; | |
struct Dog { | |
name : ~str | |
} | |
trait Barks { | |
fn bark(&self) -> ~str; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern mod std; | |
use core::io::*; | |
use std::timer::*; | |
struct Dog { | |
mut name : ~str | |
} | |
fn lol() -> int { |
NewerOlder