echo 0.0.1

Macro echo! for println!("{}"...) shorthand
Documentation
  • Coverage
  • 100%
    3 out of 3 items documented0 out of 0 items with examples
  • Size
  • Source code size: 3.02 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 133.39 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • arthurtw/echo-rs
    0 0 1
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • arthurtw

echo

Rust macro echo! and echon! as a shorthand for println!("{}"...) and print!("{}"...).

Usage

To use this library, add the following to your Cargo.toml file:

[dependencies]
echo = "*"

You can then use macro echo! and echon! to print space-separated values with or without newline, similar to Linux echo and echo -n commands.

#![feature(phase)]
#[phase(plugin)] extern crate echo;

fn main() {
    let a = 0u;
    let b = vec![2i, 4, 6];
    // 0 [2, 4, 6] true
    echo!(a, b, true);
    // 0 (without newline)
    echon!(a);
}

License

MIT