Crate riostream

Crate riostream 

Source
Expand description

A humorous attempt at implementing C++’s iostream and its syntax in Rust.

Differences from c++:

  • rin reads lines instead.
  • endl and flush consumes the stream object to avoid an ‘unused operator result’ lint from rust.

Disclaimer: this is purely for fun, do not use this crate in production.

Structs§

endl
prints '\n' and flushes when passed to rout or rerr
flush
Flushes when passed to rout or rerr.
rerr
Emulates the behavior of cerr.
rin
Emulates the behavior of cin.
rout
Emulates the behavior of cout.