tsfc 0.1.0

Type-safe file controll
Documentation
  • Coverage
  • 20%
    2 out of 10 items documented0 out of 9 items with examples
  • Size
  • Source code size: 16.57 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 4.23 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • potan/tsfc
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • potan

tsfc

Typesafe file control in Rust.

This crate do not allow open file for write only and try to read it.

extern crate tsfc;
use tsfc::*;

 let mut w = create(f).unwrap();
 w.read(&mut data);

and

 let mut r = open(f).unwrap();
 r.write(&data);

will not be compiled.