Expand description
Easily output stuff for humans and machines alike
§Examples
extern crate convey;
fn main() -> Result<(), convey::Error> {
let mut out = convey::new().add_target(convey::human::stdout()?)?;
out.print(convey::components::text("hello world!"))?;
Ok(())
}
Modules§
- components
- Components to help build your output from.
- human
- Human output
- json
- JSON output
Macros§
- render_
for_ humans - Shorthand for writing the
render_for_humans
method of theRender
trait - render_
json - Shorthand for writing the
render_json
method of theRender
trait - span
- Quickly write a span
Structs§
Traits§
- Render
- Implement this for your own components
Functions§
- new
- Create a new output