Rustxmp: xmp filter for rust
puts Rustxmp::EmbedProcessor.new(<<~EOS)
fn main() {
1 + 2; // =>
}
EOS
fn main() {
1 + 2; // => 3
}
puts Rustxmp::EmbedProcessor.new(<<~EOS)
fn main() {
println!("{:?}", 1 + 2); // =>
}
EOS
fn main() {
println!("{:?}", 1 + 2); // => 3
}
puts Rustxmp::EmbedProcessor.new(<<~EOS)
// rustxmp_playground: "nannou"
use nannou::prelude::*;
fn main() {
let r = Rect::from_w_h(100.0f32, 100.0f32);
r.xy(); // =>
println!("{:?}", r.xy()); // =>
}
EOS
// rustxmp_playground: "nannou"
use nannou::prelude::*;
fn main() {
let r = Rect::from_w_h(100.0f32, 100.0f32);
r.xy(); // => Vec2(0.0, 0.0)
println!("{:?}", r.xy()); // => Vec2(0.0, 0.0)
}